public final class CloseWindowCommandAction
extends javax.swing.AbstractAction
| Constructor and Description |
|---|
CloseWindowCommandAction(java.awt.Component component,
java.lang.String title)
Create a button Action to close the specified window upon command.
|
CloseWindowCommandAction(java.lang.String title)
Create a button Action to close the specified window upon command.
|
CloseWindowCommandAction(java.awt.Window window,
java.lang.String title)
Create a button Action to close the specified window upon command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Do not call.
|
void |
setComponent(java.awt.Component component)
Specify the Component to be associated with this Action.
|
public CloseWindowCommandAction(java.awt.Window window,
java.lang.String title)
window - Window subclass instance to closetitle - localized String title to put on button created with this Actionpublic CloseWindowCommandAction(java.awt.Component component,
java.lang.String title)
component - Component that will consume and trigger this Action.title - localized String title to put on button created with this Actionpublic CloseWindowCommandAction(java.lang.String title)
setComponent(Component).title - localized String title to put on button created with this Actionpublic void setComponent(java.awt.Component component)
component - Component that will consume and trigger this Action.public void actionPerformed(java.awt.event.ActionEvent e)
e - ActionEvent identifying the commanding widget