net.sf.doolin.gui.action
Class CloseWindowAction<T>

java.lang.Object
  extended by net.sf.doolin.gui.action.AbstractGUIAction
      extended by net.sf.doolin.gui.action.AbstractSimpleGUIAction
          extended by net.sf.doolin.gui.action.CloseWindowAction<T>
Type Parameters:
T - Type of the model for the window
All Implemented Interfaces:
GUIAction, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
ExitAction

public class CloseWindowAction<T>
extends AbstractSimpleGUIAction

Closes the current view.

Author:
Damien Coraboeuf

Constructor Summary
CloseWindowAction()
           
 
Method Summary
protected  boolean canClose(GUIWindow<T> window)
          Checks if the window can be closed by closing all views.
protected  void close(GUIWindow<T> window)
          Actually closes the window
protected  void doExecute(ActionContext context)
          Executes the action and throws any kind of error.
 
Methods inherited from class net.sf.doolin.gui.action.AbstractSimpleGUIAction
getIconId, getIconIDExpression, getId, getShortcut, getShortcutExpression, getTextExpression, getTip, getTipExpression, getTitle, init, setBeanName, setIconId, setShortcut, setTip, setTitle, toString
 
Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction
execute, getActionContextData, getActionContextDataExtractor, getDisplayStateHandler, getIcon, getIconService, setActionContextDataExtractor, setDisplayStateHandler, setIconService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CloseWindowAction

public CloseWindowAction()
Method Detail

doExecute

protected void doExecute(ActionContext context)
                  throws Exception
Description copied from class: AbstractGUIAction
Executes the action and throws any kind of error.

Specified by:
doExecute in class AbstractGUIAction
Parameters:
context - the context
Throws:
Exception - the exception

close

protected void close(GUIWindow<T> window)
Actually closes the window

Parameters:
window - Window to close
See Also:
GUIWindow.close()

canClose

protected boolean canClose(GUIWindow<T> window)
Checks if the window can be closed by closing all views.

Parameters:
window - Window to close
Returns:
Result of the check
See Also:
GUIWindow.canClose()


Copyright © 2011. All Rights Reserved.