public class MOAClassOptionEditor extends PropertyEditorSupport
ClassOption| Modifier and Type | Field and Description |
|---|---|
protected Component |
m_CustomEditor
the custom editor.
|
protected ClassOptionEditComponent |
m_EditComponent
the component for editing.
|
| Constructor and Description |
|---|
MOAClassOptionEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeDialog()
Closes the dialog.
|
protected Component |
createCustomEditor()
Creates the custom editor.
|
Component |
getCustomEditor()
Gets the custom editor component.
|
boolean |
isPaintable()
Returns true since this editor is paintable.
|
void |
paintValue(Graphics gfx,
Rectangle box)
Paints a representation of the current Object.
|
boolean |
supportsCustomEditor()
Returns true because we do support a custom editor.
|
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource, setValueprotected Component m_CustomEditor
protected ClassOptionEditComponent m_EditComponent
public boolean isPaintable()
isPaintable in interface PropertyEditorisPaintable in class PropertyEditorSupportpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorsupportsCustomEditor in class PropertyEditorSupportprotected void closeDialog()
protected Component createCustomEditor()
public Component getCustomEditor()
getCustomEditor in interface PropertyEditorgetCustomEditor in class PropertyEditorSupportpublic void paintValue(Graphics gfx, Rectangle box)
paintValue in interface PropertyEditorpaintValue in class PropertyEditorSupportgfx - the graphics context to usebox - the area we are allowed to paint intoCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.