net.sf.doolin.gui.window.dialog
Class DialogCancelAction<B>

java.lang.Object
  extended by net.sf.doolin.gui.action.AbstractGUIAction
      extended by net.sf.doolin.gui.action.AbstractTextAction
          extended by net.sf.doolin.gui.window.dialog.AbstractDialogAction<B>
              extended by net.sf.doolin.gui.window.dialog.DialogCancelAction<B>
Type Parameters:
B - Type of data for the dialog
All Implemented Interfaces:
GUIAction

public class DialogCancelAction<B>
extends AbstractDialogAction<B>

Standard Cancel action for a dialog

Author:
Damien Coraboeuf (x74639)

Constructor Summary
DialogCancelAction()
          Constructor
 
Method Summary
protected  void doExecute(ActionContext context)
          Invalidates the model and cancels the dialog
protected  String getShortcut()
          Shortcut
 
Methods inherited from class net.sf.doolin.gui.window.dialog.AbstractDialogAction
getDialog
 
Methods inherited from class net.sf.doolin.gui.action.AbstractTextAction
getIconIDExpression, getId, getShortcutExpression, getText, getTextExpression, getTipExpression
 
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, toString, wait, wait, wait
 

Constructor Detail

DialogCancelAction

public DialogCancelAction()
Constructor

See Also:
DialogAction.CANCEL
Method Detail

doExecute

protected void doExecute(ActionContext context)
                  throws Exception
Invalidates the model and cancels the dialog

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

getShortcut

protected String getShortcut()
Shortcut

Specified by:
getShortcut in class AbstractTextAction
Returns:
Shortcut definition
See Also:
KeyStroke.getKeyStroke(String)


Copyright © 2011. All Rights Reserved.