LTable is a PowerPlant class that is used for display and managemnet of tabular data: rows and columns of rectangular cells in a two-dimensional grid.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Refer to The PowerPlant Book for a detailed introduction to this class.
Source files:
See also:
Purpose:
The constructor creates the object.
Access :
Prototype:
LTable();
LTable(
const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo,
SInt32 inNumberOfRows,
SInt32 inNumberOfCols,
SInt32 inRowHeight,
SInt32 inColWidth,
SInt32 inCellDataSize );
LTable( LStream *inStream );
Purpose:
The destructor destroys the object.
Access :
Prototype:
virtual ~LTable();
Purpose:
This is an override of ActivateSelf() in LPane().
Purpose:
Respond to a click in the cell.
Access :
Prototype:
virtual void ClickCell(
const TableCellT &inCell,
const SMouseDownEvent& inMouseDown );Parameters:
The parameters for this method are:
Return:
Purpose:
This is an override of ClickSelf() in LPane().
Purpose:
This is an override of DeactivateSelf() in LPane().
Purpose:
Access :
Prototype:
virtual void DrawCell(const TableCellT &inCell);Parameters:
The parameters for this method are:
Return:
Purpose:
This is an override of DrawSelf() in LPane().
Purpose:
This method tests 2 cells for equality.
Access :
Prototype:
Boolean EqualCell(
const TableCellT &inCellA,
const TableCellT &inCellB) const;Parameters:
The parameters for this method are:
Return:
Returns true if equal, else false.
Purpose:
Retrieves the index of a cell containing the data indicated.
Access :
Prototype:
SInt32 FetchCellDataIndex(
const TableCellT &inCell );Parameters:
The parameters for this method are:
Return:
Purpose:
Find a cell hit by a certain point.
Access :
Prototype:
virtual void FetchCellHitBy(
const SPoint32 &inImagePt,
TableCellT &outCell );Parameters:
The parameters for this method are:
Return:
Purpose:
See if a cell intersects a given frame.
Access :
Prototype:
virtual Boolean FetchLocalCellFrame(
const TableCellT &inCell,
Rect &outCellFrame);Parameters:
The parameters for this method are:
Return:
Return true if there is an intersection, else return false.
Purpose:
Retrieve the data from a cell.
Access :
Prototype:
virtual void GetCellData(
const TableCellT &inCell,
void *outData);Parameters:
The parameters for this method are:
Return:
Purpose:
Retrieve the contents of a selected cell.
Access :
Prototype:
void GetSelectedCell(TableCellT &outCell) const;Parameters:
The parameters for this method are:
Return:
Purpose:
Retrieve the size of the table.
Access :
Prototype:
void GetTableSize(
TableIndexT &outRows,
TableIndexT &outCols ) const;Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
virtual void HiliteCell(
const TableCellT& inCell);Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
void InitTable(
SInt32 inNumberOfRows,
SInt32 inNumberOfCols,
SInt32 inRowHeight,
SInt32 inColWidth,
SInt32 inCellDataSize);Parameters:
The parameters for this method are:
Return:
Purpose:
Insert columns after a specified column.
Access :
Prototype:
virtual void InsertCols(
SInt32 inHowMany,
TableIndexT inAfterCol,
void *inCellData );Parameters:
The parameters for this method are:
Return:
Purpose:
Insert rows after a specified row.
Access :
Prototype:
virtual void InsertRows(
SInt32 inHowMany,
TableIndexT inAfterRow,
void *inCellData);Parameters:
The parameters for this method are:
Return:
Purpose:
Indicate whether a cell is valid or not.
Access :
Prototype:
Boolean IsValidCell(
const TableCellT &inCell) const;Parameters:
The parameters for this method are:
Return:
Returns true if valid, else returns false.
Purpose:
Remove columns starting after a given column.
Access :
Prototype:
virtual void RemoveCols(
SInt32 inHowMany,
TableIndexT inFromCol );Parameters:
The parameters for this method are:
Return:
Purpose:
Remove rows starting after a given row.
Access :
Prototype:
virtual void RemoveRows(
SInt32 inHowMany,
TableIndexT inFromRow);Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
virtual void SelectCell(
const TableCellT &inCell );Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
virtual void SetCellData(
const TableCellT &inCell,
void *inData );Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
void SetCellDataSize( SInt32 inCellDataSize );Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
virtual void SetColWidth(
SInt16 inWidth,
TableIndexT inFrom,
TableIndexT inTo);Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
virtual void SetRowHeight(
SInt16 inHeight,
TableIndexT inFrom,
TableIndexT inTo );Parameters:
The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
virtual void UnhiliteCell(
const TableCellT& inCell); The parameters for this method are:
Return:
Purpose:
Access :
Prototype:
Purpose:
Access :
Prototype:
Purpose:
Access :
Prototype:
Purpose:
Access :
Prototype:
Purpose:
Access :
Prototype:
Purpose:
Access :
Prototype: