org.lyra.Interface
Class PlayerOrganiserFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by org.lyra.Interface.PlayerOrganiserFrame
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class PlayerOrganiserFrame
extends javax.swing.JFrame

The main display centre for the interface. Permits a user to narrow down songs using genre, album and artists. Also a primary interface the playlist and player controls, enabling the user to populate and manage playlist.

Version:
1.0.5, %Revision, 174%, %LastChangedDate, 27/10/12 3:33PM%
Author:
Martin Foster
See Also:
Serialized Form

Nested Class Summary
 class PlayerOrganiserFrame.Interact
          The code separation from the user interface.
private  class PlayerOrganiserFrame.SourceDragger
          This element of code will exist specifically to create a drag capability for the code.
private  class PlayerOrganiserFrame.SourceDropper
          This element of code will exist specifically to create a drag and drop capability for the code.
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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
private  javax.swing.JToolBar barSearch
           
private  boolean BlindUpdate
           
private  javax.swing.JButton buttonClear
           
private  javax.swing.JButton buttonDelete
           
private  javax.swing.JButton buttonRemove
           
private  javax.swing.JButton buttonSave
           
private  javax.swing.JButton buttonShuffle
           
private static java.lang.String CLASS
           
private  Playback Control
           
private static int CURRENT_POSITION
           
private static int CURRENT_TIME
           
private  PositionCellRenderer CurrentPositionRenderer
           
private  CustomColorRenderer CurrentRowRenderer
           
private  DateTableCellRenderer CurrentTimeElapsedRenderer
           
private  PlayerOrganiserFrame.SourceDragger Dragger
           
private  PlayerOrganiserFrame.SourceDropper Dropper
           
private  java.util.Set<java.lang.String> Enabled
           
private  java.util.Map<java.lang.String,java.lang.String> Global
           
private  javax.swing.JButton headerCurrent
           
private  javax.swing.JButton headerLibrary
           
private  javax.swing.JButton headerPlaylists
           
private  javax.swing.JLabel iconResize
           
private  Status Info
           
private  PlayerOrganiserFrame.Interact Interface
           
private  javax.swing.JPanel jContentPane
           
private  javax.swing.JLabel labelRuntime
           
private  javax.swing.JLabel labelSelect
           
private  javax.swing.JLabel labelSongs
           
private  java.util.Map<java.lang.String,java.lang.String> Lang
           
private  Playlist Lists
           
private  Ledger Logger
           
private  Comptroller Manager
           
private  Options Modes
           
private  javax.swing.JPanel panelAlbum
           
private  javax.swing.JPanel panelArtist
           
private  javax.swing.JPanel panelControl
           
private  javax.swing.JPanel panelCurrent
           
private  javax.swing.JPanel panelCurrentControl
           
private  javax.swing.JPanel panelFilter
           
private  javax.swing.JPanel panelGenre
           
private  javax.swing.JPanel panelLibrary
           
private  javax.swing.JPanel panelPlayer
           
private  javax.swing.JPanel panelPlaylist
           
private  javax.swing.JPanel panelPlaylistControl
           
private  javax.swing.JPanel panelSongs
           
private  javax.swing.JPanel panelStatus
           
private  javax.swing.JPanel panelWindow
           
private  PlayerPanel PlayerDisplay
           
private  RatingCellRenderer RatingRenderer
           
private  CustomColorRenderer RowRenderer
           
private static java.lang.String RUNTIME_DEF
           
private  javax.swing.JScrollPane scrollAlbum
           
private  javax.swing.JScrollPane scrollArtist
           
private  javax.swing.JScrollPane scrollCurrent
           
private  javax.swing.JScrollPane scrollGenre
           
private  javax.swing.JScrollPane scrollPlaylist
           
private  javax.swing.JScrollPane scrollSongs
           
private static java.lang.String SELECT_DEF
           
private static long serialVersionUID
           
private static int SONG_FILE
           
private static int SONG_RATING
           
private static int SONG_TIME
           
private static java.lang.String SONGS_DEF
           
private  java.awt.Frame Source
           
private  javax.swing.JSplitPane splitGlobal
           
private  javax.swing.JComponent splitLibrary
           
private  javax.swing.JComponent splitLists
           
private  javax.swing.JLabel statusRuntime
           
private  javax.swing.JLabel statusSelect
           
private  javax.swing.JLabel statusSongs
           
private  javax.swing.JTable tableAlbum
           
private  javax.swing.JTable tableArtist
           
