org.jtheque.core.managers.view.impl.actions.utils
Class CloseViewAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jtheque.core.managers.view.impl.actions.JThequeAction
          extended by org.jtheque.core.managers.view.impl.actions.utils.CloseViewAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Internationalizable

public final class CloseViewAction
extends JThequeAction

A generic close view action.

Author:
Baptiste Wicht
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CloseViewAction(java.lang.String key)
          Construct a new CloseViewAction with a specific internationalization key.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void setView(IView view)
          Set the view to close.
 
Methods inherited from class org.jtheque.core.managers.view.impl.actions.JThequeAction
getTextKey, refreshText, setIcon, setText
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseViewAction

public CloseViewAction(java.lang.String key)
Construct a new CloseViewAction with a specific internationalization key.

Parameters:
key - The i18n key.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

setView

public void setView(IView view)
Set the view to close.

Parameters:
view - The view to close.


Copyright © 2009 JTheque. All Rights Reserved.