dsto.dfc.swing.tree
Class CmdCustomize

java.lang.Object
  extended by dsto.dfc.swing.commands.AbstractCommand
      extended by dsto.dfc.swing.commands.AbstractMutableCommand
          extended by dsto.dfc.swing.commands.BasicPropertiesCommand
              extended by dsto.dfc.swing.forms.AbstractShowCustomizerCommand
                  extended by dsto.dfc.swing.tree.CmdCustomize
All Implemented Interfaces:
Command, SelectionListener, Iconic, Copyable, PropertyEventSource, ActionListener, Cloneable, EventListener

public class CmdCustomize
extends AbstractShowCustomizerCommand
implements SelectionListener

Base implementation of the properties command that attempts to show the selected tree entry's FormEditor-compliant customizer.

Version:
$Revision$
Author:
Matthew

Field Summary
 
Fields inherited from class dsto.dfc.swing.forms.AbstractShowCustomizerCommand
client, 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
CmdCustomize(DfcTree tree)
           
 
Method Summary
 Object getCustomizerValue()
          The value to be loaded into the customizer.
 String getDescription()
          A short description of the command, suitable for a tooltip or use in a status panel.
 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).
 void selectionChanged(SelectionEvent e)
          Indicates the selection has changed in some way.
 void setCustomizerValue(Object newValue)
          Save a new value edited by the customizer.
 
Methods inherited from class dsto.dfc.swing.forms.AbstractShowCustomizerCommand
customizeDialog, customizerValueChanged, execute, getDialogTitle, getEditorClass, handleEditorCreateError
 
Methods inherited from class dsto.dfc.swing.commands.BasicPropertiesCommand
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
 

Constructor Detail

CmdCustomize

public CmdCustomize(DfcTree tree)
Method Detail

isDirectEdit

public boolean isDirectEdit()
Description copied from class: AbstractShowCustomizerCommand
Return true if the value returned by getCustomizerValue () should be directly loaded into its form (the form will be set to deferred commit mode).

Specified by:
isDirectEdit in class AbstractShowCustomizerCommand

getDescription

public String getDescription()
Description copied from interface: Command
A short description of the command, suitable for a tooltip or use in a status panel.

Specified by:
getDescription in interface Command
Overrides:
getDescription in class BasicPropertiesCommand

getCustomizerValue

public Object getCustomizerValue()
Description copied from class: AbstractShowCustomizerCommand
The value to be loaded into the customizer.

Specified by:
getCustomizerValue in class AbstractShowCustomizerCommand

setCustomizerValue

public void setCustomizerValue(Object newValue)
Description copied from class: AbstractShowCustomizerCommand
Save a new value edited by the customizer. Only needed when isDirectEdit () is false.

Specified by:
setCustomizerValue in class AbstractShowCustomizerCommand

selectionChanged

public void selectionChanged(SelectionEvent e)
Description copied from interface: SelectionListener
Indicates the selection has changed in some way.

Specified by:
selectionChanged in interface SelectionListener


Copyright © 2008 Commonwealth of Australia