private  javax.swing.JTable tableCurrent
           
private  javax.swing.JTable tableGenre
           
private  javax.swing.JTable tableSongs
           
private  DateTableCellRenderer TimeElapsedRenderer
           
private  javax.swing.JTree treePlaylist
           
private  Updater Watcher
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PlayerOrganiserFrame(java.util.Map<java.lang.String,java.lang.String> lang, java.util.Map<java.lang.String,java.lang.String> global)
          Main constructor class for the application itself.
 
Method Summary
private  javax.swing.JToolBar getBarSearch()
          This method initialises barSearch.
private  javax.swing.JButton getButtonClear()
          This method initialises buttonClear.
private  javax.swing.JButton getButtonDelete()
          This method initialises buttonDelete.
private  javax.swing.JButton getButtonRemove()
          This method initialises buttonRemove.
private  javax.swing.JButton getButtonSave()
          This method initialises buttonSave.
private  javax.swing.JButton getButtonShuffle()
          This method initialises buttonShuffle.
private  javax.swing.JPanel getControlCurrent()
          This method initialises panelControl.
private  javax.swing.JPanel getControlPlaylist()
          This method initialises panelPlaylistControl.
private  javax.swing.JButton getHeaderCurrent()
          This method initialises headerCurrent.
private  javax.swing.JButton getHeaderLibrary()
          This method initialises headerGroup.
private  javax.swing.JButton getHeaderPlaylists()
          This method initialises headerPlaylists.
private  javax.swing.JLabel getIconResize()
          This method initialises iconResize.
private  javax.swing.JPanel getJContentPane()
          This method initialises jContentPane.
private  javax.swing.JLabel getLabelRuntime()
          This method initialises labelRuntime.
private  javax.swing.JLabel getLabelSelect()
          This method initialises labelSelect.
private  javax.swing.JLabel getLabelSongs()
          This method initialises labelSongs.
private  javax.swing.JPanel getPanelAlbum()
          This method initialises panelAlbum.
private  javax.swing.JPanel getPanelArtist()
          This method initialises panelArtist.
private  javax.swing.JPanel getPanelControl()
          This method initialises panelControl.
private  javax.swing.JPanel getPanelCurrent()
          This method initialises panelCurrent.
private  javax.swing.JPanel getPanelFilter()
          This method initialises panelFilter.
private  javax.swing.JPanel getPanelGenre()
          This method initialises panelGenre.
private  javax.swing.JPanel getPanelLibrary()
          This method initialises panelGroup.
private  javax.swing.JPanel getPanelPlayer()
          This method initialises panelPlayer.
private  javax.swing.JPanel getPanelPlaylist()
          This method initialises panelPlaylist.
private  javax.swing.JPanel getPanelSongs()
          This method initialises panelSongs.
private  javax.swing.JPanel getPanelStatus()
          This method initialises panelStatus.
private  javax.swing.JPanel getPanelWindow()
          This method initialises panelWindow
private  javax.swing.JScrollPane getScrollAlbum()
          This method initialises scrollAlbum.
private  javax.swing.JScrollPane getScrollArtist()
          This method initialises scrollArtist.
private  javax.swing.JScrollPane getScrollCurrent()
          This method initialises scrollCurrent.
private  javax.swing.JScrollPane getScrollGenre()
          This method initialises scrollGenre.
private  javax.swing.JScrollPane getScrollPlaylist()
          This method initialises scrollPlaylist.
private  javax.swing.JScrollPane getScrollSongs()
          This method initialises scrollSongs.
private  javax.swing.JSplitPane getSplitGlobal()
          This method initialises splitGlobal.
private  javax.swing.JComponent getSplitLibrary()
          This method initialises splitLibrary.
private  javax.swing.JComponent getSplitLists()
          This method initialises splitLists.
private  javax.swing.JLabel getStatusRuntime()
          This method initialises statusRuntime.
private  javax.swing.JLabel getStatusSelect()
          This method initialises statusSelect.
private  javax.swing.JLabel getStatusSongs()
          This method initialises statusSongs.
private  javax.swing.JTable getTableAlbum()
          This method initialises tableAlbum.
private  javax.swing.JTable getTableArtist()
          This method initialises tableArtist.
private  javax.swing.JTable getTableCurrent()
          This method initialises tableCurrent.
private  javax.swing.JTable getTableGenre()
          This method initialises tableGenre.
private  javax.swing.JTable getTableSongs()
          This method initialises tableSongs.
private  javax.swing.JTree getTreePlaylist()
          This method initialises tablePlaylist.
