public abstract class OptionPropertyEditor extends PropertyConsumerPropertyEditor
BigNameOptionProperty.options=option1 option2 option3 BigNameOptionProperty.option1=Big Name 1 BigNameOptionProperty.option2=Big Name 2 BigNameOptionProperty.option3=Big Name 3Don't use the property prefix for the PropertyConsumer being defined, only the property.
Modifier and Type | Field and Description |
---|---|
protected java.awt.Component |
customEditor |
static java.lang.String |
OptionsProperty |
static java.lang.String |
ScopedOptionsProperty |
propertyPrefix
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
OptionPropertyEditor() |
Modifier and Type | Method and Description |
---|---|
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
abstract java.lang.String |
getAsText()
Returns String from option choices.
|
java.awt.Component |
getCustomEditor()
Returns the editor GUI.
|
void |
setCustomEditor(java.awt.Component comp) |
abstract void |
setOptions(java.lang.String[] options) |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Method to set the properties in the PropertyConsumer.
|
abstract void |
setValue(java.lang.Object string)
Sets option based on string.
|
boolean |
supportsCustomEditor() |
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setPropertyPrefix
public static final java.lang.String OptionsProperty
public static final java.lang.String ScopedOptionsProperty
protected java.awt.Component customEditor
public boolean supportsCustomEditor()
supportsCustomEditor
in interface java.beans.PropertyEditor
supportsCustomEditor
in class java.beans.PropertyEditorSupport
public void setCustomEditor(java.awt.Component comp)
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class java.beans.PropertyEditorSupport
public abstract void setOptions(java.lang.String[] options)
public abstract void setValue(java.lang.Object string)
setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport
public abstract java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
public void focusGained(java.awt.event.FocusEvent e)
public void focusLost(java.awt.event.FocusEvent e)
public void setProperties(java.lang.String prefix, java.util.Properties props)
PropertyConsumer
setProperties
in interface PropertyConsumer
setProperties
in class PropertyConsumerPropertyEditor
prefix
- the token to prefix the property namesprops
- the Properties
objectCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details