wx.GridCtrl.GridTableBase Class Reference

Inheritance diagram for wx.GridCtrl.GridTableBase:

wx.Object wx.GridCtrl.GridStringTable

List of all members.

Public Member Functions

virtual bool AppendCols (int numCols)
virtual bool AppendRows (int numRows)
virtual bool CanGetValueAs (int row, int col, string typeName)
virtual bool CanHaveAttributes ()
virtual bool CanSetValueAs (int row, int col, string typeName)
virtual void Clear ()
virtual bool DeleteCols (int pos, int numCols)
virtual bool DeleteRows (int pos, int numRows)
virtual GridCellAttr GetAttr (int row, int col, GridCellAttr.AttrKind kind)
GridCellAttrProvider GetAttrProvider ()
virtual string GetColLabelValue (int col)
abstract int GetNumberCols ()
abstract int GetNumberRows ()
virtual string GetRowLabelValue (int row)
virtual string GetTypeName (int row, int col)
abstract string GetValue (int row, int col)
virtual bool GetValueAsBool (int row, int col)
virtual Object GetValueAsCustom (int row, int col, string typeName)
virtual double GetValueAsDouble (int row, int col)
virtual int GetValueAsInt (int row, int col)
virtual long GetValueAsLong (int row, int col)
virtual Grid GetView ()
 GridTableBase (IntPtr wxObject)
 GridTableBase ()
virtual bool InsertCols (int pos, int numCols)
virtual bool InsertRows (int pos, int numRows)
abstract bool IsEmptyCell (int row, int col)
virtual void SetAttr (GridCellAttr attr, int row, int col)
void SetAttrProvider (GridCellAttrProvider attrProvider)
virtual void SetColAttr (GridCellAttr attr, int col)
virtual void SetColLabelValue (int col, string val)
virtual void SetRowAttr (GridCellAttr attr, int row)
virtual void SetRowLabelValue (int row, string val)
abstract void SetValue (int row, int col, string val)
virtual void SetValueAsBool (int row, int col, bool val)
virtual void SetValueAsCustom (int row, int col, string typeName, Object val)
virtual void SetValueAsDouble (int row, int col, double val)
virtual void SetValueAsInt (int row, int col, int val)
virtual void SetValueAsLong (int row, int col, long val)
virtual void SetView (Grid grid)

Protected Member Functions

IntPtr DoGetColLabelValue (int row)
IntPtr DoGetRowLabelValue (int row)


Detailed Description

Abstract data model for grids. Refer also to class GridTableMessage.

Constructor & Destructor Documentation

wx.GridCtrl.GridTableBase.GridTableBase (  ) 

wx.GridCtrl.GridTableBase.GridTableBase ( IntPtr  wxObject  ) 


Member Function Documentation

virtual bool wx.GridCtrl.GridTableBase.AppendCols ( int  numCols  )  [virtual]

virtual bool wx.GridCtrl.GridTableBase.AppendRows ( int  numRows  )  [virtual]

virtual bool wx.GridCtrl.GridTableBase.CanGetValueAs ( int  row,
int  col,
string  typeName 
) [virtual]

Defines whether the value of the designated cell can be read as a daty of this type.

Parameters:
row The row of the described cell.
col The column of the described cell.
typeName The name of the data type.
Returns:

virtual bool wx.GridCtrl.GridTableBase.CanHaveAttributes (  )  [virtual]

Does this table allow attributes? Default implementation creates a wxGridCellAttrProvider if necessary.

virtual bool wx.GridCtrl.GridTableBase.CanSetValueAs ( int  row,
int  col,
string  typeName 
) [virtual]

Defines whether a value of the type can be assigned to the cell.

Parameters:
row The row of the described cell.
col The column of the described cell.
typeName The name of the data type.
Returns:

virtual void wx.GridCtrl.GridTableBase.Clear (  )  [virtual]

virtual bool wx.GridCtrl.GridTableBase.DeleteCols ( int  pos,
int  numCols 
) [virtual]

virtual bool wx.GridCtrl.GridTableBase.DeleteRows ( int  pos,
int  numRows 
) [virtual]

IntPtr wx.GridCtrl.GridTableBase.DoGetColLabelValue ( int  row  )  [protected]

IntPtr wx.GridCtrl.GridTableBase.DoGetRowLabelValue ( int  row  )  [protected]

virtual GridCellAttr wx.GridCtrl.GridTableBase.GetAttr ( int  row,
int  col,
GridCellAttr.AttrKind  kind 
) [virtual]

Returns grid cell attributes relevant to the cell as specified by the provided row and column index.

