net.sourceforge.atunes.gui.views.controls.playList
Class PlayListTable

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTable
                  extended by net.sourceforge.atunes.gui.views.controls.playList.PlayListTable
All Implemented Interfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.CellEditorListener, javax.swing.event.ListSelectionListener, javax.swing.event.RowSorterListener, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener, javax.swing.Scrollable

public class PlayListTable
extends javax.swing.JTable
implements java.awt.dnd.DragSourceListener, java.awt.dnd.DragGestureListener

The Class PlayListTable.

See Also:
Serialized Form

Nested Class Summary
static class PlayListTable.PlayState
          The Enum PlayState.
 
Nested classes/interfaces inherited from class javax.swing.JTable
javax.swing.JTable.AccessibleJTable, javax.swing.JTable.DropLocation, javax.swing.JTable.PrintMode
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JTable
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, columnModel, dataModel, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeader
 
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
PlayListTable()
          Instantiates a new play list table.
 
Method Summary
 void addPlayListColumnClickedListener(PlayListColumnClickedListener l)
          Adds the play list column clicked listener.
 void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
           
 void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
           
 void dragExit(java.awt.dnd.DragSourceEvent dse)
           
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
           
 void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
           
 void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
           
 javax.swing.JMenuItem getAdd100RandomSongs()
          Gets the add100 random songs.
 javax.swing.JMenuItem getAdd100SongsMostPlayed()
          Gets the add100 songs most played.
 javax.swing.JMenuItem getAdd100UnplayedSongs()
          Gets the add100 unplayed songs.
 javax.swing.JMenuItem getAdd10AlbumsMostPlayed()
          Gets the add10 albums most played.
 javax.swing.JMenuItem getAdd10ArtistsMostPlayed()
          Gets the add10 artists most played.
 javax.swing.JMenuItem getAdd10RandomSongs()
          Gets the add10 random songs.
 javax.swing.JMenuItem getAdd10SongsMostPlayed()
          Gets the add10 songs most played.
 javax.swing.JMenuItem getAdd10UnplayedSongs()
          Gets the add10 unplayed songs.
 javax.swing.JMenuItem getAdd1AlbumsMostPlayed()
          Gets the add1 albums most played.
 javax.swing.JMenuItem getAdd1ArtistsMostPlayed()
          Gets the add1 artists most played.
 javax.swing.JMenuItem getAdd50RandomSongs()
          Gets the add50 random songs.
 javax.swing.JMenuItem getAdd50SongsMostPlayed()
          Gets the add50 songs most played.
 javax.swing.JMenuItem getAdd50UnplayedSongs()
          Gets the add50 unplayed songs.
 javax.swing.JMenuItem getAdd5AlbumsMostPlayed()
          Gets the add5 albums most played.
 javax.swing.JMenuItem getAdd5ArtistsMostPlayed()
          Gets the add5 artists most played.
 javax.swing.JMenuItem getArrangeColumns()
          Gets the arrange columns.
 javax.swing.JMenuItem getAutoSetGenreItem()
          Gets the auto set genre item.
 javax.swing.JMenuItem getAutoSetLyricsItem()
          Gets the auto set lyrics item.
 javax.swing.JMenuItem getAutoSetTitleItem()
          Gets the auto set title item.
 javax.swing.JMenuItem getAutoSetTrackItem()
          Gets the auto set track item.
 javax.swing.JMenuItem getEditTagItem()
          Gets the edits the tag item.
 javax.swing.JPopupMenu getMenu()
          Gets the menu.
 javax.swing.JMenuItem getOpenFolder()
          Gets the open folder.
 int getPlayingSong()
          Gets the playing song.
 javax.swing.JMenuItem getPlayItem()
          Gets the play item.
 PlayListTable.PlayState getPlayState()
          Gets the play state.
 void setPlayingSong(int row)
          Sets the playing song.
 void setPlayState(PlayListTable.PlayState playState)
          Sets the play state.
 
Methods inherited from class javax.swing.JTable
addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnModel, createDefaultColumnsFromModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createDefaultTableHeader, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, initializeLocalVars, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, prepareRenderer, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, resizeAndRepaint, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setModel, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, tableChanged, unconfigureEnclosingScrollPane, updateUI, valueChanged
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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, 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, transferFocusBackward, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayListTable

public PlayListTable()
Instantiates a new play list table.

Method Detail

addPlayListColumnClickedListener

public void addPlayListColumnClickedListener(PlayListColumnClickedListener l)
Adds the play list column clicked listener.

Parameters:
l - the l

getAdd100RandomSongs

public javax.swing.JMenuItem getAdd100RandomSongs()
Gets the add100 random songs.

Returns:
the add100RandomSongs

getAdd100SongsMostPlayed

public javax.swing.JMenuItem getAdd100SongsMostPlayed()
Gets the add100 songs most played.

