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