com.bbn.openmap.util.propertyEditor
Class ComboBoxPropertyEditor
java.lang.Object
|
+--java.beans.PropertyEditorSupport
|
+--com.bbn.openmap.util.propertyEditor.PropertyConsumerPropertyEditor
|
+--com.bbn.openmap.util.propertyEditor.OptionPropertyEditor
|
+--com.bbn.openmap.util.propertyEditor.ComboBoxPropertyEditor
- All Implemented Interfaces:
- PropertyConsumer, java.beans.PropertyEditor
- public class ComboBoxPropertyEditor
- extends OptionPropertyEditor
The ComboBoxPropertyEditor provides a set of options within a
JComboBox.
- See Also:
OptionPropertyEditor
Field Summary |
protected javax.swing.JComboBox |
combo
|
Method Summary |
java.lang.String |
getAsText()
Returns String from option choices. |
void |
setOptions(java.lang.String[] options)
|
void |
setValue(java.lang.Object string)
Sets option based on string. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, 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 |
combo
protected javax.swing.JComboBox combo
ComboBoxPropertyEditor
public ComboBoxPropertyEditor()
setOptions
public void setOptions(java.lang.String[] options)
- Specified by:
setOptions
in class OptionPropertyEditor
setValue
public void setValue(java.lang.Object string)
- Sets option based on string.
- Specified by:
setValue
in interface java.beans.PropertyEditor
- Specified by:
setValue
in class OptionPropertyEditor
getAsText
public java.lang.String getAsText()
- Returns String from option choices.
- Specified by:
getAsText
in interface java.beans.PropertyEditor
- Specified by:
getAsText
in class OptionPropertyEditor
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details