Sign in Join
FPDoc Onlineexperiment

TBasicAction class

In unit Classes

Abstract base class for all Actions.

Declaration

pascal
TBasicAction = class(TComponent)

Inheritance

  1. TBasicAction
  2. TComponent
  3. TPersistent
  4. TObject

Descends from it: TContainedAction

Description

TBasicAction implements a basic action class from which all actions are derived. It introduces all basic methods of an action, and implements functionality to maintain a list of clients, i.e. components that are connected with this action.

Do not create instances of TBasicAction. Instead, create a descendant class and create an instance of this class instead.

See also

Properties

ActionComponentpublicReturns the component that initiated the action.
Clientspublic

Methods

ChangeprotectedCalls the OnChange handler.
NotificationprotectedCalled by components that are freed and which received a FreeNotification.
SetOnExecuteprotectedAssigns an OnExecute event handler.
ClientCountprotected
GetClientprotected
CreatepublicCreates a new instance of a class.
DestroypublicDestroys the action.
HandlesTargetpublicDetermines whether Target can be handled by this action.
UpdateTargetpublicNotify client controls when the action updates itself.
ExecuteTargetpublicExecutes the action on the Target object.
ExecutepublicTriggers the OnExecute event.
RegisterChangespublicRegisters a new client with the action.
UnRegisterChangespublicUnregisters a client from the list of clients.
UpdatepublicTriggers the OnUpdate event.
Suspendedpublic

Events

OnChangeprotectedOccurs when one of the action's properties changes.
OnExecutepublicEvent triggered when the action executes.
OnUpdatepublicEvent triggered when the application is idle.

Fields

FClientsprotectedList with components linked to this action.

Inherited

From TComponent (73)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.