org.jurvis.swing.explorer
Class JvViewExplorerDetailsAction
java.lang.Object
javax.swing.AbstractAction
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
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.
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 actionexplorer - the explorer displaying the details paneldetails - the controlled details panel
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.