org.lyra.Interface.Options
Class LastDotFmPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.lyra.Interface.Options.LastDotFmPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class LastDotFmPanel
extends javax.swing.JPanel

Certain host features such as consume can be modified from this particular panel. While not necessarily application specific their location is suitable.

Since:
1.0.1
Version:
1.0.5, %Revision, 174%, %LastChangedDate, 27/10/12 3:33PM%
Author:
Martin Foster
See Also:
Serialized Form

Nested Class Summary
private  class LastDotFmPanel.Interact
          The code separation from the user interface.
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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.JTextArea areaAbout
           
private  javax.swing.JTextArea areaClear
           
private  javax.swing.JTextArea areaIntegrate
           
private  javax.swing.JTextArea areaRegister
           
(package private)  java.util.Map<java.lang.String,java.lang.String> Global
           
private  javax.swing.JLabel iconAbout
           
private  LastDotFmPanel.Interact Interface
           
private  javax.swing.JLabel labelClear
           
private  javax.swing.JLabel labelIntegrate
           
private  javax.swing.JLabel labelJoin
           
private  javax.swing.JLabel labelRegister
           
(package private)  java.util.Map<java.lang.String,java.lang.String> Lang
           
(package private)  Ledger Logger
           
private  java.lang.String myToken
           
private  javax.swing.JPanel panelAbout
           
private  javax.swing.JPanel panelAuthorize
           
private  javax.swing.JPanel panelClear
           
private  javax.swing.JPanel panelGroup
           
private  javax.swing.JPanel panelIntegrate
           
private  javax.swing.JPanel panelJoin
           
private  javax.swing.JPanel panelRegister
           
private  javax.swing.JPanel panelSupplemental
           
private  java.awt.Window Parent
           
private  javax.swing.JProgressBar progressSession
           
private  javax.swing.JProgressBar progressToken
           
private static long serialVersionUID
           
private  java.util.Map<java.lang.String,java.lang.String> State
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LastDotFmPanel(Ledger logger, java.util.Map<java.lang.String,java.lang.String> global, java.util.Map<java.lang.String,java.lang.String> lang, java.awt.Window parent)
          Primary constructor for the class with full interactive capabilities.
 
Method Summary
private  javax.swing.JTextArea getAreaAbout()
          This method initialises areaAbout.
private  javax.swing.JTextArea getAreaClear()
          This method initialises areaClear.
private  javax.swing.JTextArea getAreaIntegrate()
          This method initialises areaIntegrate.
private  javax.swing.JTextArea getAreaRegister()
          This method initialises areaRegister.
private  javax.swing.JLabel getIconAbout()
          This method initialises iconAbout.
private  javax.swing.JLabel getLabelClear()
          Produces the hyper link which will be used to generate an action.
private  javax.swing.JLabel getLabelIntegrate()
          Produces the hyper link which will be used to generate an action.
private  javax.swing.JLabel getLabelJoin()
          Produces the hyper link which will be used to generate an action.
private  javax.swing.JLabel getLabelRegister()
          Produces the hyper link which will be used to generate an action.
private  javax.swing.JPanel getPanelAbout()
          This method initialises panelAbout.
private  javax.swing.JPanel getPanelAuthorize()
          This method initialises panelAuthorize.
private  javax.swing.JPanel getPanelClear()
          This method initialises panelClear.
private  javax.swing.JPanel getPanelGroup()
          This method initialises panelGroup.
private  javax.swing.JPanel getPanelIntegrate()
          This method initialises panelIntegrate.
private  javax.swing.JPanel getPanelJoin()
          This method initialises panelJoin.
private  javax.swing.JPanel getPanelRegister()
          This method initialises panelRegister.
private  javax.swing.JPanel getPanelSupplemental()
          This method initialises panelSupplemental.
private  javax.swing.JProgressBar getProgressSession()
          Initialises the progressSession element.
private  javax.swing.JProgressBar getProgressToken()
          Initialises the progressToken element.
 java.util.Map<java.lang.String,java.lang.String> getState()
          Returns the collected state information so that it can be saved once prompted.
private  void initFrame()
          This method inserts the baseline elements as required for the user interface.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

areaAbout

private javax.swing.JTextArea areaAbout

panelAbout

private javax.swing.JPanel panelAbout

iconAbout

private javax.swing.JLabel iconAbout

panelSupplemental

private javax.swing.JPanel panelSupplemental

panelGroup

private javax.swing.JPanel panelGroup

areaClear

private javax.swing.JTextArea areaClear

areaRegister

private javax.swing.JTextArea areaRegister

areaIntegrate

private javax.swing.JTextArea areaIntegrate

progressToken

private javax.swing.JProgressBar progressToken

progressSession

private javax.swing.JProgressBar progressSession

panelRegister

private javax.swing.JPanel panelRegister

panelJoin

private javax.swing.JPanel panelJoin

panelAuthorize

private javax.swing.JPanel panelAuthorize

labelJoin

private javax.swing.JLabel labelJoin

labelRegister

private javax.swing.JLabel labelRegister

