|
||||||||||
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 Command
execute
in class AbstractCommand
protected void updateEnabled()
public String getName()
getName
in interface Command
getName
in interface Iconic
getName
in class AbstractCommand
public String getDescription()
getDescription
in interface Command
getDescription
in class AbstractCommand
public boolean isInteractive()
isInteractive
in interface Command
isInteractive
in class AbstractCommand
public String getGroupInView(String viewName)
getGroupInView
in interface Command
getGroupInView
in class AbstractCommand
viewName
- The name of the view.
public char getMnemonic()
getMnemonic
in interface Command
getMnemonic
in class AbstractCommand
public void panelAdded(PanelManagerEvent e)
panelAdded
in interface PanelManagerListener
e
- The PanelManagerEvent.public void panelRemoved(PanelManagerEvent e)
panelRemoved
in interface PanelManagerListener
e
- The PanelManagerEvent.public void panelFloated(PanelManagerEvent e)
panelFloated
in interface PanelManagerListener
e
- The PanelManagerEvent.public void panelUnfloated(PanelManagerEvent e)
panelUnfloated
in interface PanelManagerListener
e
- The PanelManagerEvent.public void aboutToRemovePanel(PanelManagerEvent e)
aboutToRemovePanel
in interface PanelManagerListener
e
- The PanelManagerEvent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |