|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
|---|
static final String COMMAND_FIRST
static final String COMMAND_LAST
static final String COMMAND_NEXT
static final String COMMAND_PREVIOUS
static final String COMMAND_EDIT
static final String COMMAND_INSERT
static final String COMMAND_INSERT_SUB
static final String COMMAND_RESTORE
static final String COMMAND_DELETE
static final String COMMAND_DUPLICATE
static final String COMMAND_EXPORT
static final String COMMAND_SEARCH
| Method Detail |
|---|
IController getController()
IController for this IControllable.
IControllervoid setController(IController pController)
IController for this IControllable.
pController - the IControllerIDataBook getActiveDataBook()
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.
IDataBookboolean isCommandEnabled(String pCommand)
pCommand - the command
void doCommand(String pCommand)
throws Throwable
pCommand - the command
Throwable - if the command fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||