org.sf.cafebabe.util
Class Actions.CustomAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.sf.cafebabe.util.Actions.CustomAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
Actions

public abstract class Actions.CustomAction
extends javax.swing.AbstractAction

This class allows to use for Action object different types of buttons, not only JButton objects

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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
Actions.CustomAction(java.lang.String text, javax.swing.ImageIcon icon, javax.swing.AbstractButton button)
           
 
Method Summary
 javax.swing.AbstractButton getButton()
           
 void setEnabled(boolean newValue)
           
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

Actions.CustomAction

public Actions.CustomAction(java.lang.String text,
                            javax.swing.ImageIcon icon,
                            javax.swing.AbstractButton button)
Method Detail

setEnabled

public void setEnabled(boolean newValue)
Specified by:
setEnabled in interface javax.swing.Action
Overrides:
setEnabled in class javax.swing.AbstractAction

getButton

public javax.swing.AbstractButton getButton()


Copyright 2006 Dream Programs Inc.. All Rights Reserved.