javax.rad.model.ui
Interface IControllable

All Known Implementing Classes:
AbstractControllable, Application, Application, ControllerContent, RemoteApplication, RemoteWorkScreen, RemoteWorkScreenApplication, UIChart, UIEditor, UITable, UITree, WorkScreen

public interface IControllable

The IControllable to allow external control for IControls.


Field Summary
static java.lang.String COMMAND_DELETE
          Command for deleting a row.
static java.lang.String COMMAND_DUPLICATE
          Command for deleting a row.
static java.lang.String COMMAND_EDIT
          Command for start editing.
static java.lang.String COMMAND_EXPORT
          Command for exporting the data.
static java.lang.String COMMAND_FIRST
          Command for selecting the first row.
static java.lang.String COMMAND_INSERT
          Command for inserting a row.
static java.lang.String COMMAND_INSERT_SUB
          Command for inserting a detail row.
static java.lang.String COMMAND_LAST
          Command for selecting the last row.
static java.lang.String COMMAND_NEXT
          Command for selecting the next row.
static java.lang.String COMMAND_PREVIOUS
          Command for selecting the previous row.
static java.lang.String COMMAND_RESTORE
          Command for restore a row.
static java.lang.String COMMAND_SEARCH
          Command for searching the data.
 
Method Summary
 void doCommand(java.lang.String pCommand)
          Performs the command.
 IDataBook getActiveDataBook()
          Gets the controllable IDataBook for this IControllable.
 IController getController()
          Gets the IController for this IControllable.
 boolean isCommandEnabled(java.lang.String pCommand)
          Gets true, if the command should be enabled.
 void setController(IController pController)
          Sets the IController for this IControllable.
 

Field Detail

COMMAND_FIRST

static final java.lang.String COMMAND_FIRST
Command for selecting the first row.

See Also:
Constant Field Values

COMMAND_LAST

static final java.lang.String COMMAND_LAST
Command for selecting the last row.

See Also:
Constant Field Values

COMMAND_NEXT

static final java.lang.String COMMAND_NEXT
Command for selecting the next row.

See Also:
Constant Field Values

COMMAND_PREVIOUS

static final java.lang.String COMMAND_PREVIOUS
Command for selecting the previous row.

See Also:
Constant Field Values

COMMAND_EDIT

static final java.lang.String COMMAND_EDIT
Command for start editing.

See Also:
Constant Field Values

COMMAND_INSERT

static final java.lang.String COMMAND_INSERT
Command for inserting a row.

See Also:
Constant Field Values

COMMAND_INSERT_SUB

static final java.lang.String COMMAND_INSERT_SUB
Command for inserting a detail row.

See Also:
Constant Field Values

COMMAND_RESTORE

static final java.lang.String COMMAND_RESTORE
Command for restore a row.

See Also:
Constant Field Values

COMMAND_DELETE

static final java.lang.String COMMAND_DELETE
Command for deleting a row.

See Also:
Constant Field Values

COMMAND_DUPLICATE

static final java.lang.String COMMAND_DUPLICATE
Command for deleting a row.

See Also:
Constant Field Values

COMMAND_EXPORT

static final java.lang.String COMMAND_EXPORT
Command for exporting the data.

See Also:
Constant Field Values

COMMAND_SEARCH

static final java.lang.String COMMAND_SEARCH
Command for searching the data.

See Also:
Constant Field Values
Method Detail

getController

IController getController()
Gets the IController for this IControllable.

Returns:
the IController

setController

void setController(IController pController)
Sets the IController for this IControllable.

Parameters:
pController - the IController

getActiveDataBook

IDataBook getActiveDataBook()
Gets the controllable IDataBook for this IControllable. IEditorControl should return the set data row, if it is instanceof IDataBook or null otherwise. ITableControl should return the set data book. ITreeControl should return the data book of the current selected node. The controller has to be informed, If the databook changes on a focused IControllable. eg: ITreeControl node selection of a different databook. Editor or table has the focus, and a different databook is set on editor or table.

Returns:
the controllable IDataBook

isCommandEnabled

boolean isCommandEnabled(java.lang.String pCommand)
Gets true, if the command should be enabled.

Parameters:
pCommand - the command
Returns:
true, if the command should be enabled.

doCommand

void doCommand(java.lang.String pCommand)
               throws java.lang.Throwable
Performs the command.

Parameters:
pCommand - the command
Throws:
java.lang.Throwable - if the command fails.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.