JX Application Framework
|
#include <JValueTableData.h>
Public Member Functions | |
JValueTableData (const T &defValue) | |
JValueTableData (const JValueTableData< S, T > &source) | |
~JValueTableData () override | |
T | GetItem (const JIndex row, const JIndex col) const |
T | GetItem (const JPoint &cell) const |
void | SetItem (const JIndex row, const JIndex col, const T &data) |
void | SetItem (const JPoint &cell, const T &data) |
void | GetRow (const JIndex index, JList< T > *rowData) const |
void | SetRow (const JIndex index, const JList< T > &rowData) |
void | GetCol (const JIndex index, JList< T > *colData) const |
void | SetCol (const JIndex index, const JList< T > &colData) |
void | InsertRows (const JIndex index, const JSize count, const JList< T > *initData=nullptr) |
void | PrependRows (const JSize count, const JList< T > *initData=nullptr) |
void | AppendRows (const JSize count, const JList< T > *initData=nullptr) |
void | DuplicateRow (const JIndex origIndex, const JIndex newIndex) |
void | RemoveRow (const JIndex index) |
void | RemoveNextRows (const JIndex firstIndex, const JSize count) |
void | RemovePrevRows (const JIndex lastIndex, const JSize count) |
void | RemoveAllRows () |
void | MoveRow (const JIndex origIndex, const JIndex newIndex) |
void | InsertCols (const JIndex index, const JSize count, const JList< T > *initData=nullptr) |
void | PrependCols (const JSize count, const JList< T > *initData=nullptr) |
void | AppendCols (const JSize count, const JList< T > *initData=nullptr) |
void | DuplicateCol (const JIndex origIndex, const JIndex newIndex) |
void | RemoveCol (const JIndex index) |
void | RemoveNextCols (const JIndex firstIndex, const JSize count) |
void | RemovePrevCols (const JIndex lastIndex, const JSize count) |
void | RemoveAllCols () |
void | MoveCol (const JIndex origIndex, const JIndex newIndex) |
const T | GetDefaultValue () const |
void | SetDefaultValue (const T &data) |
![]() | |
JTableData () | |
JTableData (const JTableData &source) | |
~JTableData () override | |
JTableData & | operator= (const JTableData &source) |
bool | IsEmpty () const |
JSize | GetRowCount () const |
bool | RowIndexValid (const JIndex index) const |
JSize | GetColCount () const |
bool | ColIndexValid (const JIndex index) const |
bool | CellValid (const JPoint &cell) const |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
virtual JString | ToString () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Additional Inherited Members | |
![]() | |
static const JUtf8Byte * | kRowsInserted = "RowsInserted::JTableData" |
static const JUtf8Byte * | kRowDuplicated = "RowDuplicated::JTableData" |
static const JUtf8Byte * | kRowsRemoved = "RowsRemoved::JTableData" |
static const JUtf8Byte * | kRowMoved = "RowMoved::JTableData" |
static const JUtf8Byte * | kColsInserted = "ColsInserted::JTableData" |
static const JUtf8Byte * | kColDuplicated = "ColDuplicated::JTableData" |
static const JUtf8Byte * | kColsRemoved = "ColsRemoved::JTableData" |
static const JUtf8Byte * | kColMoved = "ColMoved::JTableData" |
static const JUtf8Byte * | kRectChanged = "RectChanged::JTableData" |
![]() | |
void | RowsAdded (const JSize count) |
void | RowsDeleted (const JSize count) |
void | SetRowCount (const JSize newRowCount) |
void | ColsAdded (const JSize count) |
void | ColsDeleted (const JSize count) |
void | SetColCount (const JSize newColCount) |
![]() | |
JBroadcaster (const JBroadcaster &source) | |
void | ListenTo (const JBroadcaster *sender) |
void | StopListening (const JBroadcaster *sender) |
void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
template<class T > | |
void | Send (JBroadcaster *recipient, const T &message) |
template<class T > | |
void | Broadcast (const T &message) |
virtual void | Receive (JBroadcaster *sender, const Message &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
Interface for JValueTableData class
JValueTableData< S, T >::JValueTableData | ( | const T & | defValue | ) |
Template for storing values and structs in a table.
It is assumed that the class used to store each column of data is a direct descendant of JList, so JPtrArray can't be used. In this case, use JObjTableData instead.
JValueTableData< S, T >::JValueTableData | ( | const JValueTableData< S, T > & | source | ) |
|
override |
void JValueTableData< S, T >::AppendCols | ( | const JSize | count, |
const JList< T > * | initData = nullptr |
||
) |
void JValueTableData< S, T >::AppendRows | ( | const JSize | count, |
const JList< T > * | initData = nullptr |
||
) |
void JValueTableData< S, T >::DuplicateCol | ( | const JIndex | origIndex, |
const JIndex | newIndex | ||
) |
void JValueTableData< S, T >::DuplicateRow | ( | const JIndex | origIndex, |
const JIndex | newIndex | ||
) |
void JValueTableData< S, T >::GetCol | ( | const JIndex | index, |
JList< T > * | colData | ||
) | const |
operator= doesn't work because it could be -any- class derived from JList.
const T JValueTableData< S, T >::GetDefaultValue | ( | ) | const |
T JValueTableData< S, T >::GetItem | ( | const JIndex | row, |
const JIndex | col | ||
) | const |
T JValueTableData< S, T >::GetItem | ( | const JPoint & | cell | ) | const |
void JValueTableData< S, T >::GetRow | ( | const JIndex | index, |
JList< T > * | rowData | ||
) | const |
void JValueTableData< S, T >::InsertCols | ( | const JIndex | index, |
const JSize | count, | ||
const JList< T > * | initData = nullptr |
||
) |
void JValueTableData< S, T >::InsertRows | ( | const JIndex | index, |
const JSize | count, | ||
const JList< T > * | initData = nullptr |
||
) |
void JValueTableData< S, T >::MoveCol | ( | const JIndex | origIndex, |
const JIndex | newIndex | ||
) |
void JValueTableData< S, T >::MoveRow | ( | const JIndex | origIndex, |
const JIndex | newIndex | ||
) |
void JValueTableData< S, T >::PrependCols | ( | const JSize | count, |
const JList< T > * | initData = nullptr |
||
) |
void JValueTableData< S, T >::PrependRows | ( | const JSize | count, |
const JList< T > * | initData = nullptr |
||
) |
void JValueTableData< S, T >::RemoveAllCols | ( | ) |
void JValueTableData< S, T >::RemoveAllRows | ( | ) |
void JValueTableData< S, T >::RemoveCol | ( | const JIndex | index | ) |
void JValueTableData< S, T >::RemoveNextCols | ( | const JIndex | firstIndex, |
const JSize | count | ||
) |
void JValueTableData< S, T >::RemoveNextRows | ( | const JIndex | firstIndex, |
const JSize | count | ||
) |
void JValueTableData< S, T >::RemovePrevCols | ( | const JIndex | lastIndex, |
const JSize | count | ||
) |
void JValueTableData< S, T >::RemovePrevRows | ( | const JIndex | lastIndex, |
const JSize | count | ||
) |
void JValueTableData< S, T >::RemoveRow | ( | const JIndex | index | ) |
void JValueTableData< S, T >::SetCol | ( | const JIndex | index, |
const JList< T > & | colData | ||
) |
operator= doesn't work because it could be -any- class derived from JList.
void JValueTableData< S, T >::SetDefaultValue | ( | const T & | data | ) |
void JValueTableData< S, T >::SetItem | ( | const JIndex | row, |
const JIndex | col, | ||
const T & | data | ||
) |
void JValueTableData< S, T >::SetItem | ( | const JPoint & | cell, |
const T & | data | ||
) |
void JValueTableData< S, T >::SetRow | ( | const JIndex | index, |
const JList< T > & | rowData | ||
) |