org.jurvis.swing.explorer
Class JvViewExplorerDetailsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jurvis.swing.explorer.JvViewExplorerDetailsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, JvToggleAction

public class JvViewExplorerDetailsAction
extends AbstractAction
implements JvToggleAction

An Action for controlling the visiblity of a JvExplorerDetails panel within an JvExplorer.

Author:
Neil W. Weber
See Also:
Serialized Form

Field Summary
protected  ButtonModel buttonModel
          The button model tracking the component's visibility.
protected  JvExplorerDetails details
          The controlled details panel.
protected  JvExplorer explorer
          The Explorer component.
 
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
JvViewExplorerDetailsAction(String name, JvExplorer explorer, JvExplorerDetails details)
          Create a JvViewExplorerDetailsAction with the given name that controls the visibility of the given details panel.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 ButtonModel getButtonModel()
           
 
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 javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Field Detail

explorer

protected final JvExplorer explorer
The Explorer component.


details

protected final JvExplorerDetails details
The controlled details panel.


buttonModel

protected final ButtonModel buttonModel
The button model tracking the component's visibility.

Constructor Detail

JvViewExplorerDetailsAction

public JvViewExplorerDetailsAction(String name,
                                   JvExplorer explorer,
                                   JvExplorerDetails details)
Create a JvViewExplorerDetailsAction with the given name that controls the visibility of the given details panel.

Parameters:
name - the name of the action
explorer - the explorer displaying the details panel
details - the controlled details panel
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getButtonModel

public ButtonModel getButtonModel()
Specified by:
getButtonModel in interface JvToggleAction
Returns:
a ButtonModel useful for checking the toggle state of this action.


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.