org.ocd.dcf.property.editor
Class EditorSupport
java.lang.Object
|
+--java.beans.PropertyEditorSupport
|
+--org.ocd.dcf.property.editor.EditorSupport
- All Implemented Interfaces:
- java.beans.PropertyEditor
- Direct Known Subclasses:
- BooleanEditor, BorderEditor, ColorEditor, DimensionEditor, EnumEditor, FontEditor, IconEditor, InsetsEditor, IntegerEditor, NumberEditor, ObjectEditor, RectangleEditor, StringEditor
- public abstract class EditorSupport
- extends java.beans.PropertyEditorSupport
Method Summary |
java.awt.Component |
getCustomEditor()
Returns the panel responsible for rendering the PropertyEditor. |
void |
init(java.beans.PropertyDescriptor descriptor)
For property editors that must be initialized with values from
the property descriptor. |
protected void |
setAlignment(javax.swing.JComponent c)
|
void |
setValue(java.lang.Object pValue)
Set the Value of this Property |
boolean |
supportsCustomEditor()
|
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, 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 |
MEDIUM_DIMENSION
public static final java.awt.Dimension MEDIUM_DIMENSION
SMALL_DIMENSION
public static final java.awt.Dimension SMALL_DIMENSION
panel
protected javax.swing.JPanel panel
- Component which holds the editor. Subclasses are responsible for
instantiating this panel.
EditorSupport
public EditorSupport()
getCustomEditor
public java.awt.Component getCustomEditor()
- Returns the panel responsible for rendering the PropertyEditor.
- Overrides:
getCustomEditor
in class java.beans.PropertyEditorSupport
supportsCustomEditor
public boolean supportsCustomEditor()
- Overrides:
supportsCustomEditor
in class java.beans.PropertyEditorSupport
setAlignment
protected final void setAlignment(javax.swing.JComponent c)
init
public void init(java.beans.PropertyDescriptor descriptor)
- For property editors that must be initialized with values from
the property descriptor.
setValue
public void setValue(java.lang.Object pValue)
- Set the Value of this Property
- Overrides:
setValue
in class java.beans.PropertyEditorSupport
- Parameters:
pValue
- new Value