Node Director
|
Public Member Functions | |
Field () | |
void | init () |
init() will be called on field setup | |
void | deinit () |
deinit() will be called on field removal. | |
void | setAttribute (String name) |
String | getAttribute () |
void | setRecord (Record rec) |
void | setArgs (Arguments args) |
Arguments | getArgs () |
void | setExternalData (Vector data) |
void | setWindow (EventSource win) |
String | toString () |
String | toString (String str) |
void | fromVector (Vector data) |
Vector | toVector () |
void | exchange (Vector data, Field source) |
void | textinput (String data) |
void | updated (Vector data, Field source) |
void | setTemplate (Vector data) |
void | guiEvent (GuiEvent evt) |
void | check () |
void | setDefaults () |
boolean | isUpdated () |
void | clearUpdated () |
void | sendUpdated () |
void | sendUpdated (Vector data) |
void | sendSetTemplate (String field, String template) |
void | sendSetTemplate (String field, Vector template) |
void | sendOwnData () |
void | sendTextinput (String field, String data) |
boolean | hasOwnData () |
String | getMaster () |
get the master type of a field. | |
Record | getSchema () |
get additional schema information. | |
Record | getSchema (Record record) |
the same as getSchema(), but the information is added to an existing Record object |
Protected Member Functions | |
boolean | check (String name, String acceptable, String warnchars) |
Check field contents character by character against a set of accepted characters. |
Protected Attributes | |
IgnoreCaseString | attribute |
Record | record |
Arguments | args |
EventSource | window |
boolean | hasOwnData = false |
Vector | externalData = null |
boolean | wasupdated = false |
com.graeff.dbedit.Field.Field | ( | ) |
void com.graeff.dbedit.Field.check | ( | ) |
Reimplemented in com.graeff.dbedit.fields.Selection, sfi.director.gui.fields.Uid, com.graeff.dbedit.fields.Password, com.graeff.dbedit.fields.MacAddress, com.graeff.dbedit.fields.HostName, sfi.director.gui.fields.Login, com.graeff.dbedit.fields.DomainName, com.graeff.dbedit.fields.IPAddress, and sfi.director.gui.fields.ChooseUser.
Referenced by com.graeff.dbedit.fields.Selection.check(), and com.graeff.dbedit.Field.guiEvent().
|
protected |
Check field contents character by character against a set of accepted characters.
Raise an error if the field contains an invalid character, raise a warning if field contains a character it should better not contain.
References com.graeff.dbedit.Field.args, com.graeff.dbedit.EventSource.error(), com.graeff.dbedit.Arguments.getArgument(), com.graeff.dbedit.EventSource.warning(), and com.graeff.dbedit.Field.window.
void com.graeff.dbedit.Field.clearUpdated | ( | ) |
References com.graeff.dbedit.Field.wasupdated.
Referenced by sfi.director.application.FrontendHTTPServer.edit_data().
void com.graeff.dbedit.Field.deinit | ( | ) |
deinit() will be called on field removal.
deinit() is not necessarily called when the editor terminates. It's actually meant for unloading fields during an ongoint edit operation.
References com.graeff.dbedit.EventSource.unregisterEventListener(), and com.graeff.dbedit.Field.window.
Referenced by com.graeff.dbedit.EditPanel.removeRule().
void com.graeff.dbedit.Field.exchange | ( | Vector | data, |
Field | source | ||
) |
void com.graeff.dbedit.Field.fromVector | ( | Vector | data | ) |
Reimplemented in com.graeff.dbedit.fields.Selection, sfi.director.gui.fields.Template, com.graeff.dbedit.fields.List, sfi.director.gui.fields.Application, sfi.director.gui.fields.HostClass, sfi.director.gui.fields.Uid, com.graeff.dbedit.fields.CheckBox, com.graeff.dbedit.fields.Password, com.graeff.dbedit.fields.MacAddress, com.graeff.dbedit.fields.Text, and sfi.director.gui.fields.ShadowDate.
Referenced by com.graeff.dbedit.Field.exchange(), com.graeff.dbedit.Field.guiEvent(), com.graeff.dbedit.Field.setDefaults(), com.graeff.dbedit.Field.textinput(), and com.graeff.dbedit.Field.updated().
Arguments com.graeff.dbedit.Field.getArgs | ( | ) |
String com.graeff.dbedit.Field.getAttribute | ( | ) |
References com.graeff.dbedit.Field.attribute, and com.graeff.dbedit.IgnoreCaseString.toString().
Referenced by sfi.director.application.FrontendHTTPServer.edit_data(), sfi.director.application.FrontendHTTPServer.edit_editor(), com.graeff.dbedit.EditUi.error(), sfi.director.application.FrontendInterface.executeCommand(), sfi.director.util.Tools.fieldToDBObject(), sfi.director.gui.fields.Template.fromVector(), sfi.director.application.FrontendHTTPServer.getEditorErrors(), com.graeff.dbedit.EditUi.registerEventListener(), sfi.director.application.FrontendInterface.sendEditorErrors(), and com.graeff.dbedit.EditUi.unregisterEventListener().
String com.graeff.dbedit.Field.getMaster | ( | ) |
get the master type of a field.
The master type usually is a kind of super class - e.g. the master of most fields basing on List is "List". The master defaults to "Text".
Reimplemented in com.graeff.dbedit.fields.Selection, com.graeff.dbedit.fields.List, com.graeff.dbedit.fields.CheckBox, and com.graeff.dbedit.fields.Text.
Referenced by sfi.director.util.Tools.fieldToDBObject().
Record com.graeff.dbedit.Field.getSchema | ( | ) |
get additional schema information.
When a field definition is translated into Record format all attributes/options are translated into a key -> value(s) association. Special fields may get asked for their specific information via this method.
Referenced by sfi.director.util.Tools.fieldToDBObject().
the same as getSchema(), but the information is added to an existing Record object
Reimplemented in com.graeff.dbedit.fields.Selection.
References com.graeff.dbedit.Field.record.
void com.graeff.dbedit.Field.guiEvent | ( | GuiEvent | evt | ) |
References com.graeff.dbedit.Field.args, com.graeff.dbedit.Field.attribute, com.graeff.dbedit.GuiEvent.CHECK, com.graeff.dbedit.Field.check(), com.graeff.dbedit.GuiEvent.DEFAULTS, com.graeff.dbedit.IgnoreCaseString.equals(), com.graeff.dbedit.GuiEvent.EXCHANGE, com.graeff.dbedit.Field.exchange(), com.graeff.dbedit.Field.fromVector(), com.graeff.dbedit.Record.get(), com.graeff.dbedit.Arguments.getArgument(), com.graeff.dbedit.GuiEvent.getData(), com.graeff.dbedit.GuiEvent.getEvent(), com.graeff.dbedit.GuiEvent.getSource(), com.graeff.dbedit.GuiEvent.getTarget(), com.graeff.dbedit.GuiEvent.POP, com.graeff.dbedit.GuiEvent.PUSH, com.graeff.dbedit.Field.record, com.graeff.dbedit.Record.set(), com.graeff.dbedit.Field.setDefaults(), com.graeff.dbedit.GuiEvent.SETTEMPLATE, com.graeff.dbedit.Field.setTemplate(), com.graeff.dbedit.GuiEvent.TEXTINPUT, com.graeff.dbedit.Field.textinput(), com.graeff.dbedit.Field.toVector(), com.graeff.dbedit.GuiEvent.UPDATED, and com.graeff.dbedit.Field.updated().
Referenced by com.graeff.dbedit.EditUi.eventNotify(), com.graeff.dbedit.fields.List.eventNotify(), and com.graeff.dbedit.fields.Selection.eventNotify().
boolean com.graeff.dbedit.Field.hasOwnData | ( | ) |
void com.graeff.dbedit.Field.init | ( | ) |
init() will be called on field setup
Reimplemented in sfi.director.gui.fields.Template, sfi.director.gui.fields.DBChoice, com.graeff.dbedit.fields.Selection, com.graeff.dbedit.fields.List, sfi.director.gui.fields.Invoker, sfi.director.gui.fields.DomainTemplate, com.graeff.dbedit.fields.CheckBox, sfi.director.gui.fields.DocCategory, com.graeff.dbedit.fields.FileSelection, and sfi.director.gui.fields.DocLocation.
References com.graeff.dbedit.EventSource.registerEventListener(), and com.graeff.dbedit.Field.window.
Referenced by com.graeff.dbedit.EditPanel.initPanel().
boolean com.graeff.dbedit.Field.isUpdated | ( | ) |
References com.graeff.dbedit.Field.wasupdated.
Referenced by sfi.director.application.FrontendHTTPServer.edit_data().
void com.graeff.dbedit.Field.sendOwnData | ( | ) |
void com.graeff.dbedit.Field.sendSetTemplate | ( | String | field, |
String | template | ||
) |
Referenced by sfi.director.gui.fields.HostClass.setTemplate().
void com.graeff.dbedit.Field.sendSetTemplate | ( | String | field, |
Vector | template | ||
) |
void com.graeff.dbedit.Field.sendTextinput | ( | String | field, |
String | data | ||
) |
void com.graeff.dbedit.Field.sendUpdated | ( | ) |
void com.graeff.dbedit.Field.sendUpdated | ( | Vector | data | ) |
References com.graeff.dbedit.Field.args, com.graeff.dbedit.Field.attribute, com.graeff.dbedit.EventSource.eventNotify(), com.graeff.dbedit.GuiEvent.EXCHANGE, com.graeff.dbedit.Arguments.getArgument(), com.graeff.dbedit.Field.hasOwnData(), com.graeff.dbedit.Field.record, com.graeff.dbedit.Record.set(), com.graeff.dbedit.Field.toVector(), com.graeff.dbedit.GuiEvent.UPDATED, com.graeff.dbedit.Field.wasupdated, and com.graeff.dbedit.Field.window.
void com.graeff.dbedit.Field.setArgs | ( | Arguments | args | ) |
References com.graeff.dbedit.Field.args.
Referenced by com.graeff.dbedit.EditPanel.initPanel().
void com.graeff.dbedit.Field.setAttribute | ( | String | name | ) |
References com.graeff.dbedit.Field.attribute.
Referenced by com.graeff.dbedit.EditPanel.initPanel().
void com.graeff.dbedit.Field.setDefaults | ( | ) |
void com.graeff.dbedit.Field.setExternalData | ( | Vector | data | ) |
References com.graeff.dbedit.Field.externalData.
Referenced by com.graeff.dbedit.Field.exchange(), com.graeff.dbedit.Field.setDefaults(), and com.graeff.dbedit.Field.updated().
void com.graeff.dbedit.Field.setRecord | ( | Record | rec | ) |
References com.graeff.dbedit.Field.record.
Referenced by com.graeff.dbedit.EditPanel.initPanel().
void com.graeff.dbedit.Field.setTemplate | ( | Vector | data | ) |
References com.graeff.dbedit.Arguments.add(), com.graeff.dbedit.Field.args, and com.graeff.dbedit.Field.updated().
Referenced by com.graeff.dbedit.Field.guiEvent().
void com.graeff.dbedit.Field.setWindow | ( | EventSource | win | ) |
References com.graeff.dbedit.Field.window.
Referenced by com.graeff.dbedit.EditPanel.initPanel().
void com.graeff.dbedit.Field.textinput | ( | String | data | ) |
Reimplemented in com.graeff.dbedit.fields.List, and com.graeff.dbedit.fields.Password.
References com.graeff.dbedit.Field.fromVector(), com.graeff.dbedit.Field.sendOwnData(), and com.graeff.dbedit.Field.sendUpdated().
Referenced by com.graeff.dbedit.Field.guiEvent().
String com.graeff.dbedit.Field.toString | ( | ) |
Reimplemented in com.graeff.dbedit.fields.List.
References com.graeff.dbedit.Field.attribute, com.graeff.dbedit.Record.get(), and com.graeff.dbedit.Field.record.
Referenced by sfi.director.application.FrontendHTTPServer.edit_data(), sfi.director.application.FrontendInterface.executeCommand(), com.graeff.dbedit.EditUi.fancyPrint(), com.graeff.dbedit.fields.List.fromVector(), com.graeff.dbedit.fields.List.toString(), and com.graeff.dbedit.fields.Selection.toString().
String com.graeff.dbedit.Field.toString | ( | String | str | ) |
Reimplemented in com.graeff.dbedit.fields.Selection, sfi.director.gui.fields.Application, and sfi.director.gui.fields.ShadowDate.
Vector com.graeff.dbedit.Field.toVector | ( | ) |
Reimplemented in com.graeff.dbedit.fields.Selection, com.graeff.dbedit.fields.List, sfi.director.gui.fields.Application, sfi.director.gui.fields.HostClass, sfi.director.gui.fields.Uid, com.graeff.dbedit.fields.CheckBox, com.graeff.dbedit.fields.Password, and com.graeff.dbedit.fields.Text.
Referenced by sfi.director.application.FrontendHTTPServer.edit_data(), sfi.director.application.FrontendHTTPServer.edit_editor(), sfi.director.application.FrontendInterface.executeCommand(), com.graeff.dbedit.EditUi.fancyPrint(), com.graeff.dbedit.Field.guiEvent(), com.graeff.dbedit.Field.hasOwnData(), com.graeff.dbedit.Field.sendUpdated(), com.graeff.dbedit.fields.Selection.toVector(), and com.graeff.dbedit.Field.updated().
void com.graeff.dbedit.Field.updated | ( | Vector | data, |
Field | source | ||
) |
References com.graeff.dbedit.Field.args, com.graeff.dbedit.EventSource.expand(), com.graeff.dbedit.Field.fromVector(), com.graeff.dbedit.Arguments.getArgument(), com.graeff.dbedit.Field.hasOwnData(), com.graeff.dbedit.Field.sendUpdated(), com.graeff.dbedit.Field.setExternalData(), com.graeff.dbedit.Field.toVector(), and com.graeff.dbedit.Field.window.
Referenced by com.graeff.dbedit.Field.guiEvent(), and com.graeff.dbedit.Field.setTemplate().
|
protected |
Referenced by com.graeff.dbedit.Field.check(), com.graeff.dbedit.fields.Selection.fromVector(), com.graeff.dbedit.Field.getArgs(), com.graeff.dbedit.Field.guiEvent(), com.graeff.dbedit.fields.FileSelection.init(), com.graeff.dbedit.fields.CheckBox.init(), sfi.director.gui.fields.Template.init(), com.graeff.dbedit.fields.List.init(), com.graeff.dbedit.fields.Selection.init(), sfi.director.gui.fields.DBChoice.init(), com.graeff.dbedit.Field.sendUpdated(), com.graeff.dbedit.Field.setArgs(), com.graeff.dbedit.Field.setDefaults(), com.graeff.dbedit.Field.setTemplate(), and com.graeff.dbedit.Field.updated().
|
protected |
|
protected |
Referenced by com.graeff.dbedit.Field.setExternalData().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by com.graeff.dbedit.fields.DomainName.check(), com.graeff.dbedit.fields.IPAddress.check(), com.graeff.dbedit.fields.HostName.check(), com.graeff.dbedit.fields.MacAddress.check(), sfi.director.gui.fields.Uid.check(), com.graeff.dbedit.Field.check(), com.graeff.dbedit.Field.deinit(), com.graeff.dbedit.fields.Selection.error(), com.graeff.dbedit.fields.List.expand(), com.graeff.dbedit.fields.Selection.expand(), sfi.director.gui.fields.Template.fromVector(), com.graeff.dbedit.fields.CheckBox.init(), com.graeff.dbedit.fields.List.init(), com.graeff.dbedit.Field.init(), com.graeff.dbedit.Field.sendSetTemplate(), com.graeff.dbedit.Field.sendTextinput(), com.graeff.dbedit.Field.sendUpdated(), com.graeff.dbedit.Field.setWindow(), com.graeff.dbedit.Field.updated(), and com.graeff.dbedit.fields.Selection.warning().