org.jtheque.core.managers.view.impl.actions
Class JThequeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jtheque.core.managers.view.impl.actions.JThequeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Internationalizable
Direct Known Subclasses:
AbstractAction, AbstractBrowseAction, AbstractUpdateAction, AcBackup, AcRestore, AcValidateUpdateView, ApplyChangesAction, ApplyChangesAndCloseAction, CancelAction, CancelChangesAction, ChooseAction, CloseViewAction, CreateAction, DisableModuleAction, DisplayAboutViewAction, DisplayNextMessageAction, DisplayPreviousMessageAction, DisplayViewAction, EnableModuleAction, ExitAction, ExpandRepositoryModuleAction, InstallModuleAction, InstallRepositoryModuleAction, LoadModuleAction, PrintLicenseAction, SwitchPrimaryModuleAction, UninstallModuleAction, UpdateAction

public abstract class JThequeAction
extends javax.swing.AbstractAction
implements Internationalizable

An action of JTheque.

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
  JThequeAction(java.lang.String key)
          Construct a new JThequeAction.
protected JThequeAction(java.lang.String key, java.lang.Object[] replaces)
          Construct a new JThequeAction.
 
Method Summary
 java.lang.String getTextKey()
          Return the internationalization key.
 void refreshText()
          Refresh the text.
 void setIcon(javax.swing.ImageIcon icon)
          Set the icon of te action.
 void setText(java.lang.String text)
          Set the text of the action.
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

JThequeAction

public JThequeAction(java.lang.String key)
Construct a new JThequeAction.

Parameters:
key - The internationalization key.

JThequeAction

protected JThequeAction(java.lang.String key,
                        java.lang.Object[] replaces)
Construct a new JThequeAction.

Parameters:
key - The internationalization key.
replaces - The replacements on the message ressource.
Method Detail

getTextKey

public final java.lang.String getTextKey()
Return the internationalization key.

Returns:
The internationalization key.

setText

public final void setText(java.lang.String text)
Set the text of the action.

Parameters:
text - The text.

setIcon

public final void setIcon(javax.swing.ImageIcon icon)
Set the icon of te action.

Parameters:
icon - The icon.

refreshText

public final void refreshText()
Description copied from interface: Internationalizable
Refresh the text.

Specified by:
refreshText in interface Internationalizable


Copyright © 2009 JTheque. All Rights Reserved.