net.sf.doolin.gui.action
Class CloseWindowAction<T>
java.lang.Object
net.sf.doolin.gui.action.AbstractGUIAction
net.sf.doolin.gui.action.AbstractSimpleGUIAction
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
|
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 |
CloseWindowAction
public CloseWindowAction()
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.