Skip to content

TBasicActionLink

Link between actions and action clients (e.g. controls).

Declaration

Source position: classesh.inc line 2741

type

  TBasicActionLink = class(TObject)
  public
    constructor Create;
    destructor Destroy;
    function Execute : Boolean;
    function Update : Boolean;
    property Action: TBasicAction; {rw}
    property OnChange: TNotifyEvent; {rw}
  end;

Description

TBasicActionLink links an Action to its clients. With each client for an action, a TBasicActionLink class is instantiated to handle the communication between the action and the client. It passes events between the action and its clients, and thus presents the action with a uniform interface to the clients.

An application programmer should never use a TBasicActionLink instance directly; They are created automatically when an action is associated with a component. Component programmers should create specialized descendants of TBasicActionLink which communicate changes in the action to the component.

Properties

Member Visibility Description
Action public The action to which the link was assigned.
See all Properties

Methods

Member Visibility Description
Create public Creates a new instance of the TBasicActionLink class.
Destroy public Destroys the TBasicActionLink instance.
Execute public Calls the action's Execute method.
Update public Calls the action's Update method.
See all Methods

Events

Member Visibility Description
OnChange public Event handler triggered when the action's properties change.
See all Events

See also

Name Description
TBasicAction Abstract base class for all Actions.