Index

Package: Actions

Description

package Actions is

Classes

Action (abstract)

type Action is abstract new Object with private;

Ancestors:

Immediate Children:

Primitive operations:

Objects.Adjust (Inherited)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)
Represents an action that occurred to a widget in the GUI, such as a click, toggle, press, etc.

Types

Action_Id

type Action_Id is private;
Represents the type of action that occurred

Action_Listener (abstract)

type Action_Listener is limited interface;
An interface from which all concrete Action_Listener interfaces are to be inherited from. This interface does not define any procedures because it is not used directly. The interface is useful for putting different classes of Action_Listeners in a common container.

A_Action_Listener

type A_Action_Listener is access all Action_Listener'Class;

Subprograms & Entries

=

function "="
( l, r: Action_Id ) return Boolean;

To_Action_Id

function To_Action_Id
( actName: String ) return Action_Id;

Construct

procedure Construct
( this: access Action;
id: Action_Id;
source: not null access Widgets.Widget'Class );
All actions have a base type/id and the widget that reported the action. Additional information about the action may be included, depending on the concrete action class. A concrete action class represents a set of action types that all share the same kind of action information, or come from the same class of widget.

Get_Id

function Get_Id
( this: not null access Action'Class ) return Action_Id;
Returns the identity of the action. This is the specific type of action that occured at the source widget, like Click, Input_Entered, etc.

Get_Source

function Get_Source
( this: not null access Action'Class ) return access Widgets.Widget'Class;
Returns a reference to the widget that reported the action.