ghm.follow.gui
Class Pause
java.lang.Object
javax.swing.AbstractAction
ghm.follow.gui.FollowAppAction
ghm.follow.gui.Pause
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- 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, LONG_DESCRIPTION, MNEMONIC_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| 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 -
pausePane
public void pausePane(FileFollowingPane pane)
- Pauses a pane if it is following.
- Parameters:
pane -
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 follow)
- Sets the icon of this action based on the provided follow state
- Parameters:
follow -