private  void initFrame()
          This method initialises this
 void initUpdate(Ledger logger, Comptroller manager, Updater watcher, Pendulum clock, Status info, Playlist lists, Playback control, Options modes)
          This method establishes the basic interface population and interaction capability.
 void setPanelStatus(java.util.Map<java.lang.String,java.lang.String> status)
          This method alters status elements within the JPanel bearing its name.
 void setStatusRuntime(java.lang.String text)
          Sets the text value of the statsRuntime JLabel instance.
 void setStatusSelect(java.lang.String text)
          Sets the text value of the statsSelect JLabel instance.
 void setStatusSongs(java.lang.String text)
          Sets the text value of the statsSongs JLabel instance.
 void setTableAlbum(java.lang.Object[][] contents)
          This method alters tableAlbum's data model.
 void setTableArtist(java.lang.Object[][] contents)
          This method alters tableArtist's data model.
 void setTableCurrent(java.lang.Object[][] contents, int cols)
          This method alters tableCurrent's data model.
 void setTableGenre(java.lang.Object[][] contents)
          This method alters tableGenre's data model.
 void setTableSongs(java.lang.Object[][] contents, int cols)
          This method alters tableSongs's data model.
 void setTreePlaylist(LyraMutableTreeNode node)
          Replaces the existing tree with a newly generated variant.
 void setVisible(boolean state)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

jContentPane

private javax.swing.JPanel jContentPane

splitGlobal

private javax.swing.JSplitPane splitGlobal

panelControl

private javax.swing.JPanel panelControl

barSearch

private javax.swing.JToolBar barSearch

panelLibrary

private javax.swing.JPanel panelLibrary

headerLibrary

private javax.swing.JButton headerLibrary

splitLibrary

private javax.swing.JComponent splitLibrary

panelSongs

private javax.swing.JPanel panelSongs

scrollSongs

private javax.swing.JScrollPane scrollSongs

tableSongs

private javax.swing.JTable tableSongs

panelFilter

private javax.swing.JPanel panelFilter

panelArtist

private javax.swing.JPanel panelArtist

scrollArtist

private javax.swing.JScrollPane scrollArtist

tableArtist

private javax.swing.JTable tableArtist

panelAlbum

private javax.swing.JPanel panelAlbum

scrollAlbum

private javax.swing.JScrollPane scrollAlbum

tableAlbum

private javax.swing.JTable tableAlbum

panelGenre

private javax.swing.JPanel panelGenre

scrollGenre

private javax.swing.JScrollPane scrollGenre

tableGenre

private javax.swing.JTable tableGenre

panelPlayer

private javax.swing.JPanel panelPlayer

panelWindow

private javax.swing.JPanel panelWindow

iconResize

private javax.swing.JLabel iconResize

splitLists

private javax.swing.JComponent splitLists

panelPlaylist

private javax.swing.JPanel panelPlaylist

headerPlaylists

private javax.swing.JButton headerPlaylists

scrollPlaylist

private javax.swing.JScrollPane scrollPlaylist

treePlaylist

private javax.swing.JTree treePlaylist

panelPlaylistControl

private javax.swing.JPanel panelPlaylistControl

panelCurrent

private javax.swing.JPanel panelCurrent

headerCurrent

private javax.swing.JButton headerCurrent

scrollCurrent

private javax.swing.JScrollPane scrollCurrent

tableCurrent

private javax.swing.JTable tableCurrent

panelStatus

private javax.swing.JPanel panelStatus

labelSongs

private javax.swing.JLabel labelSongs

labelRuntime

private javax.swing.JLabel labelRuntime

labelSelect

private javax.swing.JLabel labelSelect

statusSongs

private javax.swing.JLabel statusSongs

statusRuntime

private javax.swing.JLabel statusRuntime

statusSelect

private javax.swing.JLabel statusSelect

panelCurrentControl

private javax.swing.JPanel panelCurrentControl

buttonShuffle

private javax.swing.JButton buttonShuffle

buttonSave

private javax.swing.JButton buttonSave

buttonRemove

private javax.swing.JButton buttonRemove

buttonDelete

private javax.swing.JButton buttonDelete

buttonClear

private javax.swing.JButton buttonClear

Logger

private Ledger Logger

Manager

private Comptroller Manager

Watcher

private Updater Watcher

Info

private Status Info

Lists

private Playlist Lists

Control

private Playback Control

Modes

private Options Modes

Lang

