org.lyra.Interface.Options
Class LastDotFmPanel.Interact

java.lang.Object
  extended by org.lyra.Interface.Options.LastDotFmPanel.Interact
All Implemented Interfaces:
java.awt.event.MouseListener, java.lang.Runnable, java.util.EventListener
Enclosing class:
LastDotFmPanel

private class LastDotFmPanel.Interact
extends java.lang.Object
implements java.awt.event.MouseListener, java.lang.Runnable

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.lang.Thread myThread
           
 
Constructor Summary
private LastDotFmPanel.Interact()
           
 
Method Summary
 void fetchSessions()
          Fetching material off of the Internet can be slow.
private  void loadBrowser(java.lang.String link)
          There are two elements that require a browser to load up in order to proceed.
 void mouseClicked(java.awt.event.MouseEvent evt)
           
 void mouseEntered(java.awt.event.MouseEvent evt)
           
 void mouseExited(java.awt.event.MouseEvent evt)
           
 void mousePressed(java.awt.event.MouseEvent evt)
           
 void mouseReleased(java.awt.event.MouseEvent evt)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myThread

private java.lang.Thread myThread
Constructor Detail

LastDotFmPanel.Interact

private LastDotFmPanel.Interact()
Method Detail

loadBrowser

private void loadBrowser(java.lang.String link)
There are two elements that require a browser to load up in order to proceed. Since the require a fair amount of similar code we throw it in here.

Parameters:
link - Address to send to browser.

fetchSessions

public void fetchSessions()
Fetching material off of the Internet can be slow. So we cannot rely on its speed nor reliability. We make that happen in a new thread as to not block.


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 evt)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

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

mousePressed

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

mouseReleased

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

run

public void run()
Specified by:
run in interface java.lang.Runnable