org.merlotxml.merlot.editors
Class KeyRefEditor

java.lang.Object
  extended byorg.merlotxml.merlot.editors.SimpleTypeEditor
      extended byorg.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.

Field Summary
 
Fields inherited from class org.merlotxml.merlot.editors.SimpleTypeEditor
_complexTypeEditPanel, _grammarSimpleType
 
Constructor Summary
KeyRefEditor(ComplexTypeEditPanel complexTypeEditPanel, GrammarSimpleType grammarSimpleType)
           
 
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 org.merlotxml.merlot.editors.SimpleTypeEditor
addActionListener, removeActionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyRefEditor

public KeyRefEditor(ComplexTypeEditPanel complexTypeEditPanel,
                    GrammarSimpleType grammarSimpleType)
Method Detail

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