org.merlotxml.merlot.editors
Class EnumerationEditor

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

Field Summary
 
Fields inherited from class org.merlotxml.merlot.editors.SimpleTypeEditor
_complexTypeEditPanel, _component, _grammarSimpleType
 
Constructor Summary
EnumerationEditor(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.
 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

EnumerationEditor

public EnumerationEditor(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

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