Class: TTableItem

Declaration: ScrollingListControl.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

None.

Purpose:

TTableItem is a class that represents a list item in a table. TTableItem defines protocol for selecting, enabling and drawing the item.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TTableItem.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TTableItem::TTableItem

  1. TTableItem ()
  2. TTableItem (TLabel * labelToAdopt)
  3. TTableItem (const TTableItem &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a TTableItem with the specified label.
  3. Copy constructor.

Calling Context:

  1. Called to create a TTableItem suitable for streaming into.
  2. Called to create a TTableItem with a specific label.
  3. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::~TTableItem

~ TTableItem ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::operator=

TTableItem & operator =(const TTableItem &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::operator>>=

virtual TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws TInvalidVersionError if the version of the flattened object is not supported.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::AdoptLabel

virtual void AdoptLabel (TLabel * labelToAdopt)

Interface Category:

API.

Purpose:

Adopts the specified label.

Calling Context:

Call this function directly to adopt the label.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::OrphanLabel

virtual TLabel * OrphanLabel ()

Interface Category:

API.

Purpose:

Orphans the current label.

Calling Context:

Call this function directly to orphan the current label.

Parameters:

Return Value:

A pointer to the orphaned label.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::GetLabel

virtual TLabel * GetLabel () const

Interface Category:

API.

Purpose:

Returns a pointer to the current label.

Calling Context:

Call this function directly to obtain the current label.

Parameters:

Return Value:

Returns a pointer to the current label.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::SetEnabled

virtual void SetEnabled (bool enabled)

Interface Category:

API.

Purpose:

Enables or disables this item, depending on the value of the parameter.

Calling Context:

Call this function directly to enable or disable this item.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::IsEnabled

virtual bool IsEnabled () const

Interface Category:

API.

Purpose:

Returns true if this item is enabled. Returns false if this item is disabled.

Calling Context:

Call this function directly to determine if this item is enabled.

Parameters:

Return Value:

Returns true if this item is enabled. Returns false if this item is disabled.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::SetSelected

virtual void SetSelected (bool selected)

Interface Category:

API.

Purpose:

Selects or deselects this item, depending on the value of the parameter.

Calling Context:

Call this function directly to select or deselect this item.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::IsSelected

virtual bool IsSelected () const

Interface Category:

API.

Purpose:

Returns true if this item is selected. Returns false if this item is deselected.

Calling Context:

Call this function directly to determine the selection state of this object.

Parameters:

Return Value:

Returns true if this item is selected. Returns false if this item is deselected.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::SetOwner

virtual void SetOwner (MTableControlState * state)

Interface Category:

API.

Purpose:

Sets the specified control state as the owner of this item.

Calling Context:

Call this function directly to set ownership of this item.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::GetOwner

virtual MTableControlState * GetOwner () const

Interface Category:

API.

Purpose:

Returns a pointer to the control state that owns this item.

Calling Context:

Call this function directly to obtain the control state that owns this item.

Parameters:

Return Value:

Returns a pointer to the control state that owns this item.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::Draw

  1. virtual void Draw (TGrafPort &, const TGRect & bounds) const
  2. virtual void Draw (TGrafPort &) const

Interface Category:

API.

Purpose:

  1. Draws this item to the specified port with the specified bounds.
  2. Draws this item to the specified port.

Calling Context:

  1. Called to draw this object.
  2. Called to draw this object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::SetAutoRedraw

virtual void SetAutoRedraw (bool redraw)

Interface Category:

API.

Purpose:

Enables or disables automatic redrawing of this item.

Calling Context:

Call this function directly to enable or disable automatic redrawing of this item.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::DoAutoRedraw

virtual bool DoAutoRedraw () const

Interface Category:

API.

Purpose:

Returns true if automatic redraw is enabled, false if it is disabled.

Calling Context:

Call this function directly to determine if automatic redraw is enabled or disabled.

Parameters:

Return Value:

Returns true if automatic redraw is enabled, false if it is disabled.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTableItem::RedrawItem

virtual void RedrawItem ()

Interface Category:

API.

Purpose:

Redraws this item.

Calling Context:

Call this function directly to redraw this item.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.