Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::TableCellItem Class Reference

#include <vcf/ApplicationKit/TableCellItem.h>

Inheritance diagram for VCF::TableCellItem:

VCF::Item VCF::UIComponent VCF::Component VCF::ObjectWithCallbacks VCF::Object VCF::DefaultTableCellItem List of all members.

Public Types

enum  TableCellItemState {
  tcsNone = 0, tisReadonly = 0x0008, tcsFocused = 0x0001, tcsDropHighlighted = 0x0004,
  tcsEditable = 0x0100
}

Public Member Functions

virtual ~TableCellItem ()
virtual TableItemEditorcreateItemEditor ()=0
 Calling this will create a new table item editor.
virtual bool isReadonly ()=0
 Identifies if this item is in a readonly state, or if it's possible to edit it.
virtual bool isFixed ()=0
virtual bool isFocused ()=0
virtual bool isDropHighlighted ()=0
virtual bool isEditable ()=0
virtual void setReadonly (const bool &val)=0
virtual void setFocused (const bool &val)=0
virtual void setDropHighlighted (const bool &val)=0
virtual String getCaption ()=0
virtual void setCaption (const String &caption)=0
virtual double getTextCellWidth ()=0
 rerturns the width of the cell, taking into account the text of the cell, and any other formatting rules the cell wants to consider.
virtual double getTextCellHeight ()=0
virtual CellID getID ()=0
virtual void setID (const CellID &val)=0
virtual const ColorgetColor ()=0
 Returns a non modifiable color reference.
virtual void setColor (Color *color)=0

Member Enumeration Documentation

enum VCF::TableCellItem::TableCellItemState
 

Enumerator:
tcsNone 
tisReadonly 
tcsFocused 
tcsDropHighlighted 
tcsEditable 


Constructor & Destructor Documentation

virtual VCF::TableCellItem::~TableCellItem  )  [inline, virtual]
 


Member Function Documentation

virtual TableItemEditor* VCF::TableCellItem::createItemEditor  )  [pure virtual]
 

Calling this will create a new table item editor.

The implementor is responsible for returning an editor that is properly initialized with the data from the item.

Returns:
TableItemEditor an new instance of an editor, or NULL if no editing is supported. If isReadonly() returns true, then this should return NULL regardless of whether or not the item implementation supports and editor or not.
See also:
isReadonly()

Implemented in VCF::DefaultTableCellItem.

virtual String VCF::TableCellItem::getCaption  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual const Color& VCF::TableCellItem::getColor  )  [pure virtual]
 

Returns a non modifiable color reference.

If you need to change the cell's color, you should call setColor().

See also:
setColor()

Implemented in VCF::DefaultTableCellItem.

virtual CellID VCF::TableCellItem::getID  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual double VCF::TableCellItem::getTextCellHeight  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual double VCF::TableCellItem::getTextCellWidth  )  [pure virtual]
 

rerturns the width of the cell, taking into account the text of the cell, and any other formatting rules the cell wants to consider.

Implemented in VCF::DefaultTableCellItem.

virtual bool VCF::TableCellItem::isDropHighlighted  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual bool VCF::TableCellItem::isEditable  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual bool VCF::TableCellItem::isFixed  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual bool VCF::TableCellItem::isFocused  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual bool VCF::TableCellItem::isReadonly  )  [pure virtual]
 

Identifies if this item is in a readonly state, or if it's possible to edit it.

Implemented in VCF::DefaultTableCellItem.

virtual void VCF::TableCellItem::setCaption const String caption  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual void VCF::TableCellItem::setColor Color color  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual void VCF::TableCellItem::setDropHighlighted const bool &  val  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual void VCF::TableCellItem::setFocused const bool &  val  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual void VCF::TableCellItem::setID const CellID val  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

virtual void VCF::TableCellItem::setReadonly const bool &  val  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information