Returns:
the add100SongsMostPlayed

getAdd10AlbumsMostPlayed

public javax.swing.JMenuItem getAdd10AlbumsMostPlayed()
Gets the add10 albums most played.

Returns:
the add10AlbumsMostPlayed

getAdd10ArtistsMostPlayed

public javax.swing.JMenuItem getAdd10ArtistsMostPlayed()
Gets the add10 artists most played.

Returns:
the add10ArtistsMostPlayed

getAdd10RandomSongs

public javax.swing.JMenuItem getAdd10RandomSongs()
Gets the add10 random songs.

Returns:
the add10RandomSongs

getAdd10SongsMostPlayed

public javax.swing.JMenuItem getAdd10SongsMostPlayed()
Gets the add10 songs most played.

Returns:
the add10SongsMostPlayed

getAdd1AlbumsMostPlayed

public javax.swing.JMenuItem getAdd1AlbumsMostPlayed()
Gets the add1 albums most played.

Returns:
the add1AlbumsMostPlayed

getAdd1ArtistsMostPlayed

public javax.swing.JMenuItem getAdd1ArtistsMostPlayed()
Gets the add1 artists most played.

Returns:
the add1ArtistsMostPlayed

getAdd50RandomSongs

public javax.swing.JMenuItem getAdd50RandomSongs()
Gets the add50 random songs.

Returns:
the add50RandomSongs

getAdd50SongsMostPlayed

public javax.swing.JMenuItem getAdd50SongsMostPlayed()
Gets the add50 songs most played.

Returns:
the add50SongsMostPlayed

getAdd5AlbumsMostPlayed

public javax.swing.JMenuItem getAdd5AlbumsMostPlayed()
Gets the add5 albums most played.

Returns:
the add5AlbumsMostPlayed

getAdd5ArtistsMostPlayed

public javax.swing.JMenuItem getAdd5ArtistsMostPlayed()
Gets the add5 artists most played.

Returns:
the add5ArtistsMostPlayed

getArrangeColumns

public javax.swing.JMenuItem getArrangeColumns()
Gets the arrange columns.

Returns:
the arrangeColumns

getAutoSetGenreItem

public javax.swing.JMenuItem getAutoSetGenreItem()
Gets the auto set genre item.

Returns:
the auto set genre item

getAutoSetLyricsItem

public javax.swing.JMenuItem getAutoSetLyricsItem()
Gets the auto set lyrics item.

Returns:
the auto set lyrics item

getAutoSetTitleItem

public javax.swing.JMenuItem getAutoSetTitleItem()
Gets the auto set title item.

Returns:
the auto set title item

getAutoSetTrackItem

public javax.swing.JMenuItem getAutoSetTrackItem()
Gets the auto set track item.

Returns:
the auto set track item

getEditTagItem

public javax.swing.JMenuItem getEditTagItem()
Gets the edits the tag item.

Returns:
the edits the tag item

getMenu

public javax.swing.JPopupMenu getMenu()
Gets the menu.

Returns:
the menu

getPlayingSong

public int getPlayingSong()
Gets the playing song.

Returns:
the playing song

getPlayItem

public javax.swing.JMenuItem getPlayItem()
Gets the play item.

Returns:
the play item

getPlayState

public PlayListTable.PlayState getPlayState()
Gets the play state.

Returns:
the play state

setPlayingSong

public void setPlayingSong(int row)
Sets the playing song.

Parameters:
row - the new playing song

setPlayState

public void setPlayState(PlayListTable.PlayState playState)
Sets the play state.

Parameters:
playState - the new play state

getAdd10UnplayedSongs

public javax.swing.JMenuItem getAdd10UnplayedSongs()
Gets the add10 unplayed songs.

Returns:
the add10 unplayed songs

getAdd50UnplayedSongs

public javax.swing.JMenuItem getAdd50UnplayedSongs()
Gets the add50 unplayed songs.

Returns:
the add50 unplayed songs

getAdd100UnplayedSongs

public javax.swing.JMenuItem getAdd100UnplayedSongs()
Gets the add100 unplayed songs.

Returns:
the add100 unplayed songs

getOpenFolder

public javax.swing.JMenuItem getOpenFolder()
Gets the open folder.

Returns:
the openFolder

dragDropEnd

public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
Specified by:
dragDropEnd in interface java.awt.dnd.DragSourceListener

dragEnter

public void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
Specified by:
dragEnter in interface java.awt.dnd.DragSourceListener

dragExit

public void dragExit(java.awt.dnd.DragSourceEvent dse)
Specified by:
dragExit in interface java.awt.dnd.DragSourceListener

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener

dragOver

public void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
Specified by:
dragOver in interface java.awt.dnd.DragSourceListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
Specified by:
dropActionChanged in interface java.awt.dnd.DragSourceListener


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.