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::Component VCF::ObjectWithEvents VCF::Object VCF::DefaultTableCellItem List of all members.

Public Types

enum  TableCellItemState {
  tcsNone = 0, tisSelected = 0x0002, tisReadonly = 0x0008, tcsFixed = 0x0010,
  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 isSelected ()=0
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 setSelected (const bool &val)=0
virtual void setReadonly (const bool &val)=0
virtual void setFocused (const bool &val)=0
virtual void setDropHighlighted (const bool &val)=0
virtual void setFixed (const bool &val)=0
virtual String getCaption ()=0
virtual void setCaption (const String &caption)=0
virtual double getTextCellWidth (GraphicsContext *context)=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 (GraphicsContext *context)=0
virtual const ColorgetColor ()=0
 Returns a non modifiable color reference.
virtual void setColor (Color *color)=0
virtual const FontgetFont ()=0
 Returns a non modifiable font reference.
virtual void setFont (Font *font)=0

Member Enumeration Documentation

enum VCF::TableCellItem::TableCellItemState
 

Enumerator:
tcsNone 
tisSelected 
tisReadonly 
tcsFixed 
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 const Font& VCF::TableCellItem::getFont  )  [pure virtual]
 

Returns a non modifiable font reference.

If you need to change the cell's font, you should call setFont().

See also:
setFont()

Implemented in VCF::DefaultTableCellItem.

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

Implemented in VCF::DefaultTableCellItem.

virtual double VCF::TableCellItem::getTextCellWidth GraphicsContext context  )  [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 bool VCF::TableCellItem::isSelected  )  [pure virtual]
 

Implements VCF::Item.

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::setFixed 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::setFont Font font  )  [pure virtual]
 

Implemented in VCF::DefaultTableCellItem.

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

Implemented in VCF::DefaultTableCellItem.

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

Implements VCF::Item.

Implemented in VCF::DefaultTableCellItem.


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