private java.util.Map<java.lang.String,java.lang.String> Lang

Global

private java.util.Map<java.lang.String,java.lang.String> Global

Interface

private PlayerOrganiserFrame.Interact Interface

Dragger

private PlayerOrganiserFrame.SourceDragger Dragger

Dropper

private PlayerOrganiserFrame.SourceDropper Dropper

TimeElapsedRenderer

private DateTableCellRenderer TimeElapsedRenderer

RowRenderer

private CustomColorRenderer RowRenderer

RatingRenderer

private RatingCellRenderer RatingRenderer

CurrentPositionRenderer

private PositionCellRenderer CurrentPositionRenderer

CurrentRowRenderer

private CustomColorRenderer CurrentRowRenderer

CurrentTimeElapsedRenderer

private DateTableCellRenderer CurrentTimeElapsedRenderer

PlayerDisplay

private PlayerPanel PlayerDisplay

Enabled

private java.util.Set<java.lang.String> Enabled

Source

private java.awt.Frame Source

BlindUpdate

private boolean BlindUpdate

RUNTIME_DEF

private static final java.lang.String RUNTIME_DEF
See Also:
Constant Field Values

SELECT_DEF

private static final java.lang.String SELECT_DEF
See Also:
Constant Field Values

SONGS_DEF

private static final java.lang.String SONGS_DEF
See Also:
Constant Field Values

SONG_FILE

private static final int SONG_FILE
See Also:
Constant Field Values

SONG_RATING

private static final int SONG_RATING
See Also:
Constant Field Values

SONG_TIME

private static final int SONG_TIME
See Also:
Constant Field Values

CURRENT_POSITION

private static final int CURRENT_POSITION
See Also:
Constant Field Values

CURRENT_TIME

private static final int CURRENT_TIME
See Also:
Constant Field Values

CLASS

private static final java.lang.String CLASS
See Also:
Constant Field Values
Constructor Detail

PlayerOrganiserFrame

public PlayerOrganiserFrame(java.util.Map<java.lang.String,java.lang.String> lang,
                            java.util.Map<java.lang.String,java.lang.String> global)
Main constructor class for the application itself. The only difference from the default constructor is a language element which will permit a base construction of the skeleton.

Parameters:
lang - Language Map for language independence.
global - Global settings for the application.
Method Detail

setVisible

public void setVisible(boolean state)
Overrides:
setVisible in class java.awt.Window

initFrame

private void initFrame()
This method initialises this


initUpdate

public void initUpdate(Ledger logger,
                       Comptroller manager,
                       Updater watcher,
                       Pendulum clock,
                       Status info,
                       Playlist lists,
                       Playback control,
                       Options modes)
This method establishes the basic interface population and interaction capability. This is what will make the song filtering and playlist management possible.

Parameters:
logger - Ledger instances for debugging and information.
manager - Database access manager instance.
watcher - Updater instance to be notified when things change.
clock - Pendulum instance to provide updates to song minutes.
info - Host status instance.
lists - Playlist instance which controls play lists.
control - Playback control instance.
modes - Options and settings on the host.

getJContentPane

private javax.swing.JPanel getJContentPane()
This method initialises jContentPane. Core elements added here are:

Returns:
javax.swing.JPanel

getBarSearch

private javax.swing.JToolBar getBarSearch()
This method initialises barSearch. Contains the basic capability for enabling more advanced searches of the data set.

Returns:
javax.swing.JToolBar

getSplitLibrary

private javax.swing.JComponent getSplitLibrary()
This method initialises splitLibrary. An instance of JSplitPane which provides a space for both panelFiler a song filter and panelSongs which outlines the resulting songs.

Returns:
javax.swing.JComponent

getPanelSongs

private javax.swing.JPanel getPanelSongs()
This method initialises panelSongs. Container panel which contains a JScrollPane and within a JTable containing table information.

Returns:
javax.swing.JPanel

getPanelFilter

private javax.swing.JPanel getPanelFilter()
This method initialises panelFilter. This panel contains three other JPanel instances which deal with filtering by:

Returns:
javax.swing.JPanel

getPanelArtist

private javax.swing.JPanel getPanelArtist()
This method initialises panelArtist. Panel witch associated JScrollPane and JList instances.

Returns:
javax.swing.JPanel

getPanelAlbum

private javax.swing.JPanel getPanelAlbum()
This method initialises panelAlbum. Panel with associated JScrollPane and JList instances.

Returns:
javax.swing.JPanel

getPanelGenre