panelIntegrate

private javax.swing.JPanel panelIntegrate

labelIntegrate

private javax.swing.JLabel labelIntegrate

panelClear

private javax.swing.JPanel panelClear

labelClear

private javax.swing.JLabel labelClear

Logger

Ledger Logger

Global

java.util.Map<java.lang.String,java.lang.String> Global

Lang

java.util.Map<java.lang.String,java.lang.String> Lang

Interface

private LastDotFmPanel.Interact Interface

Parent

private java.awt.Window Parent

myToken

private java.lang.String myToken

State

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

LastDotFmPanel

public LastDotFmPanel(Ledger logger,
                      java.util.Map<java.lang.String,java.lang.String> global,
                      java.util.Map<java.lang.String,java.lang.String> lang,
                      java.awt.Window parent)
Primary constructor for the class with full interactive capabilities.

Parameters:
logger - Ledger instance for logging of actions.
global - Global settings map.
lang - Language specific map.
parent - Parent window to block when calling.
Method Detail

getState

public java.util.Map<java.lang.String,java.lang.String> getState()
Returns the collected state information so that it can be saved once prompted.

Returns:
Map containing integration elements.

initFrame

private void initFrame()
This method inserts the baseline elements as required for the user interface.


getAreaAbout

private javax.swing.JTextArea getAreaAbout()
This method initialises areaAbout. Contains a very basic blurb on what Last.fm is and what it can bring forth to the user.

Returns:
javax.swing.JTextArea

getAreaClear

private javax.swing.JTextArea getAreaClear()
This method initialises areaClear. Contains a very basic blurb on the ability to clear out integration.

Returns:
javax.swing.JTextArea

getAreaRegister

private javax.swing.JTextArea getAreaRegister()
This method initialises areaRegister. Contains a very basic blurb on what requirements to register prior to integration.

Returns:
javax.swing.JTextArea

getAreaIntegrate

private javax.swing.JTextArea getAreaIntegrate()
This method initialises areaIntegrate. Contains a very basic blurb on what process to integrate.

Returns:
javax.swing.JTextArea

getPanelAbout

private javax.swing.JPanel getPanelAbout()
This method initialises panelAbout. Contains the icon and about text necessary to inform a user about this specific integration.

Returns:
javax.swing.JPanel

getPanelSupplemental

private javax.swing.JPanel getPanelSupplemental()
This method initialises panelSupplemental. Contains all of the supplemental help documents necessary to fully describe the panel.

Returns:
javax.swing.JPanel

getPanelGroup

private javax.swing.JPanel getPanelGroup()
This method initialises panelGroup. Contains all of the Group help documents necessary to fully describe the panel.

Returns:
javax.swing.JPanel

getIconAbout

private javax.swing.JLabel getIconAbout()
This method initialises iconAbout. The image displaying the site with which we are integrating with.

Returns:
javax.swing.JLabel

getPanelRegister

private javax.swing.JPanel getPanelRegister()
This method initialises panelRegister. Register enables us to perform the necessary steps for integration and requires the user to register with the Last.fm web site directly.

Returns:
javax.swing.JPanel

getLabelRegister

private javax.swing.JLabel getLabelRegister()
Produces the hyper link which will be used to generate an action. For this element a new browser window will be forced open.

Returns:
javax.swing.JLabel

getLabelJoin

private javax.swing.JLabel getLabelJoin()
Produces the hyper link which will be used to generate an action. For this element a new browser window will be forced open.

Returns:
javax.swing.JLabel

getPanelIntegrate

private javax.swing.JPanel getPanelIntegrate()
This method initialises panelIntegrate. Completes the integration process and permits Lyra and Last.fm to work together.

Returns:
javax.swing.JPanel

getLabelIntegrate

private javax.swing.JLabel getLabelIntegrate()
Produces the hyper link which will be used to generate an action. For this element a new browser window will be forced open.

Returns:
javax.swing.JLabel

getPanelClear

private javax.swing.JPanel getPanelClear()
This method initialises panelClear. Prompt the user to clear out the information that is used in the integration process.

Returns:
javax.swing.JPanel

getLabelClear

private javax.swing.JLabel getLabelClear()
Produces the hyper link which will be used to generate an action. For this element all information will be reset.

Returns:
javax.swing.JLabel

getPanelJoin

private javax.swing.JPanel getPanelJoin()
This method initialises panelJoin. Allows the user to join in in order to integrate.

Returns:
javax.swing.JPanel

getPanelAuthorize

private javax.swing.JPanel getPanelAuthorize()
This method initialises panelAuthorize. Holds the actual register label since we can't use the same panel name twice.

Returns:
javax.swing.JPanel

getProgressToken

private javax.swing.JProgressBar getProgressToken()
Initialises the progressToken element. Used as an interim display to prevent locking the display.

Returns:
javax.swing.JProgressBar

getProgressSession

private javax.swing.JProgressBar getProgressSession()
Initialises the progressSession element. Used as an interim display to prevent locking the display.

Returns:
javax.swing.JProgressBar