Interface
DBKit.SDK.RowEventReceiver
DBKit.SDK.RowEventReceiver
Description
The root of the DBKit SDK interfaces. DBKit reports what happens to a row by calling HandleRowEvent with a DBKit.SDK.RowEvent describing it.
Every control interface includes this one, through DBKit.SDK.RowBase, and DBKit.SDK.Layout implements it as well. A control reacts to the events it cares about and ignores the rest.
Methods
Name |
Parameters |
Returns |
|---|---|---|
theEvent As DBKit.SDK.RowEvent |
Method descriptions
DBKit.SDK.RowEventReceiver.HandleRowEvent
HandleRowEvent(theEvent As DBKit.SDK.RowEvent)
Called by DBKit when something happens to the row the control is working with. The event's Type property says what happened: the row was loaded, entered edit mode, changed, is about to be saved, was saved, and so on. Its Row property is the row the event is about, which can be Nil for events that are not tied to a particular row.
How a control reacts depends on its kind. A data control typically reloads its value from the row when the event says the row was loaded or changed. See the DBKit.SDK.RowEvent page for the full list of event types.
Notes
The methods an interface requires can be implemented as Private, as the Rating example control in the DBKit example project does. 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.RowEvent, DBKit.SDK.RowBase.