T - the supported type.public abstract class SfbPropertyEditorSupport<T> extends Object implements PropertyEditor
SfbPropertEditorSupport is a PropertyEditor with proper
listener support. It already stores the editable value. You only have to
implement the template method parseText(String).| Constructor and Description |
|---|
SfbPropertyEditorSupport(Class<T> supportedType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
String |
getAsText() |
Component |
getCustomEditor() |
String |
getJavaInitializationString() |
String[] |
getTags() |
T |
getValue() |
boolean |
isPaintable() |
void |
paintValue(Graphics gfx,
Rectangle box) |
protected abstract T |
parseText(String text) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setAsText(String text) |
void |
setValue(Object newValue) |
boolean |
supportsCustomEditor() |
public void setValue(Object newValue)
setValue in interface PropertyEditorpublic T getValue()
getValue in interface PropertyEditorpublic boolean isPaintable()
isPaintable in interface PropertyEditorpublic void paintValue(Graphics gfx, Rectangle box)
paintValue in interface PropertyEditorpublic String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorpublic String getAsText()
getAsText in interface PropertyEditorpublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorIllegalArgumentExceptionpublic String[] getTags()
getTags in interface PropertyEditorpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface PropertyEditorpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface PropertyEditorCopyright © 2012-2013. All Rights Reserved.