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 String COMMAND_DELETE
          Command for deleting a row.
static String COMMAND_DUPLICATE
          Command for deleting a row.
static String COMMAND_EDIT
          Command for start editing.
static String COMMAND_EXPORT
          Command for exporting the data.
static String COMMAND_FIRST
          Command for selecting the first row.
static String COMMAND_INSERT
          Command for inserting a row.
static String COMMAND_INSERT_SUB
          Command for inserting a detail row.
static String COMMAND_LAST
          Command for selecting the last row.
static String COMMAND_NEXT
          Command for selecting the next row.
static String COMMAND_PREVIOUS
          Command for selecting the previous row.
static String COMMAND_RESTORE
          Command for restore a row.
static String COMMAND_SEARCH
          Command for searching the data.
 
Method Summary
 void doCommand(String pCommand)
          Performs the command.
 IDataBook getActiveDataBook()
          Gets the controllable IDataBook for this IControllable.
 IController getController()
          Gets the IController for this IControllable.
 boolean isCommandEnabled(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 String COMMAND_FIRST
Command for selecting the first row.

See Also:
Constant Field Values

COMMAND_LAST

static final String COMMAND_LAST
Command for selecting the last row.

See Also:
Constant Field Values

COMMAND_NEXT

static final String COMMAND_NEXT
Command for selecting the next row.

See Also:
Constant Field Values

COMMAND_PREVIOUS

static final String COMMAND_PREVIOUS
Command for selecting the previous row.

See Also:
Constant Field Values

COMMAND_EDIT

static final String COMMAND_EDIT
Command for start editing.

See Also:
Constant Field Values

COMMAND_INSERT

static final String COMMAND_INSERT
Command for inserting a row.

See Also:
Constant Field Values

COMMAND_INSERT_SUB

static final String COMMAND_INSERT_SUB
Command for inserting a detail row.

See Also:
Constant Field Values

COMMAND_RESTORE

static final String COMMAND_RESTORE
Command for restore a row.

See Also:
Constant Field Values

COMMAND_DELETE

static final String COMMAND_DELETE
Command for deleting a row.

See Also:
Constant Field Values

COMMAND_DUPLICATE

static final String COMMAND_DUPLICATE
Command for deleting a row.

See Also:
Constant Field Values

COMMAND_EXPORT

static final String COMMAND_EXPORT
Command for exporting the data.

See Also:
Constant Field Values

COMMAND_SEARCH

static final 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(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(String pCommand)
               throws Throwable
Performs the command.

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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.