org.merlotxml.merlot.editors
Class EnumerationEditor
java.lang.Object
org.merlotxml.merlot.editors.SimpleTypeEditor
org.merlotxml.merlot.editors.EnumerationEditor
- public class EnumerationEditor
- extends SimpleTypeEditor
- Author:
- everth
To change this generated comment edit the template variable "typecomment":
Window>Preferences>Java>Templates.
To enable and disable the creation of type comments go to
Window>Preferences>Java>Code Generation.
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. |
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 |
EnumerationEditor
public EnumerationEditor(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
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