|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.beans.PropertyEditorSupport
|
+--org.ocd.dcf.property.editor.EditorSupport
|
+--org.ocd.dcf.property.editor.EnumEditor
| Field Summary | |
javax.swing.JComboBox |
combobox
|
| Fields inherited from class org.ocd.dcf.property.editor.EditorSupport |
MEDIUM_DIMENSION, panel, SMALL_DIMENSION |
| Constructor Summary | |
EnumEditor()
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Event is set when a combo selection changes. |
void |
init(java.beans.PropertyDescriptor descriptor)
Initializes this property editor with the enumerated items. |
void |
setValue(java.lang.Object value)
Set the Value of this Property |
| Methods inherited from class org.ocd.dcf.property.editor.EditorSupport |
getCustomEditor, setAlignment, supportsCustomEditor |
| Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public javax.swing.JComboBox combobox
| Constructor Detail |
public EnumEditor()
| Method Detail |
public void setValue(java.lang.Object value)
EditorSupportsetValue in class EditorSupportorg.ocd.dcf.property.editor.EditorSupportpValue - new Valuepublic void init(java.beans.PropertyDescriptor descriptor)
This method does a lot of jiggery pokery since enumerated types are unlike any other homogenous types. Enumerated types may not represent the same set of values.
One method would be to empty the list of values which would have the side effect of firing notification events. Another method would be to recreate the combobox.
init in class EditorSupportpublic void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||