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

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.DisplayViewAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Internationalizable

public final class DisplayViewAction
extends JThequeAction

A generic display 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
DisplayViewAction(java.lang.String key)
          Construct a new DisplayViewAction with a specific internationalization key.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void setView(IView view)
          Set the view to display.
 
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

DisplayViewAction

public DisplayViewAction(java.lang.String key)
Construct a new DisplayViewAction 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 display.

Parameters:
view - The view to display.


Copyright © 2009 JTheque. All Rights Reserved.