org.lyra.Interface
Class LyraTrayIcon.PopupLyra

java.lang.Object
  extended by java.awt.MenuComponent
      extended by java.awt.MenuItem
          extended by java.awt.Menu
              extended by java.awt.PopupMenu
                  extended by org.lyra.Interface.LyraTrayIcon.PopupLyra
All Implemented Interfaces:
java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
Enclosing class:
LyraTrayIcon

private class LyraTrayIcon.PopupLyra
extends java.awt.PopupMenu

Creates the popup menu structure necessary to display along with the system tray icon.

Author:
Martin Foster

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.PopupMenu
java.awt.PopupMenu.AccessibleAWTPopupMenu
 
Nested classes/interfaces inherited from class java.awt.Menu
java.awt.Menu.AccessibleAWTMenu
 
Nested classes/interfaces inherited from class java.awt.MenuItem
java.awt.MenuItem.AccessibleAWTMenuItem
 
Nested classes/interfaces inherited from class java.awt.MenuComponent
java.awt.MenuComponent.AccessibleAWTMenuComponent
 
Field Summary
private  java.awt.MenuItem itemExit
           
private  java.awt.MenuItem itemNext
           
private  java.awt.MenuItem itemPlay
           
private  java.awt.MenuItem itemPrev
           
private  java.awt.MenuItem itemShow
           
private  java.awt.MenuItem itemStop
           
private static long serialVersionUID
           
 
Constructor Summary
LyraTrayIcon.PopupLyra()
          Base constructor for the class.
 
Method Summary
private  java.awt.MenuItem getItemExit()
          Returns the option menu to display the Player/Organiser window.
private  java.awt.MenuItem getItemNext()
          Permits playing the next song in the Current Playlist.
private  java.awt.MenuItem getItemPlay()
          Permits a user to pause/play the playback.
private  java.awt.MenuItem getItemPrev()
          Permits playing the previous song in the Current Playlist.
private  java.awt.MenuItem getItemShow()
          Returns the option menu to display the Player/Organiser window.
private  java.awt.MenuItem getItemStop()
          Permits a user to stop the playback.
private  void setItemPlay(java.lang.String label)
          Sets the label to the appropriate text.
 void setItemPlayAsPause()
          Adjusts the label to indicate that we can pause playback.
 void setItemPlayAsPlay()
          Adjusts the label to indicate that we can begin playback.
 
Methods inherited from class java.awt.PopupMenu
addNotify, getAccessibleContext, getParent, show
 
Methods inherited from class java.awt.Menu
add, add, addSeparator, countItems, getItem, getItemCount, insert, insert, insertSeparator, isTearOff, paramString, remove, remove, removeAll, removeNotify
 
Methods inherited from class java.awt.MenuItem
addActionListener, deleteShortcut, disable, disableEvents, enable, enable, enableEvents, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcut
 
Methods inherited from class java.awt.MenuComponent
dispatchEvent, getFont, getName, getPeer, getTreeLock, postEvent, setFont, setName, toString
 
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

itemShow

private java.awt.MenuItem itemShow

itemPlay

private java.awt.MenuItem itemPlay

itemStop

private java.awt.MenuItem itemStop

itemNext

private java.awt.MenuItem itemNext

itemPrev

private java.awt.MenuItem itemPrev

itemExit

private java.awt.MenuItem itemExit
Constructor Detail

LyraTrayIcon.PopupLyra

public LyraTrayIcon.PopupLyra()
Base constructor for the class. Instance is a populated popup menu ready for inclusion.

Method Detail

getItemShow

private java.awt.MenuItem getItemShow()
Returns the option menu to display the Player/Organiser window.

Returns:
java.awt.MenuItem

getItemPlay

private java.awt.MenuItem getItemPlay()
Permits a user to pause/play the playback.

Returns:
java.awt.MenuItem

setItemPlay

private void setItemPlay(java.lang.String label)
Sets the label to the appropriate text.

Parameters:
label - String containing label for display.

setItemPlayAsPlay

public void setItemPlayAsPlay()
Adjusts the label to indicate that we can begin playback.


setItemPlayAsPause

public void setItemPlayAsPause()
Adjusts the label to indicate that we can pause playback.


getItemStop

private java.awt.MenuItem getItemStop()
Permits a user to stop the playback.

Returns:
java.awt.MenuItem

getItemNext

private java.awt.MenuItem getItemNext()
Permits playing the next song in the Current Playlist.

Returns:
java.awt.MenuItem

getItemPrev

private java.awt.MenuItem getItemPrev()
Permits playing the previous song in the Current Playlist.

Returns:
java.awt.MenuItem

getItemExit

private java.awt.MenuItem getItemExit()
Returns the option menu to display the Player/Organiser window.

Returns:
java.awt.MenuItem