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

VCF::DefaultTableCellItem Class Reference

#include <vcf/ApplicationKit/DefaultTableCellItem.h>

Inheritance diagram for VCF::DefaultTableCellItem:

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

Public Member Functions

 DefaultTableCellItem ()
virtual ~DefaultTableCellItem ()
virtual bool containsPoint (Point *pt)
virtual uint32 getIndex ()
virtual void setIndex (const uint32 &index)
virtual bool canPaint () const
 indicates whether the item can paint itself.
virtual void paint (GraphicsContext *context, Rect *paintRect)
virtual TableItemEditorcreateItemEditor ()
 Calling this will create a new table item editor.
virtual bool isReadonly ()
 Identifies if this item is in a readonly state, or if it's possible to edit it.
virtual bool isFixed ()
virtual bool isFocused ()
virtual bool isDropHighlighted ()
virtual bool isEditable ()
virtual void setReadonly (const bool &val)
virtual void setFocused (const bool &val)
virtual void setDropHighlighted (const bool &val)
virtual String getCaption ()
virtual void setCaption (const String &caption)
virtual double getTextCellWidth ()
 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 ()
virtual const ColorgetColor ()
 Returns a non modifiable color reference.
virtual void setColor (Color *color)
virtual CellID getID ()
virtual void setID (const CellID &val)

Protected Types

typedef std::map< uint32,
Color
ColorMap
typedef std::map< String,
Font
FontMap

Protected Member Functions

void onFontChanged (Event *e)

Protected Attributes

Colorcolor_
CellID id_

Static Protected Attributes

static ColorMap tableCellsColorMap
static FontMap tableCellsFontMap

Member Typedef Documentation

typedef std::map<uint32,Color> VCF::DefaultTableCellItem::ColorMap [protected]
 

typedef std::map<String,Font> VCF::DefaultTableCellItem::FontMap [protected]
 


Constructor & Destructor Documentation

VCF::DefaultTableCellItem::DefaultTableCellItem  ) 
 

virtual VCF::DefaultTableCellItem::~DefaultTableCellItem  )  [virtual]
 


Member Function Documentation

virtual bool VCF::DefaultTableCellItem::canPaint  )  const [inline, virtual]
 

indicates whether the item can paint itself.

In general this is often false, but when true, the control that contains the item should call the item's paint() method whenever the item needs repainting.

Reimplemented from VCF::Item.

virtual bool VCF::DefaultTableCellItem::containsPoint Point pt  )  [virtual]
 

virtual TableItemEditor* VCF::DefaultTableCellItem::createItemEditor  )  [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()

Implements VCF::TableCellItem.

virtual String VCF::DefaultTableCellItem::getCaption  )  [virtual]
 

Implements VCF::TableCellItem.

virtual const Color& VCF::DefaultTableCellItem::getColor  )  [virtual]
 

Returns a non modifiable color reference.

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

See also:
setColor()

Implements VCF::TableCellItem.

virtual CellID VCF::DefaultTableCellItem::getID  )  [inline, virtual]
 

Implements VCF::TableCellItem.

virtual uint32 VCF::DefaultTableCellItem::getIndex  )  [inline, virtual]
 

virtual double VCF::DefaultTableCellItem::getTextCellHeight  )  [virtual]
 

Implements VCF::TableCellItem.

virtual double VCF::DefaultTableCellItem::getTextCellWidth  )  [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.

Implements VCF::TableCellItem.

virtual bool VCF::DefaultTableCellItem::isDropHighlighted  )  [inline, virtual]
 

Implements VCF::TableCellItem.

virtual bool VCF::DefaultTableCellItem::isEditable  )  [inline, virtual]
 

Implements VCF::TableCellItem.

virtual bool VCF::DefaultTableCellItem::isFixed  )  [virtual]
 

Implements VCF::TableCellItem.

virtual bool VCF::DefaultTableCellItem::isFocused  )  [inline, virtual]
 

Implements VCF::TableCellItem.

virtual bool VCF::DefaultTableCellItem::isReadonly  )  [inline, virtual]
 

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

Implements VCF::TableCellItem.

void VCF::DefaultTableCellItem::onFontChanged Event e  )  [protected]
 

virtual void VCF::DefaultTableCellItem::paint GraphicsContext context,
Rect paintRect
[virtual]
 

Reimplemented from VCF::Item.

virtual void VCF::DefaultTableCellItem::setCaption const String caption  )  [virtual]
 

Implements VCF::TableCellItem.

virtual void VCF::DefaultTableCellItem::setColor Color color  )  [virtual]
 

Implements VCF::TableCellItem.

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

Implements VCF::TableCellItem.

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

Implements VCF::TableCellItem.

virtual void VCF::DefaultTableCellItem::setID const CellID val  )  [inline, virtual]
 

Implements VCF::TableCellItem.

virtual void VCF::DefaultTableCellItem::setIndex const uint32 index  )  [inline, virtual]
 

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

Implements VCF::TableCellItem.


Member Data Documentation

Color* VCF::DefaultTableCellItem::color_ [protected]
 

CellID VCF::DefaultTableCellItem::id_ [protected]
 

ColorMap VCF::DefaultTableCellItem::tableCellsColorMap [static, protected]
 

FontMap VCF::DefaultTableCellItem::tableCellsFontMap [static, protected]
 


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