Interface
DBKit.SDK.RowActionControl
DBKit.SDK.RowActionControl
Description
Implemented by a control that acts on the layout's current row rather than displaying a column of it, such as the built-in NewButton, DeleteButton and navigation buttons. It extends DBKit.SDK.RowBase, so a control implementing it also provides the RowBase methods and receives row events through DBKit.SDK.RowEventReceiver.
DBKit keeps an action control in step with the row in two ways: it tells the control when the row enters and leaves edit mode, and it tells the control when to enable and disable itself, identifying which action the change applies to.
The button that switches a row in and out of edit mode implements DBKit.SDK.RowActionEditControl instead, which extends this interface.
Methods
Name |
Parameters |
Returns |
|---|---|---|
IsBeingEdited As Boolean |
||
state As Boolean, type As DBKit.Internals.ActionTypes |
Method descriptions
DBKit.SDK.RowActionControl.CurrentRowEditMode
CurrentRowEditMode(IsBeingEdited As Boolean)
Called by DBKit when the layout's current row enters or leaves edit mode, so the control can update its own state or appearance to match.
DBKit.SDK.RowActionControl.SetEnabledState
SetEnabledState(state As Boolean, type As DBKit.Internals.ActionTypes)
Called by DBKit to enable or disable the control. The type parameter identifies which action the change applies to, so a control that serves more than one action can respond to its own. Its values are EditButton, DeleteButton, NewButton, UndoButton, FirstRowButton, PreviousRowButton, NextRowButton, LastRowButton and BackButton.
Notes
The methods an interface requires can be implemented as Private. DBKit works with the control through the interface, so the methods do not need to be public on the control class itself.
Compatibility
Project Types |
Desktop, Web |
Operating Systems |
All |
See also
DBKit SDK overview, DBKit.SDK.RowActionEditControl.