org.lyra.Interface
Class LyraTrayIcon.Interact

java.lang.Object
  extended by org.lyra.Interface.LyraTrayIcon.Interact
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener, UpdateListener
Enclosing class:
LyraTrayIcon

private class LyraTrayIcon.Interact
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.MouseListener, UpdateListener

The code separation from the user interface. This Class handles all of the complexities of making the interface interactive.

Author:
Martin Foster

Field Summary
private  java.util.List<java.util.Map<java.lang.String,java.lang.String>> Playlist
           
private  java.util.Map<java.lang.String,java.lang.String> State
           
 
Constructor Summary
private LyraTrayIcon.Interact()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void hostUpdated(UpdateEvent update)
          Updates of host information as passed through this specific method.
 void initSettings()
          The initial settings method is designed specifically to push elements into place.
 void mouseClicked(java.awt.event.MouseEvent evt)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
private  void updatePlayer()
          Updates player information on the system tray to match current playback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

State

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

Playlist

private java.util.List<java.util.Map<java.lang.String,java.lang.String>> Playlist
Constructor Detail

LyraTrayIcon.Interact

private LyraTrayIcon.Interact()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

hostUpdated

public void hostUpdated(UpdateEvent update)
Description copied from interface: UpdateListener
Updates of host information as passed through this specific method. Multiple updates can be triggered from this, so it becomes important to check for a specific update if necessary in order to avoid undue

Specified by:
hostUpdated in interface UpdateListener
Parameters:
update - Update notification method.
See Also:
UpdateEvent

updatePlayer

private void updatePlayer()
Updates player information on the system tray to match current playback.


initSettings

public void initSettings()
The initial settings method is designed specifically to push elements into place.


mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener