[Overview][Classes][Procedures and functions][Index] Reference for unit 'DBActns' (#lcl)

TDataSetAction

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TDataSetAction is the base class for all other standard TDataSet actions.

Declaration

Source position: dbactns.pp line 27

type TDataSetAction = class(TAction)

protected

  procedure Notification(); override;

  

Performs a notification when the datasource for the component is removed.

  function GetDataSet(); virtual;

  

Gets the Dataset assigned to the specified target datasource.

public

  function HandlesTarget(); override;

  

Indicates if the action is handled for the specified target.

  property DataSource: TDataSource; [rw]

  

DataSource with the dataset for the action.

end;

Inheritance

TDataSetAction

  

TDataSetAction is the base class for all other standard TDataSet actions.

|

TAction

  

TAction is the basic action object used in the LCL.

|

TCustomAction

  

TCustomAction is the ancestor class for TAction.

|

TContainedAction

  

Implements an Action class which has a category and parent action list.

|

TBasicAction

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

Description

TDataSetAction is a TAction descendant that is the base class for all other standard TDataSet actions. TDataSetAction provides properties and methods which enables an action to be applied to a DataSource and its associated dataset.

TDataSetAction provides an overridden Notification method to perform component notifications when the DataSource is removed for the action. A virtual GetDataSet method is implemented to ensure that a DataSource is cast to a TDataSource class instance prior to accessing its dataset. The HandlesTarget method is overridden to determine if the class includes both a valid datasource and a dataset for a specified target.

Applications do not use instances of TDataSetAction; use one of the descendent classes that perform a specific action for a dataset.

See also

TDataSetFirst

  

TDataSetFirst moves to first record in the DataSet.

TDataSetLast

  

TDataSetLast moves to last record in the DataSet.

TDataSetNext

  

TDataSetNext moves to next record in the DataSet.

TDataSetPrior

  

TDataSetPrior moves to previous record in the DataSet.

TDataSetRefresh

  

TDataSetRefresh refreshes the DataSet.

TDataSetCancel

  

TDataSetCancel cancels the current edit mode for a DataSet.

TDataSetDelete

  

TDataSetDelete deletes the current record in the DataSet.

TDataSetEdit

  

TDataSetEdit edits the current record in the DataSet.

TDataSetInsert

  

TDataSetInsert inserts (appends) a new record into the DataSet.

TDataSetPost

  

TDataSetPost posts changes for the current record to the DataSet.

TAction

  

TAction is the basic action object used in the LCL.


Version 3.2 Generated 2024-02-25 Home