net.shredzone.ifish.gui
Class PlaylistPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by net.shredzone.ifish.gui.PlaylistPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener, PlaylistSource

public class PlaylistPane
extends JPanel
implements PlaylistSource, ListSelectionListener

This panel allows to see the playlists.

Version:
$Id: PlaylistPane.java 291 2009-04-28 21:29:27Z shred $
See Also:
Serialized Form

Nested Class Summary
static class PlaylistPane.AllAction
           
static class PlaylistPane.CreateAction
           
static class PlaylistPane.DeleteAction
           
static class PlaylistPane.MoveAction
           
static class PlaylistPane.PasteAction
           
static class PlaylistPane.RemoveAction
           
static class PlaylistPane.RenameAction
           
static class PlaylistPane.SortAction
           
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  PlaylistPane.AllAction actionAll
           
protected  PlaylistPane.SortAction actionAsc
           
protected  PlaylistPane.MoveAction actionBottom
           
protected  PlaylistPane.SortAction actionDesc
           
protected  PlaylistPane.MoveAction actionDown
           
protected  PlaylistPane.PasteAction actionPaste
           
protected  PlaylistPane.CreateAction actionPLCreate
           
protected  PlaylistPane.DeleteAction actionPLDelete
           
protected  PlaylistPane.RenameAction actionPLRename
           
protected  PlaylistPane.RemoveAction actionRemove
           
protected  PlaylistPane.SortAction actionShuffle
           
protected  PlaylistPane.MoveAction actionTop
           
protected  PlaylistPane.MoveAction actionUp
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PlaylistPane(IFishPane fish)
          Create a PlaylistPane.
 
Method Summary
protected  void clearPlaylist()
          Clear the playlist contents, setting an empty list.
 Entry[] getSelectedEntries()
          Get an array of all Entry to be played.
protected static boolean isValid(String name)
           
protected  void setPlaylist(Playlist pl)
          Set a selected playlist, showing it in the contents table.
 void setPlaylistDb(PlaylistDb playlist)
          Set a playlist database.
 void valueChanged(ListSelectionEvent e)
          Internal ListSelectionListener implementation, do not use.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

actionTop

protected final PlaylistPane.MoveAction actionTop

actionUp

protected final PlaylistPane.MoveAction actionUp

actionDown

protected final PlaylistPane.MoveAction actionDown

actionBottom

protected final PlaylistPane.MoveAction actionBottom

actionAsc

protected final PlaylistPane.SortAction actionAsc

actionDesc

protected final PlaylistPane.SortAction actionDesc

actionShuffle

protected final PlaylistPane.SortAction actionShuffle

actionAll

protected final PlaylistPane.AllAction actionAll

actionPaste

protected final PlaylistPane.PasteAction actionPaste

actionRemove

protected final PlaylistPane.RemoveAction actionRemove

actionPLCreate

protected final PlaylistPane.CreateAction actionPLCreate

actionPLRename

protected final PlaylistPane.RenameAction actionPLRename

actionPLDelete

protected final PlaylistPane.DeleteAction actionPLDelete
Constructor Detail

PlaylistPane

public PlaylistPane(IFishPane fish)
Create a PlaylistPane.

Parameters:
fish - Reference to IFishPane
Method Detail

setPlaylistDb

public void setPlaylistDb(PlaylistDb playlist)
Set a playlist database. Its contents will be shown in the playlist list on the left.

Parameters:
playlist - New PlaylistDb

valueChanged

public void valueChanged(ListSelectionEvent e)
Internal ListSelectionListener implementation, do not use.

Specified by:
valueChanged in interface ListSelectionListener
Parameters:
e - ListSelectionEvent

setPlaylist

protected void setPlaylist(Playlist pl)
Set a selected playlist, showing it in the contents table.

Parameters:
pl - Playlist to be shown.

clearPlaylist

protected void clearPlaylist()
Clear the playlist contents, setting an empty list.


getSelectedEntries

public Entry[] getSelectedEntries()
Get an array of all Entry to be played.

Specified by:
getSelectedEntries in interface PlaylistSource
Returns:
Array of Entry, might be empty.

isValid

protected static boolean isValid(String name)


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