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, setValue
protected Component m_CustomEditor
protected ClassOptionEditComponent m_EditComponent
public boolean isPaintable()
isPaintable
in interface PropertyEditor
isPaintable
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport
protected void closeDialog()
protected Component createCustomEditor()
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
public void paintValue(Graphics gfx, Rectangle box)
paintValue
in interface PropertyEditor
paintValue
in class PropertyEditorSupport
gfx
- the graphics context to usebox
- the area we are allowed to paint intoCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.