|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.editors.SimpleTypeEditor
Contains the functionality for editing a simple type. The idea is that all complexity related to each type of editor be kept in one place, including event handling related to this component. Methods for event handling still need to be added. For example, a BoundedNumberEditor sub-class might be created that would only accept key strokes that would keep the value valid betweens its defined bounds. Or, a DateTimeEditor that would allow the date to be selected visually from a calendar.
Field Summary | |
protected ComplexTypeEditPanel |
_complexTypeEditPanel
|
protected javax.swing.JComponent |
_component
|
protected GrammarSimpleType |
_grammarSimpleType
|
Constructor Summary | |
SimpleTypeEditor(ComplexTypeEditPanel complexTypeEditPanel,
GrammarSimpleType grammarSimpleType)
|
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
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. |
boolean |
getEditable()
Gets whether the component is currently disabled or not. |
java.lang.String |
getValue()
Retrieves the value from this component. |
void |
removeActionListener(java.awt.event.ActionListener l)
|
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 |
Field Detail |
protected ComplexTypeEditPanel _complexTypeEditPanel
protected javax.swing.JComponent _component
protected GrammarSimpleType _grammarSimpleType
Constructor Detail |
public SimpleTypeEditor(ComplexTypeEditPanel complexTypeEditPanel, GrammarSimpleType grammarSimpleType)
Method Detail |
public void addActionListener(java.awt.event.ActionListener l)
public void removeActionListener(java.awt.event.ActionListener l)
public javax.swing.JComponent getComponent()
public boolean getEditable()
public java.lang.String getValue()
public void setEditable(boolean editable)
editable
- The new editable valuepublic void setValue(java.lang.String value)
value
- The new value value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |