ghm.follow.gui
Class Pause

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byghm.follow.gui.FollowAppAction
          extended byghm.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
 
Constructor Summary
Pause(FollowApp app)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handles actions performed relating to pause or playing a log's following
 void pausePane(FileFollowingPane pane)
          Pauses a pane if it is following.
 void playPausePane(FileFollowingPane pane)
          Plays or pauses a pane depending on it's current state.
 void setIconByState(boolean follow)
          Sets the icon of this action based on the provided follow state
 
Methods inherited from class ghm.follow.gui.FollowAppAction
getApp
 
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
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

Pause

public Pause(FollowApp app)
Method Detail

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 -