private javax.swing.JPanel getPanelGenre()
This method initialises panelGenre. Panel with associated JScrollPane and JList instances.

Returns:
javax.swing.JPanel

getPanelControl

private javax.swing.JPanel getPanelControl()
This method initialises panelControl. Panel which deals mostly with importing in panelPlayer but will also bring in panelWindow in order to implement window resizing capabilities.

Returns:
javax.swing.JPanel

getSplitGlobal

private javax.swing.JSplitPane getSplitGlobal()
This method initialises splitGlobal. Main JSplitPane which separates the play/current lists and the library filtering/display.

Returns:
javax.swing.JSplitPane

getSplitLists

private javax.swing.JComponent getSplitLists()
This method initialises splitLists. JSplitPane which exists to separate playlist selection and the currently playing song list.

Returns:
javax.swing.JComponent

getPanelPlaylist

private javax.swing.JPanel getPanelPlaylist()
This method initialises panelPlaylist. JPanel which deals with the display of play lists.

Returns:
javax.swing.JPanel

getControlPlaylist

private javax.swing.JPanel getControlPlaylist()
This method initialises panelPlaylistControl. This panel is responsible for basic control over the playlist tree.

Returns:
javax.swing.JPanel

getPanelCurrent

private javax.swing.JPanel getPanelCurrent()
This method initialises panelCurrent. JPanel which deals with the display of currently playing songs.

Returns:
javax.swing.JPanel

getScrollPlaylist

private javax.swing.JScrollPane getScrollPlaylist()
This method initialises scrollPlaylist. JScrollPane method which generates the scroll pane and associated content.

Returns:
javax.swing.JScrollPane

getScrollCurrent

private javax.swing.JScrollPane getScrollCurrent()
This method initialises scrollCurrent. JScrollPane method which generates the scroll pane and associated content.

Returns:
javax.swing.JScrollPane

getHeaderPlaylists

private javax.swing.JButton getHeaderPlaylists()
This method initialises headerPlaylists. Generates a title element for the Playlist selection section.

Returns:
javax.swing.JButton

getHeaderCurrent

private javax.swing.JButton getHeaderCurrent()
This method initialises headerCurrent. Generates a title element for the Playlist selection section.

Returns:
javax.swing.JButton

getPanelLibrary

private javax.swing.JPanel getPanelLibrary()
This method initialises panelGroup. Main container for the Library area in general, contains the header, content split and a status bar.

Returns:
javax.swing.JPanel

getHeaderLibrary

private javax.swing.JButton getHeaderLibrary()
This method initialises headerGroup. Generates a title element for the Playlist selection section.

Returns:
javax.swing.JButton

getPanelStatus

private javax.swing.JPanel getPanelStatus()
This method initialises panelStatus. An instance of JPanel which contains certain pieces of information related to the information displayed.

Returns:
javax.swing.JPanel

setPanelStatus

public void setPanelStatus(java.util.Map<java.lang.String,java.lang.String> status)
This method alters status elements within the JPanel bearing its name.

Parameters:
status - Map of strings containing all information for status display.

getTableCurrent

private javax.swing.JTable getTableCurrent()
This method initialises tableCurrent. JTable containing the content structure of section.

Returns:
javax.swing.JTable

setTableCurrent

public void setTableCurrent(java.lang.Object[][] contents,
                            int cols)
This method alters tableCurrent's data model. A JTable containing the content structure of section.

Parameters:
contents - Multi-dimensional array containing new content.
cols - Amount of columns in the group.

getTreePlaylist

private javax.swing.JTree getTreePlaylist()
This method initialises tablePlaylist. JTable containing the content structure of section.

Returns:
javax.swing.JTree

setTreePlaylist

public void setTreePlaylist(LyraMutableTreeNode node)
Replaces the existing tree with a newly generated variant.

Parameters:
node - Node structure set to replace existing.

getTableArtist

private javax.swing.JTable getTableArtist()
This method initialises tableArtist. JTable containing the content structure of section.

Returns:
javax.swing.JTable

getScrollArtist

private javax.swing.JScrollPane getScrollArtist()
This method initialises scrollArtist. JScrollPane method which generates the scroll pane and associated content.

Returns:
javax.swing.JScrollPane

setTableArtist

public void setTableArtist(java.lang.Object[][] contents)
This method alters tableArtist's data model. A JTable containing the content structure of section.

Parameters:
contents - Multi-dimensional array containing new content.

getScrollAlbum

private javax.swing.JScrollPane getScrollAlbum()
This method initialises scrollAlbum. JScrollPane method which generates the scroll pane and associated content.

Returns:
javax.swing.JScrollPane

getScrollGenre

private javax.swing.JScrollPane getScrollGenre()
This method initialises scrollGenre. JScrollPane method which generates the scroll pane and associated content.

Returns:
javax.swing.JScrollPane

setTableGenre

public void setTableGenre(java.lang.Object[][] contents)
This method alters tableGenre's data model. A JTable containing the content structure of section.

Parameters:
contents - Multi-dimensional array containing new content.

getScrollSongs

private javax.swing.JScrollPane getScrollSongs()
This method initialises scrollSongs. JScrollPane method which generates the scroll pane and associated content.

Returns:
javax.swing.JScrollPane

getTableAlbum

private javax.swing.JTable getTableAlbum()
This method initialises tableAlbum. JTable containing the content structure of section.

Returns:
javax.swing.JTable

setTableAlbum

public void setTableAlbum(java.lang.Object[][] contents)
This method alters tableAlbum's data model. A JTable containing the content structure of section.

Parameters:
contents - Multi-dimensional array containing new content.

getTableGenre

private javax.swing.JTable getTableGenre()
This method initialises tableGenre. JTable containing the content structure of section.

Returns:
javax.swing.JTable

getTableSongs

private javax.swing.JTable getTableSongs()
This method initialises tableSongs. JTable containing the content structure of section.

Returns:
javax.swing.JTable

setTableSongs

public void setTableSongs(java.lang.Object[][] contents,
                          int cols)
This method alters tableSongs's data model. A JTable containing the content structure of section.

Parameters:
contents - Multi-dimensional array containing new content.
cols - Amount of columns in the group.

getPanelPlayer

private javax.swing.JPanel getPanelPlayer()
This method initialises panelPlayer. JTable containing the content structure of section.

Returns:
javax.swing.JTable

getPanelWindow

private javax.swing.JPanel getPanelWindow()
This method initialises panelWindow

Returns:
javax.swing.JPanel

getLabelSelect

private javax.swing.JLabel getLabelSelect()
This method initialises labelSelect. Status information amplification.

Returns:
javax.swing.JLabel

getLabelRuntime

private javax.swing.JLabel getLabelRuntime()
This method initialises labelRuntime. Status information amplification.

Returns:
javax.swing.JLabel

getLabelSongs

private javax.swing.JLabel getLabelSongs()
This method initialises labelSongs. Status information amplification.

Returns:
javax.swing.JLabel

getIconResize

private javax.swing.JLabel getIconResize()
This method initialises iconResize.

Returns:
javax.swing.JLabel

getStatusSelect

private javax.swing.JLabel getStatusSelect()
This method initialises statusSelect. Status information amplification.

Returns:
javax.swing.JLabel

setStatusSelect

public void setStatusSelect(java.lang.String text)
Sets the text value of the statsSelect JLabel instance.

Parameters:
text - String containing new text to replace.

getStatusRuntime

private javax.swing.JLabel getStatusRuntime()
This method initialises statusRuntime. Status information amplification.

Returns:
javax.swing.JLabel

setStatusRuntime

public void setStatusRuntime(java.lang.String text)
Sets the text value of the statsRuntime JLabel instance.

Parameters:
text - String containing new text to replace.

getStatusSongs

private javax.swing.JLabel getStatusSongs()
This method initialises statusSongs. Status information amplification.

Returns:
javax.swing.JStatus

setStatusSongs

public void setStatusSongs(java.lang.String text)
Sets the text value of the statsSongs JLabel instance.

Parameters:
text - String containing new text to replace.

getControlCurrent

private javax.swing.JPanel getControlCurrent()
This method initialises panelControl. This panel is responsible for basic control over the current playlist.

Returns:
javax.swing.JPanel

getButtonShuffle

private javax.swing.JButton getButtonShuffle()
This method initialises buttonShuffle.

Returns:
javax.swing.JButton

getButtonRemove

private javax.swing.JButton getButtonRemove()
This method initialises buttonRemove.

Returns:
javax.swing.JButton

getButtonDelete

private javax.swing.JButton getButtonDelete()
This method initialises buttonDelete.

Returns:
javax.swing.JButton

getButtonClear

private javax.swing.JButton getButtonClear()
This method initialises buttonClear.

Returns:
javax.swing.JButton

getButtonSave

private javax.swing.JButton getButtonSave()
This method initialises buttonSave.

Returns:
javax.swing.JButton