org.merlotxml.merlot.editors
Class KeyRefEditor
java.lang.Object
org.merlotxml.merlot.editors.SimpleTypeEditor
org.merlotxml.merlot.editors.KeyRefEditor
- public class KeyRefEditor
- extends SimpleTypeEditor
- Author:
- Evert Hoff
Creates a JComboBox with the valid values for a field of type IDREF or
KeyRef.
Method Summary |
javax.swing.JComponent |
getComponent()
Gets the component for editing this simple type. |
boolean |
getEditable()
Gets whether the component is currently disabled or not. |
protected FieldNode |
getFieldNode()
|
java.lang.String |
getValue()
Retrieves the value from this component. |
void |
setEditable(boolean editable)
Sets the component to editable or read-only. |
void |
setValue(java.lang.String value)
Sets the value of the component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyRefEditor
public KeyRefEditor(ComplexTypeEditPanel complexTypeEditPanel,
GrammarSimpleType grammarSimpleType)
getComponent
public javax.swing.JComponent getComponent()
- Gets the component for editing this simple type.
- Overrides:
getComponent
in class SimpleTypeEditor
- Returns:
- The component value
getFieldNode
protected FieldNode getFieldNode()
getEditable
public boolean getEditable()
- Gets whether the component is currently disabled or not.
- Overrides:
getEditable
in class SimpleTypeEditor
- Returns:
- The editable value
getValue
public java.lang.String getValue()
- Retrieves the value from this component.
- Overrides:
getValue
in class SimpleTypeEditor
- Returns:
- The value
setEditable
public void setEditable(boolean editable)
- Sets the component to editable or read-only.
- Overrides:
setEditable
in class SimpleTypeEditor
- Parameters:
editable
- The new editable value
setValue
public void setValue(java.lang.String value)
- Sets the value of the component.
- Overrides:
setValue
in class SimpleTypeEditor
- Parameters:
value
- The new value value