|
||||||||||
| 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.CmdPrintPanel
public class CmdPrintPanel
A Command that opens up a print dialog.
| Field Summary | |
|---|---|
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 | |
|---|---|
CmdPrintPanel(PanelManager manager,
CmdPageLayoutPanel pageLayout)
Initializes variables. |
|
| Method Summary | |
|---|---|
void |
aboutToRemovePanel(PanelManagerEvent e)
Not Implemented. |
void |
execute()
Opens a print dialog. |
String |
getDescription()
Returns the description of this command. |
String |
getGroupInView(String viewName)
Assigns this command to the print group. |
char |
getMnemonic()
Returns the mnemonic for this command. |
String |
getName()
Returns the name of this command. |
boolean |
isInteractive()
Returns if this command is interactive. |
void |
panelAdded(PanelManagerEvent e)
Calls updateEnabled. |
void |
panelFloated(PanelManagerEvent e)
Not Implemented. |
void |
panelRemoved(PanelManagerEvent e)
Calls updateEnabled. |
void |
panelUnfloated(PanelManagerEvent e)
Not Implemented. |
protected void |
updateEnabled()
Sets this command to be enabled if the PanelManager contains one or more panels. |
| 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, 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
| Constructor Detail |
|---|
public CmdPrintPanel(PanelManager manager,
CmdPageLayoutPanel pageLayout)
manager - The PanelManager that manages the panels and views.pageLayout - This variable is passed to PrintUtility and PrintPreview
in the execute () method so those classes can access the current settings of
the page layout.| Method Detail |
|---|
public void execute()
execute in interface Commandexecute in class AbstractCommandprotected void updateEnabled()
public String getName()
getName in interface CommandgetName in interface IconicgetName in class AbstractCommandpublic String getDescription()
getDescription in interface CommandgetDescription in class AbstractCommandpublic boolean isInteractive()
isInteractive in interface CommandisInteractive in class AbstractCommandpublic String getGroupInView(String viewName)
getGroupInView in interface CommandgetGroupInView in class AbstractCommandviewName - The name of the view.
public char getMnemonic()
getMnemonic in interface CommandgetMnemonic in class AbstractCommandpublic void panelAdded(PanelManagerEvent e)
panelAdded in interface PanelManagerListenere - The PanelManagerEvent.public void panelRemoved(PanelManagerEvent e)
panelRemoved in interface PanelManagerListenere - The PanelManagerEvent.public void panelFloated(PanelManagerEvent e)
panelFloated in interface PanelManagerListenere - The PanelManagerEvent.public void panelUnfloated(PanelManagerEvent e)
panelUnfloated in interface PanelManagerListenere - The PanelManagerEvent.public void aboutToRemovePanel(PanelManagerEvent e)
aboutToRemovePanel in interface PanelManagerListenere - The PanelManagerEvent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||