ghm.follow.gui
Class Pause

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ghm.follow.gui.FollowAppAction
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class ghm.follow.gui.FollowAppAction
FollowAppAction.ActionContext
 
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
 
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 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 ghm.follow.gui.FollowAppAction
getApp, getContext, getIcon, setIcon
 
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 -

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.