|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.panels.CmdClosePanel
public class CmdClosePanel
A Command that removes the currently active panel from the panel manager.
| Field Summary | |
|---|---|
protected UndoableEditSupport |
editSupport
|
protected PanelManager |
manager
|
| 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 | |
|---|---|
CmdClosePanel(PanelManager manager)
|
|
| Method Summary | |
|---|---|
void |
aboutToRemovePanel(PanelManagerEvent e)
|
void |
addUndoableEditListener(UndoableEditListener listener)
|
void |
dispose()
|
void |
execute()
Execute the command. |
KeyStroke |
getAccelerator()
Get a keyboard accelerator for the command. |
String |
getDescription()
A short description of the command, suitable for a tooltip or use in a status panel. |
String |
getDisplayName()
The name of the command as it should be displayed (eg on a menu). |
String |
getGroupInView(String viewName)
Get the preferred group that this command should appear in for a given view. |
char |
getMnemonic()
Get a character shortcut for the command (eg for use on a menu). |
String |
getName()
The formal identifying name for this command (eg edit.Copy, file.Open). |
boolean |
isInteractive()
True if this command will interact with the user when execute() is called. |
void |
panelAdded(PanelManagerEvent e)
|
void |
panelFloated(PanelManagerEvent e)
|
void |
panelRemoved(PanelManagerEvent e)
|
void |
panelUnfloated(PanelManagerEvent e)
|
void |
removeUndoableEditListener(UndoableEditListener listener)
|
protected void |
updateEnabled()
|
| 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, getDefaultDisplayName, getIcon, getLargeIcon, getLogString, setDisplayName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PanelManager manager
protected UndoableEditSupport editSupport
| Constructor Detail |
|---|
public CmdClosePanel(PanelManager manager)
| Method Detail |
|---|
public void dispose()
public void execute()
Command
execute in interface Commandexecute in class AbstractCommandprotected void updateEnabled()
public String getDisplayName()
Command
getDisplayName in interface CommandgetDisplayName in class AbstractCommandpublic String getName()
Command
getName in interface CommandgetName in interface IconicgetName in class AbstractCommandpublic String getDescription()
Command
getDescription in interface CommandgetDescription in class AbstractCommandpublic boolean isInteractive()
Command
isInteractive in interface CommandisInteractive in class AbstractCommandpublic String getGroupInView(String viewName)
CommandIf the command changes its group in any view it should generate a groupInView property change event with the old value set to the old group and the new value set to the new group.
getGroupInView in interface CommandgetGroupInView in class AbstractCommandviewName - The name of the view.
public char getMnemonic()
Command
getMnemonic in interface CommandgetMnemonic in class AbstractCommandpublic KeyStroke getAccelerator()
Command
getAccelerator in interface CommandgetAccelerator in class AbstractCommandpublic void panelAdded(PanelManagerEvent e)
panelAdded in interface PanelManagerListenerpublic void panelRemoved(PanelManagerEvent e)
panelRemoved in interface PanelManagerListenerpublic void panelFloated(PanelManagerEvent e)
panelFloated in interface PanelManagerListenerpublic void panelUnfloated(PanelManagerEvent e)
panelUnfloated in interface PanelManagerListenerpublic void aboutToRemovePanel(PanelManagerEvent e)
aboutToRemovePanel in interface PanelManagerListenerpublic void addUndoableEditListener(UndoableEditListener listener)
addUndoableEditListener in interface UndoableEditSourcepublic void removeUndoableEditListener(UndoableEditListener listener)
removeUndoableEditListener in interface UndoableEditSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||