public abstract class EditorSpawner extends PropertyEditorSupport
Constructor and Description |
---|
EditorSpawner(boolean nullAllowed) |
Modifier and Type | Method and Description |
---|---|
Component |
getCustomEditor()
Returns a JButton that will bring up a dialog.
|
abstract AbstractDialog |
getDialog() |
int |
getIconHeight() |
int |
getIconWidth() |
static String |
getNameOfCreation() |
static String |
getNameOfNull() |
protected abstract void |
paintEditedObject(Component cmp,
Graphics g,
int x,
int y) |
protected void |
paintText(Font font,
String text,
Component cmp,
Graphics g,
int x,
int y) |
protected void |
repaintIcon() |
static void |
setNameOfCreation(String nameOfCreation) |
static void |
setNameOfNull(String nameOfNull) |
void |
setValue(Object o) |
boolean |
supportsCustomEditor()
PropertyEditor interface.
|
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
public abstract AbstractDialog getDialog()
public int getIconHeight()
public int getIconWidth()
public static String getNameOfCreation()
public static String getNameOfNull()
protected abstract void paintEditedObject(Component cmp, Graphics g, int x, int y)
protected void repaintIcon()
public static void setNameOfCreation(String nameOfCreation)
public static void setNameOfNull(String nameOfNull)
public void setValue(Object o)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport