Class: TUpdateLinkControlState

Declaration: LinkingCommands.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TCommandControlState

Inherited By:

None.

Purpose:

TUpdateLinkControlState derives from TCommandControlState and implements the command to update a links. It basically pulls/or pushes data depending on the type of the link.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TUpdateLinkControlState::TUpdateLinkControlState

  1. TUpdateLinkControlState (TGUIBundleConnection * theConnectionToAlias, const TText & name, bool notifyOfSelectionChanged =false)
  2. TUpdateLinkControlState (TGUIBundleConnection * theConnectionToAlias, TLabel * nameLabelToAdopt, bool notifyOfSelectionChanged =false)
  3. TUpdateLinkControlState (TGUIBundle * theBundleToAlias, const TText & name, bool notifyOfSelectionChanged =false)
  4. TUpdateLinkControlState (TGUIBundle * theBundleToAlias, TLabel * nameLabelToAdopt, bool notifyOfSelectionChanged =false)
  5. TUpdateLinkControlState ()

Interface Category:

API.

Purpose:

  1. Creates a named control state for the specified bundle connection.
  2. Creates a named control state for the specified bundle connection.
  3. Creates a named control state for the specified bundle.
  4. Creates a named control state for the specified bundle.
  5. Default constructor.

Calling Context:

  1. Called by any client object.
  2. Called by any client object.
  3. Called by any client object.
  4. Called by any client object.
  5. Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TUpdateLinkControlState::~TUpdateLinkControlState

virtual ~ TUpdateLinkControlState ()

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: TUpdateLinkControlState::Select

virtual void Select ()

Interface Category:

API.

Purpose:

Selects this control state. This causes the command to be executed and the links for this object's GUI bundle to be updated.

Calling Context:

Called by any client object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TUpdateLinkControlState::IsEnabled

virtual bool IsEnabled () const API.

Purpose:

Returns whether or not this control state is enabled.

Calling Context:

Called by any client object.

Parameters:

Return Value:

Returns true if this control state is enabled.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TUpdateLinkControlState::AddInterests

virtual void AddInterests (TSetOf < TInterest > & set)

Interface Category:

API.

Purpose:

Adds interests to the specified set. The interests added by this function indicate the notifications in which this object is interested. Derived classes who wish to provide their own set of interests should override HandleAddInterests rather than this function.

Calling Context:

Called by any client object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TUpdateLinkControlState::HandleAddInterests

virtual void HandleAddInterests (TSetOf < TInterest > & set) const

Interface Category:

API.

Purpose:

Adds interests to the specified set. The interests added by this function indicate the notifications in which this object is interested. Derived classes who wish to provide their own set of interests should override this function rather than AddInterests.

Calling Context:

Called by AddInterests.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TUpdateLinkControlState::HandleCanDo

virtual bool HandleCanDo () const

Interface Category:

API.

Purpose:

Computes and returns whether or not this command can be done.

Calling Context:

Called by IsEnabled.

Parameters:

Return Value:

Returns true if the command can be done.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TUpdateLinkControlState::HandleCreateCommandBinding

virtual MGUIDocumentComponentCommandBinding * HandleCreateCommandBinding ()

Interface Category:

API.

Purpose:

Creates a command binding for binding this control state to a command. This function always returns NIL. Derived classes who wish to alter the default behavior should override this function.

Calling Context:

Called by Select.

Parameters:

Return Value:

Returns the new command binding.

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.