org.openpermis.editor.policy.gui
Class WindowCloser
java.lang.Object
java.awt.event.WindowAdapter
org.openpermis.editor.policy.gui.WindowCloser
- All Implemented Interfaces:
- WindowFocusListener, WindowListener, WindowStateListener, EventListener
public class WindowCloser
- extends WindowAdapter
Window listener that forwards the windowClosing event to an action.
- Since:
- 0.9.0
Field Summary |
static String |
COMMAND
Default command used to trigger the action. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMAND
public static final String COMMAND
- Default command used to trigger the action.
- Constant Field Value:
"closing"
- Since:
- 0.9.0
WindowCloser
public WindowCloser(Action action)
- Creates a window closer for the specified action.
- Notes:
- Uses
COMMAND
as command.
- Parameters:
action
- the action to execute if the windowClosing(java.awt.event.WindowEvent)
event is triggered.- Since:
- 0.9.0
WindowCloser
public WindowCloser(Action action,
String command)
- Creates a window closer for the specified action.
- Parameters:
action
- the action to execute if the windowClosing(java.awt.event.WindowEvent)
event is triggered.command
- the command to issue.- Since:
- 0.9.0
windowClosing
public void windowClosing(WindowEvent e)
- Specified by:
windowClosing
in interface WindowListener
- Overrides:
windowClosing
in class WindowAdapter
- Since:
- 0.9.0
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG