Node Director
|
Public Member Functions | |
EditUi (Editor editor, Record data) | |
void | runImport () |
void | setExpander (ExpandHook exp) |
void | eventNotify (GuiEvent evt) |
void | registerEventListener (Field f) |
void | unregisterEventListener (Field f) |
Field | getFieldByAttribute (String attr) |
Field | getFieldByLabel (String label) |
void | pullData () |
void | putData () |
void | setDefaults () |
void | exchange (Field source, Vector data, String target) |
void | textinput (String target, String data) |
Vector | expand (String template) |
Record | getData () |
boolean | checkData () |
void | error (Field f, String msg, boolean serious) |
void | displayError (String msg, boolean serious) |
void | error (Field f, String msg) |
void | warning (Field f, String msg) |
Editor | getEditor () |
Enumeration | fields () |
return an enumeration of fields managed by this user interface. | |
void | addLoad (String what) throws Exception |
Loads an additional schema. | |
void | removeField (String name) |
Remove a field. | |
String | fancyPrint () |
Protected Attributes | |
Editor | editor |
Record | data |
void com.graeff.dbedit.EditUi.addLoad | ( | String | what | ) | throws Exception |
Loads an additional schema.
This is explicitly allowed during editing, so that fields may be added/removed depending on e.g. field values.
Implements com.graeff.dbedit.EventSource.
Reimplemented in com.graeff.dbedit.EditDaemon.
References com.graeff.dbedit.EditUi.editor, com.graeff.dbedit.Editor.load(), and com.graeff.dbedit.EditUi.runImport().
boolean com.graeff.dbedit.EditUi.checkData | ( | ) |
void com.graeff.dbedit.EditUi.displayError | ( | String | msg, |
boolean | serious | ||
) |
Reimplemented in com.graeff.dbedit.EditDaemon.
Referenced by com.graeff.dbedit.EditUi.checkData(), and com.graeff.dbedit.EditUi.error().
void com.graeff.dbedit.EditUi.error | ( | Field | f, |
String | msg, | ||
boolean | serious | ||
) |
Reimplemented in com.graeff.dbedit.EditDaemon.
References com.graeff.dbedit.EditUi.displayError(), com.graeff.dbedit.Field.getArgs(), com.graeff.dbedit.Arguments.getArgument(), and com.graeff.dbedit.Field.getAttribute().
Referenced by com.graeff.dbedit.EditUi.error(), and com.graeff.dbedit.EditUi.warning().
void com.graeff.dbedit.EditUi.error | ( | Field | f, |
String | msg | ||
) |
Implements com.graeff.dbedit.EventSource.
References com.graeff.dbedit.EditUi.error().
void com.graeff.dbedit.EditUi.eventNotify | ( | GuiEvent | evt | ) |
Implements com.graeff.dbedit.EventSource.
References com.graeff.dbedit.Field.guiEvent().
Referenced by com.graeff.dbedit.EditUi.checkData(), com.graeff.dbedit.EditUi.exchange(), com.graeff.dbedit.EditUi.pullData(), com.graeff.dbedit.EditUi.putData(), com.graeff.dbedit.EditUi.setDefaults(), and com.graeff.dbedit.EditUi.textinput().
void com.graeff.dbedit.EditUi.exchange | ( | Field | source, |
Vector | data, | ||
String | target | ||
) |
Vector com.graeff.dbedit.EditUi.expand | ( | String | template | ) |
Implements com.graeff.dbedit.EventSource.
References com.graeff.dbedit.EditUi.data, and com.graeff.dbedit.ExpandHook.expand().
String com.graeff.dbedit.EditUi.fancyPrint | ( | ) |
References com.graeff.dbedit.EditUi.editor, com.graeff.dbedit.EditUi.fields(), com.graeff.dbedit.Field.getArgs(), com.graeff.dbedit.Arguments.getArgument(), com.graeff.dbedit.EditUi.getFieldByAttribute(), com.graeff.dbedit.EditPanel.getFieldNames(), com.graeff.dbedit.Editor.getPanel(), com.graeff.dbedit.Editor.getPanels(), com.graeff.dbedit.Field.toString(), and com.graeff.dbedit.Field.toVector().
Referenced by sfi.director.cli.create.prettyPrint().
Enumeration com.graeff.dbedit.EditUi.fields | ( | ) |
return an enumeration of fields managed by this user interface.
The list is ordered in "display order" (by panel and schema file order)
Implements com.graeff.dbedit.EventSource.
References com.graeff.dbedit.EditUi.editor, com.graeff.dbedit.EditUi.getFieldByAttribute(), com.graeff.dbedit.EditPanel.getFieldNames(), com.graeff.dbedit.Editor.getPanel(), and com.graeff.dbedit.Editor.getPanels().
Referenced by sfi.director.application.FrontendHTTPServer.edit_data(), sfi.director.application.FrontendHTTPServer.edit_editor(), sfi.director.application.FrontendInterface.executeCommand(), com.graeff.dbedit.EditUi.fancyPrint(), and sfi.director.application.FrontendHTTPServer.fieldsToJSON().
Record com.graeff.dbedit.EditUi.getData | ( | ) |
References com.graeff.dbedit.EditUi.data, com.graeff.dbedit.EditUi.editor, com.graeff.dbedit.Interface.exportRecord(), com.graeff.dbedit.Editor.getInterface(), and com.graeff.dbedit.EditUi.pullData().
Referenced by sfi.director.application.FrontendHTTPServer.edit_export(), sfi.director.application.FrontendInterface.executeCommand(), and sfi.director.application.DaemonObjectEdit.getDBObject().
Editor com.graeff.dbedit.EditUi.getEditor | ( | ) |
References com.graeff.dbedit.EditUi.editor.
Field com.graeff.dbedit.EditUi.getFieldByAttribute | ( | String | attr | ) |
Field com.graeff.dbedit.EditUi.getFieldByLabel | ( | String | label | ) |
void com.graeff.dbedit.EditUi.pullData | ( | ) |
References com.graeff.dbedit.EditUi.eventNotify(), and com.graeff.dbedit.GuiEvent.POP.
Referenced by com.graeff.dbedit.EditUi.getData().
void com.graeff.dbedit.EditUi.putData | ( | ) |
References com.graeff.dbedit.EditUi.eventNotify(), and com.graeff.dbedit.GuiEvent.PUSH.
Referenced by com.graeff.dbedit.EditDaemon.initPanels().
void com.graeff.dbedit.EditUi.registerEventListener | ( | Field | f | ) |
void com.graeff.dbedit.EditUi.removeField | ( | String | name | ) |
Remove a field.
Implements com.graeff.dbedit.EventSource.
References com.graeff.dbedit.EditUi.editor, com.graeff.dbedit.Editor.getPanel(), and com.graeff.dbedit.Editor.getPanels().
void com.graeff.dbedit.EditUi.runImport | ( | ) |
void com.graeff.dbedit.EditUi.setDefaults | ( | ) |
void com.graeff.dbedit.EditUi.setExpander | ( | ExpandHook | exp | ) |
void com.graeff.dbedit.EditUi.textinput | ( | String | target, |
String | data | ||
) |
void com.graeff.dbedit.EditUi.unregisterEventListener | ( | Field | f | ) |
void com.graeff.dbedit.EditUi.warning | ( | Field | f, |
String | msg | ||
) |
Implements com.graeff.dbedit.EventSource.
References com.graeff.dbedit.EditUi.error().
|
protected |
|
protected |
Referenced by com.graeff.dbedit.EditUi.addLoad(), com.graeff.dbedit.EditUi.EditUi(), com.graeff.dbedit.EditUi.fancyPrint(), com.graeff.dbedit.EditUi.fields(), com.graeff.dbedit.EditUi.getData(), com.graeff.dbedit.EditUi.getEditor(), com.graeff.dbedit.EditDaemon.initPanels(), com.graeff.dbedit.EditUi.removeField(), and com.graeff.dbedit.EditUi.runImport().