org.openpermis.editor.policy.gui
Class WindowCloser

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by 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.
 
Constructor Summary
WindowCloser(Action action)
          Creates a window closer for the specified action.
WindowCloser(Action action, String command)
          Creates a window closer for the specified action.
 
Method Summary
 void windowClosing(WindowEvent e)
           
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND

public static final String COMMAND
Default command used to trigger the action.

Constant Field Value:
"closing"
Since:
0.9.0
Constructor Detail

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
Method Detail

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