|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
verinec.gui.configurator.nodeeditor.EditorTextField
verinec.gui.configurator.nodeeditor.EditorMultiTextField
public class EditorMultiTextField
Extends the EditorTextField and inherits most functionality from it directly such as the color feedback of the InputValidator or the XML treating of not existing nodes. Also the functions update(), save(), reset() and resetRed() are executed in the superclass.
Only the XML access functions
attributeRemove(),
elementRead(),
elementWrite() and
the constructor have been rewritten to override the superclass functions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class verinec.gui.configurator.nodeeditor.EditorTextField |
|---|
attributeIsNecessary, attributeName, childName, concatenator, containsNameForPanel, green, inputValidatorMessage, label, logger, nodeEditor, parentNode, previousInputValue, separator |
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
EditorMultiTextField(String attributeName,
String childName,
Element parentNode,
NodeEditor nodeEditor,
String inputValidatorMessage,
String separator,
String concatenator,
int fieldSize,
boolean attributeIsNecessary,
String labelString)
In addition to the arguments of the superclass constructor, the constructor receives the parameters EditorTextField.childName, EditorTextField.separator and EditorTextField.concatenator. |
|
| Method Summary | |
|---|---|
protected boolean |
attributeRemove(Element element,
String childName)
Overwrites the method of EditorTextField to removes all the child-elements in NS_NODE from element. |
protected String |
elementRead(Element element,
String attribute)
Composes the content of the XML child-elements to a string separated by the EditorTextField.concatenator. |
protected Element |
elementWrite(Element element,
String attribute,
String value)
Overwrites the method of EditorTextField to work for several values. |
| Methods inherited from class verinec.gui.configurator.nodeeditor.EditorTextField |
|---|
actionPerformed, checkInput, discard, discardRed, focusGained, focusLost, getLabel, save, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EditorMultiTextField(String attributeName,
String childName,
Element parentNode,
NodeEditor nodeEditor,
String inputValidatorMessage,
String separator,
String concatenator,
int fieldSize,
boolean attributeIsNecessary,
String labelString)
EditorTextField.childName, EditorTextField.separator and EditorTextField.concatenator.
attributeName - childName - parentNode - nodeEditor - inputValidatorMessage - separator - concatenator - fieldSize - attributeIsNecessary - labelString - | Method Detail |
|---|
protected Element elementWrite(Element element,
String attribute,
String value)
EditorTextField.separator and
creates a new XML child-element named after EditorTextField.childName for each
substring, bearing the value as attribute under the name passed as parameter.
Removes all existing attributes from element first.
elementWrite in class EditorTextFieldelement - The element to add children to.attribute - Name of the attribute.value - The string to split and put as attribute to element.
protected boolean attributeRemove(Element element,
String childName)
attributeRemove in class EditorTextFieldelement - The element to remove children from.childName - The name of the children to remove.
protected String elementRead(Element element,
String attribute)
EditorTextField.concatenator.
elementRead in class EditorTextFieldelement - The element to get the children from.attribute - The name of the attribute of the child elements to take into the string.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||