ghm.follow.gui
Class Pause
java.lang.Object
javax.swing.AbstractAction
ghm.follow.gui.FollowAppAction
ghm.follow.gui.Pause
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class Pause
- extends FollowAppAction
Pauses/unpauses the autoscrolling of files that are open in the Follow application.
- Author:
- Carl Hall
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
NAME
|
| 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, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles actions performed relating to pause or playing a log's following |
void |
playPausePane(FileFollowingPane pane)
Plays or pauses a pane depending on it's current state. |
void |
setIconByState(boolean paused)
Sets the icon of this action based on the provided pause state. |
| 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 |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
Pause
public Pause(FollowApp app)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Handles actions performed relating to pause or playing a log's following
- Parameters:
e -
playPausePane
public void playPausePane(FileFollowingPane pane)
- Plays or pauses a pane depending on it's current state. If following, it pauses. If not
following, it plays.
- Parameters:
pane -
setIconByState
public void setIconByState(boolean paused)
- Sets the icon of this action based on the provided pause state.
- Parameters:
paused -
Copyright © 2008. All Rights Reserved.