swingx
Version 2005-08-19

org.jdesktop.swingx.table
Class ColumnControlButton.ColumnVisibilityAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jdesktop.swingx.action.AbstractActionExt
          extended by org.jdesktop.swingx.table.ColumnControlButton.ColumnVisibilityAction
All Implemented Interfaces:
ActionListener, ItemListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
ColumnControlButton

public class ColumnControlButton.ColumnVisibilityAction
extends AbstractActionExt

A specialized action which takes care of keeping in synch with TableColumn state. NOTE: client must call releaseColumn if this action is no longer needed!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdesktop.swingx.action.AbstractActionExt
GROUP, IS_STATE, LARGE_ICON
 
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
ColumnControlButton.ColumnVisibilityAction(TableColumn column)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 boolean isEnabled()
           
 void itemStateChanged(ItemEvent e)
           
 void releaseColumn()
          release listening to column.
 
Methods inherited from class org.jdesktop.swingx.action.AbstractActionExt
dispose, getAccelerator, getActionCommand, getGroup, getLargeIcon, getLongDescription, getMnemonic, getName, getShortDescription, getSmallIcon, isSelected, isStateAction, setAccelerator, setActionCommand, setGroup, setLargeIcon, setLongDescription, setMnemonic, setMnemonic, setName, setSelected, setShortDescription, setSmallIcon, setStateAction, setStateAction, toString
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnControlButton.ColumnVisibilityAction

public ColumnControlButton.ColumnVisibilityAction(TableColumn column)
Method Detail

releaseColumn

public void releaseColumn()
release listening to column. Client must call this method if the action is no longer needed. After calling it the action must not be used any longer.


isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Action
Overrides:
isEnabled in class AbstractAction

itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener
Overrides:
itemStateChanged in class AbstractActionExt

actionPerformed

public void actionPerformed(ActionEvent e)

swingx
Version 2005-08-19