javax.swing.beaninfo
public class: SwingEditorSupport [javadoc |
source]
java.lang.Object
java.beans.PropertyEditorSupport
javax.swing.beaninfo.SwingEditorSupport
All Implemented Interfaces:
PropertyEditor
Direct Known Subclasses:
SwingStringEditor, SwingFileEditor, SwingBooleanEditor, SwingColorEditor, SwingInsetsEditor, SwingIconEditor, SwingPointEditor, SwingDoubleEditor, SwingBorderEditor, SwingDimensionEditor, SwingFontEditor, SwingEnumEditor, SwingIntegerEditor, SwingRectangleEditor, SwingURLEditor, SwingObjectEditor, SwingNumberEditor
Base class of all Swing based property editors.
- version:
1.4 - 02/27/02
- author:
Tom - Santos
- author:
Mark - Davidson
| Field Summary |
|---|
| protected JPanel | panel | Component which holds the editor. Subclasses are responsible for
instantiating this panel. |
| protected static final Dimension | LARGE_DIMENSION | |
| protected static final Dimension | MEDIUM_DIMENSION | |
| protected static final Dimension | SMALL_DIMENSION | |
| protected static final Insets | BUTTON_MARGIN | |
| Methods from java.beans.PropertyEditorSupport: |
|---|
|
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue, supportsCustomEditor |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.swing.beaninfo.SwingEditorSupport Detail: |
public Component getCustomEditor() {
return panel;
}
Returns the panel responsible for rendering the PropertyEditor. |
public void init(PropertyDescriptor descriptor) {
}
For property editors that must be initialized with values from
the property descriptor. |
protected final void setAlignment(JComponent c) {
c.setAlignmentX(Component.CENTER_ALIGNMENT);
c.setAlignmentY(Component.CENTER_ALIGNMENT);
}
|
public boolean supportsCustomEditor() {
return true;
}
|