org.lyra.Interface
Class PlayerOrganiserMenu.Interact

java.lang.Object
  extended by org.lyra.Interface.PlayerOrganiserMenu.Interact
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.ChangeListener, UpdateListener
Enclosing class:
PlayerOrganiserMenu

private class PlayerOrganiserMenu.Interact
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, 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 static java.lang.String CLASS
           
private  PlayerCompactFrame myCompact
           
private  javax.swing.JFrame myHelp
           
private  StatisticsAndFunctionsDialog myInformation
           
private  ManageOptionDialog myOptions
           
private  DisplayPanel myStatistics
           
private  HelpManager myViewer
           
private  java.util.Map<java.lang.String,java.lang.String> State
           
private  int VolumeLevel
           
 
Constructor Summary
PlayerOrganiserMenu.Interact()
          Stubs constructor class.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void hostUpdated(UpdateEvent update)
          Updates of host information as passed through this specific method.
private  void popupHelp(java.lang.String title, java.lang.String filename)
          Handles the popup and display of help documents.
 void setState()
          Will establish the state of certain elements based on the information gathered from the host.
 void stateChanged(javax.swing.event.ChangeEvent evt)
           
private  void stateMixer()
          Adjusts entries associated mixer elements.
private  void stateOptions()
          Updates elements associated with host options updates.
private  void statePlayer()
          Adjusts the state for elements related to Player events.
private  java.lang.String tempHelp(java.lang.String filename)
          Creates a temporary copy of the file for reading by the PDF viewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VolumeLevel

private int VolumeLevel

State

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

myOptions

private ManageOptionDialog myOptions

myInformation

private StatisticsAndFunctionsDialog myInformation

myStatistics

private DisplayPanel myStatistics

myCompact

private PlayerCompactFrame myCompact

myHelp

private javax.swing.JFrame myHelp

myViewer

private HelpManager myViewer

CLASS

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

PlayerOrganiserMenu.Interact

public PlayerOrganiserMenu.Interact()
Stubs constructor class.

Method Detail

setState

public void setState()
Will establish the state of certain elements based on the information gathered from the host. These settings can only be stored there, which will result in unexpected changes if another client adjusts their settings differently.


stateOptions

private void stateOptions()
Updates elements associated with host options updates.


stateMixer

private void stateMixer()
Adjusts entries associated mixer elements.


statePlayer

private void statePlayer()
Adjusts the state for elements related to Player events.


popupHelp

private void popupHelp(java.lang.String title,
                       java.lang.String filename)
Handles the popup and display of help documents.

Parameters:
title - String title for the window display.
filename - String filename containing PDF to open.

tempHelp

private java.lang.String tempHelp(java.lang.String filename)
Creates a temporary copy of the file for reading by the PDF viewer.

Parameters:
filename - String containing filename to resource.
Returns:
String containing path to temporary file.

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

actionPerformed

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

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent evt)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener