net.shredzone.ifish.gui
Class PlaylistPane.SortAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.shredzone.ifish.actions.IFishAction
          extended by net.shredzone.ifish.gui.PlaylistPane.SortAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, ListSelectionListener
Enclosing class:
PlaylistPane

public static class PlaylistPane.SortAction
extends IFishAction
implements ListSelectionListener

See Also:
Serialized Form

Field Summary
static int MODE_ASC
           
static int MODE_DESC
           
static int MODE_SHUFFLE
           
 
Fields inherited from class net.shredzone.ifish.actions.IFishAction
fish, prefs
 
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, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
PlaylistPane.SortAction(PlaylistPane pl, IFishPane fish, String name, Icon icon, String tip, int mode)
           
 
Method Summary
protected  void action()
          The action implementation itself.
protected  void updateState()
           
 void valueChanged(ListSelectionEvent e)
           
 
Methods inherited from class net.shredzone.ifish.actions.IFishAction
actionPerformed, perform
 
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

MODE_ASC

public static final int MODE_ASC
See Also:
Constant Field Values

MODE_DESC

public static final int MODE_DESC
See Also:
Constant Field Values

MODE_SHUFFLE

public static final int MODE_SHUFFLE
See Also:
Constant Field Values
Constructor Detail

PlaylistPane.SortAction

public PlaylistPane.SortAction(PlaylistPane pl,
                               IFishPane fish,
                               String name,
                               Icon icon,
                               String tip,
                               int mode)
Method Detail

action

protected void action()
Description copied from class: IFishAction
The action implementation itself. Overwrite this method with your desired action. You do not need to care for threading, locking etc. Anyhow keep in mind that for AsyncIFishActions, this method is actually running in a separate thread.

Specified by:
action in class IFishAction

valueChanged

public void valueChanged(ListSelectionEvent e)
Specified by:
valueChanged in interface ListSelectionListener

updateState

protected void updateState()


Copyright © 2007-2011 shredzone.org. All Rights Reserved.