Note: Grid cell attributs contain elements like fonts that often have a reduced address space (like handles in Windows). So, it is usually not a good idea to create grid cell attributes when they are needed. A better practice stores all required grid cell attributes in member variables. However, grid cell attributes wrapp C++ instances using reference counting. So, you will have to increment the reference counter by GridCellAttr.IncRef().

Parameters:
row The row index.
col The column index.
kind A value indicating the intended use of the attributes.

GridCellAttrProvider wx.GridCtrl.GridTableBase.GetAttrProvider (  ) 

virtual string wx.GridCtrl.GridTableBase.GetColLabelValue ( int  col  )  [virtual]

abstract int wx.GridCtrl.GridTableBase.GetNumberCols (  )  [pure virtual]

Defines the number of columns in the table.

Implemented in wx.GridCtrl.GridStringTable.

abstract int wx.GridCtrl.GridTableBase.GetNumberRows (  )  [pure virtual]

Defines the number of rows in the table.

Implemented in wx.GridCtrl.GridStringTable.

virtual string wx.GridCtrl.GridTableBase.GetRowLabelValue ( int  row  )  [virtual]

virtual string wx.GridCtrl.GridTableBase.GetTypeName ( int  row,
int  col 
) [virtual]

Defines the data type associated with this cell.

Parameters:
row The row of the described cell.
col The column of the described cell.
Returns:

abstract string wx.GridCtrl.GridTableBase.GetValue ( int  row,
int  col 
) [pure virtual]

Implemented in wx.GridCtrl.GridStringTable.

virtual bool wx.GridCtrl.GridTableBase.GetValueAsBool ( int  row,
int  col 
) [virtual]

virtual Object wx.GridCtrl.GridTableBase.GetValueAsCustom ( int  row,
int  col,
string  typeName 
) [virtual]

virtual double wx.GridCtrl.GridTableBase.GetValueAsDouble ( int  row,
int  col 
) [virtual]

virtual int wx.GridCtrl.GridTableBase.GetValueAsInt ( int  row,
int  col 
) [virtual]

virtual long wx.GridCtrl.GridTableBase.GetValueAsLong ( int  row,
int  col 
) [virtual]

virtual Grid wx.GridCtrl.GridTableBase.GetView (  )  [virtual]

virtual bool wx.GridCtrl.GridTableBase.InsertCols ( int  pos,
int  numCols 
) [virtual]

virtual bool wx.GridCtrl.GridTableBase.InsertRows ( int  pos,
int  numRows 
) [virtual]

abstract bool wx.GridCtrl.GridTableBase.IsEmptyCell ( int  row,
int  col 
) [pure virtual]

Defines whether a cell can contain dat or not.

Parameters:
row The row of the requested cell
col The column index of the requested cell
Returns:
True iff the cell is empty.

Implemented in wx.GridCtrl.GridStringTable.

virtual void wx.GridCtrl.GridTableBase.SetAttr ( GridCellAttr  attr,
int  row,
int  col 
) [virtual]

void wx.GridCtrl.GridTableBase.SetAttrProvider ( GridCellAttrProvider  attrProvider  ) 

virtual void wx.GridCtrl.GridTableBase.SetColAttr ( GridCellAttr  attr,
int  col 
) [virtual]

The standard implementation simply calls the wxWidgets implementation and passes memory ownership to wxWidgets.

virtual void wx.GridCtrl.GridTableBase.SetColLabelValue ( int  col,
string  val 
) [virtual]

virtual void wx.GridCtrl.GridTableBase.SetRowAttr ( GridCellAttr  attr,
int  row 
) [virtual]

The standard implementation simply calls the wxWidgets implementation and passes memory ownership to wxWidgets.

virtual void wx.GridCtrl.GridTableBase.SetRowLabelValue ( int  row,
string  val 
) [virtual]

abstract void wx.GridCtrl.GridTableBase.SetValue ( int  row,
int  col,
string  val 
) [pure virtual]

Implemented in wx.GridCtrl.GridStringTable.

virtual void wx.GridCtrl.GridTableBase.SetValueAsBool ( int  row,
int  col,
bool  val 
) [virtual]

virtual void wx.GridCtrl.GridTableBase.SetValueAsCustom ( int  row,
int  col,
string  typeName,
Object  val 
) [virtual]

virtual void wx.GridCtrl.GridTableBase.SetValueAsDouble ( int  row,
int  col,
double  val 
) [virtual]

virtual void wx.GridCtrl.GridTableBase.SetValueAsInt ( int  row,
int  col,
int  val 
) [virtual]

virtual void wx.GridCtrl.GridTableBase.SetValueAsLong ( int  row,
int  col,
long  val 
) [virtual]

virtual void wx.GridCtrl.GridTableBase.SetView ( Grid  grid  )  [virtual]


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads