|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.swing.commands.AbstractCommand dsto.dfc.swing.commands.AbstractMutableCommand dsto.dfc.swing.commands.BasicPropertiesCommand dsto.dfc.swing.forms.AbstractShowCustomizerCommand
public abstract class AbstractShowCustomizerCommand
Base implementation of the properties command that attempts to show a JavaBean's FormEditor-compliant customizer.
Field Summary | |
---|---|
protected Component |
client
|
protected Class |
editorClass
|
Fields inherited from class dsto.dfc.swing.commands.BasicPropertiesCommand |
---|
ICON |
Fields inherited from class dsto.dfc.swing.commands.AbstractMutableCommand |
---|
listeners |
Fields inherited from class dsto.dfc.swing.commands.AbstractCommand |
---|
displayName, icon |
Fields inherited from interface dsto.dfc.swing.icons.Iconic |
---|
NULL_ICON |
Constructor Summary | |
---|---|
AbstractShowCustomizerCommand(Component client)
|
Method Summary | |
---|---|
protected void |
customizeDialog(FormDialog dialog)
Customize the form dialog that holds the editor before display. |
protected void |
customizerValueChanged()
Subclasses should call this when the customizerValue property changes. |
void |
execute()
Execute the command. |
abstract Object |
getCustomizerValue()
The value to be loaded into the customizer. |
protected String |
getDialogTitle()
The title displayed on the property dialog. |
protected Class |
getEditorClass(Object value)
Get the editor class for a particular value. |
protected void |
handleEditorCreateError(Throwable ex)
Handle an exception thrown when trying to instantiate the editor. |
abstract boolean |
isDirectEdit()
Return true if the value returned by getCustomizerValue () should be directly loaded into its form (the form will be set to deferred commit mode). |
abstract void |
setCustomizerValue(Object newValue)
Save a new value edited by the customizer. |
Methods inherited from class dsto.dfc.swing.commands.BasicPropertiesCommand |
---|
getDescription, getGroupInView, getIcon, getMnemonic, getName, isInteractive |
Methods inherited from class dsto.dfc.swing.commands.AbstractMutableCommand |
---|
addPropertyChangeListener, clone, isEnabled, removePropertyChangeListener, setEnabled, setIcon |
Methods inherited from class dsto.dfc.swing.commands.AbstractCommand |
---|
actionPerformed, canReplace, getAccelerator, getDefaultDisplayName, getDisplayName, getLargeIcon, getLogString, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Component client
protected Class editorClass
Constructor Detail |
---|
public AbstractShowCustomizerCommand(Component client)
Method Detail |
---|
public abstract boolean isDirectEdit()
public abstract Object getCustomizerValue()
public abstract void setCustomizerValue(Object newValue)
public void execute()
Command
execute
in interface Command
execute
in class BasicPropertiesCommand
protected void customizerValueChanged()
protected Class getEditorClass(Object value)
protected void handleEditorCreateError(Throwable ex)
protected String getDialogTitle()
protected void customizeDialog(FormDialog dialog)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |