|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.lyra.Interface.PlayerOrganiserMenu
public class PlayerOrganiserMenu
The menu structure can have a very complex amount of elements attached to it that would invariably render the primary display a more complex code element. This separates the menu and provides direct processing of choices made by users.
Nested Class Summary | |
---|---|
private class |
PlayerOrganiserMenu.Interact
The code separation from the user interface. |
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.JCheckBoxMenuItem |
checkMainSearch
|
private javax.swing.JCheckBoxMenuItem |
checkOptionsConsume
|
private javax.swing.JCheckBoxMenuItem |
checkOptionsMute
|
private javax.swing.JCheckBoxMenuItem |
checkOptionsRandom
|
private javax.swing.JCheckBoxMenuItem |
checkOptionsRepeat
|
private javax.swing.JCheckBoxMenuItem |
checkOptionsSingle
|
private Pendulum |
Clock
|
private Playback |
Control
|
private CrossfadeMenu |
controlCrossfade
|
private VolumeMenu |
controlVolume
|
private java.util.Set<java.lang.String> |
Enabled
|
private java.util.Map<java.lang.String,java.lang.String> |
Global
|
private Status |
Info
|
private PlayerOrganiserMenu.Interact |
Interface
|
private javax.swing.JMenuItem |
itemHelpAbout
|
private javax.swing.JMenuItem |
itemHelpDisplay
|
private javax.swing.JMenuItem |
itemHelpFrequently
|
private javax.swing.JMenuItem |
itemHelpInformation
|
private javax.swing.JMenuItem |
itemMainCompact
|
private javax.swing.JMenuItem |
itemMainQuit
|
private javax.swing.JMenuItem |
itemMainScan
|
private javax.swing.JMenuItem |
itemMainStatistics
|
private javax.swing.JMenuItem |
itemOptionsPreferences
|
private javax.swing.JMenuItem |
itemPlaybackClear
|
private javax.swing.JMenuItem |
itemPlaybackNext
|
private javax.swing.JMenuItem |
itemPlaybackPlay
|
private javax.swing.JMenuItem |
itemPlaybackPrevious
|
private javax.swing.JMenuItem |
itemPlaybackShuffle
|
private javax.swing.JMenuItem |
itemPlaybackStop
|
private javax.swing.JPanel |
jContentPane
|
private java.util.Map<java.lang.String,java.lang.String> |
Lang
|
private Playlist |
Lists
|
private Ledger |
Logger
|
private Comptroller |
Manager
|
private javax.swing.JMenu |
menuCrossfade
|
private javax.swing.JMenuBar |
menuOrganiser
|
private javax.swing.JMenu |
menuVolume
|
private Options |
Modes
|
private java.awt.Window |
Parent
|
private javax.swing.JToolBar |
Search
|
private static long |
serialVersionUID
|
private javax.swing.JMenu |
subHelp
|
private javax.swing.JMenu |
subMain
|
private javax.swing.JMenu |
subOptions
|
private javax.swing.JMenu |
subPlayback
|
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 | |
---|---|
PlayerOrganiserMenu(Ledger logger,
Comptroller manager,
Updater watcher,
Pendulum clock,
Status info,
Playback control,
Playlist lists,
Options modes,
java.util.Map<java.lang.String,java.lang.String> lang,
java.util.Map<java.lang.String,java.lang.String> global,
javax.swing.JToolBar search,
java.awt.Window parent)
Primary application constructor which is passed all of the necessary elements in order to display settings and handle interaction. |
Method Summary | |
---|---|
private javax.swing.JCheckBoxMenuItem |
getCheckMainSearch()
This method initialises checkMainSearch. |
private javax.swing.JCheckBoxMenuItem |
getCheckOptionsConsume()
This method initialises checkOptionsConsume. |
private javax.swing.JCheckBoxMenuItem |
getCheckOptionsMute()
This method initialises checkOptionsMute. |
private javax.swing.JCheckBoxMenuItem |
getCheckOptionsRandom()
This method initialises checkOptionsRandom. |
private javax.swing.JCheckBoxMenuItem |
getCheckOptionsRepeat()
This method initialises checkOptionsRepeat. |
private javax.swing.JCheckBoxMenuItem |
getCheckOptionsSingle()
This method initialises checkOptionsSingle. |
private javax.swing.JMenuItem |
getItemHelpAbout()
This method initialises itemHelpAbout. |
private javax.swing.JMenuItem |
getItemHelpDisplay()
This method initialises itemHelpDisplay. |
private javax.swing.JMenuItem |
getItemHelpFrequently()
This method initialises itemHelpFrequently. |
private javax.swing.JMenuItem |
getItemHelpInformation()
This method initialises itemMainSwtich. |
private javax.swing.JMenuItem |
getItemMainCompact()
This method initialises itemMainCompact. |
private javax.swing.JMenuItem |
getItemMainQuit()
This method initialises itemMainQuit. |
private javax.swing.JMenuItem |
getItemMainScan()
This method initialises itemMainScan. |
private javax.swing.JMenuItem |
getItemMainStatistics()
This method initialises itemMainSwtich. |
private javax.swing.JMenuItem |
getItemOptionsPreferences()
This method initialises itemOptionsPreferences. |
private javax.swing.JMenuItem |
getItemPlaybackClear()
This method initialises itemPlaybackClear. |
private javax.swing.JMenuItem |
getItemPlaybackNext()
This method initialises itemPlaybackNext. |
private javax.swing.JMenuItem |
getItemPlaybackPlay()
This method initialises itemPlaybackPlay. |
private javax.swing.JMenuItem |
getItemPlaybackPrevious()
This method initialises itemPlaybackPrevious. |
private javax.swing.JMenuItem |
getItemPlaybackShuffle()
This method initialises itemPlaybackShuffle. |
private javax.swing.JMenuItem |
getItemPlaybackStop()
This method initialises itemPlaybackStop. |
private javax.swing.JPanel |
getJContentPane()
This method initialises jContentPane. |
private javax.swing.JMenu |
getMenuCrossfade()
Crossfade control menu structure and interface. |
private javax.swing.JMenuBar |
getMenuOrganiser()
This method initialises menuOrganiser. |
private javax.swing.JMenu |
getMenuVolume()
Volume control menu structure and interface. |
private javax.swing.JMenu |
getSubHelp()
This method initialises subHelp. |
private javax.swing.JMenu |
getSubMain()
This method initialises subMain, the main menu structure which provides the capability to exit the application, rescan the host for new songs and switch hosts. |
private javax.swing.JMenu |
getSubOptions()
This method initialises subOptions. |
private javax.swing.JMenu |
getSubPlayback()
This method initialises subPlayback. |
private void |
initFrame()
Generates all of the necessary interface elements for display. |
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, setVisible, 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 |
---|
private static final long serialVersionUID
private javax.swing.JPanel jContentPane
private javax.swing.JMenuBar menuOrganiser
private javax.swing.JMenu subMain
private javax.swing.JMenuItem itemHelpInformation
private javax.swing.JMenuItem itemMainStatistics
private javax.swing.JMenuItem itemMainScan
private javax.swing.JMenuItem itemMainCompact
private javax.swing.JCheckBoxMenuItem checkMainSearch
private javax.swing.JMenuItem itemMainQuit
private javax.swing.JMenu subOptions
private javax.swing.JCheckBoxMenuItem checkOptionsConsume
private javax.swing.JCheckBoxMenuItem checkOptionsRandom
private javax.swing.JCheckBoxMenuItem checkOptionsRepeat
private javax.swing.JCheckBoxMenuItem checkOptionsSingle
private javax.swing.JCheckBoxMenuItem checkOptionsMute
private javax.swing.JMenuItem itemOptionsPreferences
private javax.swing.JMenu subPlayback
private javax.swing.JMenuItem itemPlaybackPrevious
private javax.swing.JMenuItem itemPlaybackStop
private javax.swing.JMenuItem itemPlaybackPlay
private javax.swing.JMenuItem itemPlaybackNext
private javax.swing.JMenuItem itemPlaybackShuffle
private javax.swing.JMenuItem itemPlaybackClear
private javax.swing.JMenu subHelp
private javax.swing.JMenuItem itemHelpDisplay
private javax.swing.JMenuItem itemHelpFrequently
private javax.swing.JMenuItem itemHelpAbout
private javax.swing.JMenu menuVolume
private VolumeMenu controlVolume
private javax.swing.JMenu menuCrossfade
private CrossfadeMenu controlCrossfade
private java.util.Map<java.lang.String,java.lang.String> Lang
private java.util.Map<java.lang.String,java.lang.String> Global
private Ledger Logger
private Comptroller Manager
private Updater Watcher
private Pendulum Clock
private Status Info
private Options Modes
private Playback Control
private Playlist Lists
private PlayerOrganiserMenu.Interact Interface
private javax.swing.JToolBar Search
private java.awt.Window Parent
private java.util.Set<java.lang.String> Enabled
Constructor Detail |
---|
public PlayerOrganiserMenu(Ledger logger, Comptroller manager, Updater watcher, Pendulum clock, Status info, Playback control, Playlist lists, Options modes, java.util.Map<java.lang.String,java.lang.String> lang, java.util.Map<java.lang.String,java.lang.String> global, javax.swing.JToolBar search, java.awt.Window parent)
logger
- Ledger instances for debugging and information.manager
- Database access manager instance.watcher
- Updater class for receiving updates.clock
- Pendulum instance for time updates.info
- Host status instance.control
- Playback control instance.lists
- Playlist control.modes
- Options handling instance.lang
- Language map for independent language elements.global
- Global settings and configuration options.search
- Search tool bar used to set visibility.parent
- Parent window to block.Method Detail |
---|
private void initFrame()
private javax.swing.JPanel getJContentPane()
private javax.swing.JMenuBar getMenuOrganiser()
private javax.swing.JMenu getSubMain()
private javax.swing.JMenu getSubOptions()
private javax.swing.JMenu getSubPlayback()
private javax.swing.JMenu getSubHelp()
private javax.swing.JMenuItem getItemMainCompact()
private javax.swing.JMenuItem getItemMainQuit()
private javax.swing.JMenuItem getItemHelpAbout()
private javax.swing.JMenuItem getItemHelpDisplay()
private javax.swing.JMenuItem getItemPlaybackPrevious()
private javax.swing.JMenuItem getItemPlaybackStop()
private javax.swing.JMenuItem getItemPlaybackPlay()
private javax.swing.JMenuItem getItemPlaybackNext()
private javax.swing.JMenuItem getItemPlaybackShuffle()
private javax.swing.JMenuItem getItemPlaybackClear()
private javax.swing.JMenuItem getItemOptionsPreferences()
private javax.swing.JMenuItem getItemMainScan()
private javax.swing.JCheckBoxMenuItem getCheckOptionsConsume()
private javax.swing.JCheckBoxMenuItem getCheckOptionsRandom()
private javax.swing.JCheckBoxMenuItem getCheckOptionsRepeat()
private javax.swing.JCheckBoxMenuItem getCheckOptionsSingle()
private javax.swing.JCheckBoxMenuItem getCheckMainSearch()
private javax.swing.JMenuItem getItemHelpFrequently()
private javax.swing.JMenuItem getItemHelpInformation()
private javax.swing.JMenuItem getItemMainStatistics()
private javax.swing.JCheckBoxMenuItem getCheckOptionsMute()
private javax.swing.JMenu getMenuCrossfade()
private javax.swing.JMenu getMenuVolume()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |