nl.coderight.jazz.action
Class Action

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by nl.coderight.jazz.action.Action
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class Action
extends AbstractAction

Implementation of Action.

See Also:
ActionGroup, 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
Action(Event event)
           
 
Method Summary
 void actionPerformed(ActionEvent evt)
           
 KeyStroke getAccelerator()
           
 Event getEvent()
           
 Icon getLargeIcon()
           
 String getLongDescription()
           
 int getMnemonic()
           
 int getMnemonicIndex()
           
protected  Icon getResourceAsIcon(String name)
           
 String getShortDescription()
           
 Icon getSmallIcon()
           
 String getText()
           
 void setAccelerator(KeyStroke accelerator)
           
 void setEnabled(boolean enabled)
           
 void setLargeIcon(Icon icon)
           
 void setLongDescription(String description)
           
 void setShortDescription(String description)
           
 void setSmallIcon(Icon icon)
           
 void setText(String text)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Action

public Action(Event event)
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface Action
Overrides:
setEnabled in class AbstractAction

actionPerformed

public final void actionPerformed(ActionEvent evt)

getEvent

public final Event getEvent()

getText

public final String getText()

setText

public void setText(String text)

getAccelerator

public KeyStroke getAccelerator()

setAccelerator

public void setAccelerator(KeyStroke accelerator)

getMnemonic

public int getMnemonic()

getMnemonicIndex

public int getMnemonicIndex()

getSmallIcon

public Icon getSmallIcon()

setSmallIcon

public void setSmallIcon(Icon icon)

getLargeIcon

public Icon getLargeIcon()

setLargeIcon

public void setLargeIcon(Icon icon)

getShortDescription

public String getShortDescription()

setShortDescription

public void setShortDescription(String description)

getLongDescription

public String getLongDescription()

setLongDescription

public void setLongDescription(String description)

getResourceAsIcon

protected final Icon getResourceAsIcon(String name)


Copyright 2010 CodeRight, All rights reserved.