org.merlotxml.merlot.editors
Class TextEditor

java.lang.Object
  extended byorg.merlotxml.merlot.editors.SimpleTypeEditor
      extended byorg.merlotxml.merlot.editors.TextEditor

public class TextEditor
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
TextEditor(ComplexTypeEditPanel complexTypeEditPanel, GrammarSimpleType grammarSimpleType)
          Constructor for TextEditor.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
          Adds the ActionListener to the JComponent if that component can accept an action listener.
 javax.swing.JComponent getComponent()
          Gets the component for editing this simple type.
 java.lang.String getValue()
          Retrieves the value from this component.
 void removeActionListener(java.awt.event.ActionListener listener)
           
 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
getEditable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextEditor

public TextEditor(ComplexTypeEditPanel complexTypeEditPanel,
                  GrammarSimpleType grammarSimpleType)
Constructor for TextEditor.

Parameters:
complexTypeEditPanel -
grammarSimpleType -
Method Detail

addActionListener

public void addActionListener(java.awt.event.ActionListener listener)
Description copied from class: SimpleTypeEditor
Adds the ActionListener to the JComponent if that component can accept an action listener.

Overrides:
addActionListener in class SimpleTypeEditor

removeActionListener

public void removeActionListener(java.awt.event.ActionListener listener)
Overrides:
removeActionListener in class SimpleTypeEditor

getComponent

public javax.swing.JComponent getComponent()
Gets the component for editing this simple type.

Overrides:
getComponent in class SimpleTypeEditor
Returns:
The component value

getValue

public java.lang.String getValue()
Description copied from class: SimpleTypeEditor
Retrieves the value from this component.

Overrides:
getValue in class SimpleTypeEditor
Returns:
The value

setValue

public void setValue(java.lang.String value)
Description copied from class: SimpleTypeEditor
Sets the value of the component.

Overrides:
setValue in class SimpleTypeEditor
Parameters:
value - The new value value

setEditable

public void setEditable(boolean editable)
Description copied from class: SimpleTypeEditor
Sets the component to editable or read-only.

Overrides:
setEditable in class SimpleTypeEditor
Parameters:
editable - The new editable value