org.lyra.Interface.Options
Class InterfacePanel

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.InterfacePanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class InterfacePanel
extends javax.swing.JPanel

The user interface has the ability to have unique colours and themes applied to it. While themes are Java based and will be selected from whatever the Java Runtime Engine supports, the selection of colours and icons are application specific.

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

Nested Class Summary
private  class InterfacePanel.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.JButton buttonHighlightColor
           
private  javax.swing.JButton buttonHighlightFont
           
private  javax.swing.JButton buttonPrimaryColor
           
private  javax.swing.JButton buttonPrimaryFont
           
private  javax.swing.JButton buttonSecondaryColor
           
private  javax.swing.JCheckBox checkAlbum
           
private  javax.swing.JCheckBox checkArtist
           
private  javax.swing.JCheckBox checkCustom
           
private  javax.swing.JCheckBox checkGenre
           
private  javax.swing.JCheckBox checkPlaylists
           
private  javax.swing.JCheckBox checkSmooth
           
private  javax.swing.JCheckBox checkTray
           
private  javax.swing.ButtonGroup ColorGroup
           
private  javax.swing.JComboBox comboBlock
           
private  javax.swing.JComboBox comboTheme
           
private  java.util.Map<java.lang.String,java.lang.String> Global
           
private  javax.swing.JPanel groupColors
           
private  javax.swing.JPanel groupDisplay
           
private  javax.swing.JPanel groupTheme
           
private  InterfacePanel.Interact Interface
           
private  javax.swing.JLabel labelAlbum
           
private  javax.swing.JLabel labelArtist
           
private  javax.swing.JLabel labelBlock
           
private  javax.swing.JLabel labelBlue
           
private  javax.swing.JLabel labelGenre
           
private  javax.swing.JLabel labelGreen
           
private  javax.swing.JLabel labelHighlightColor
           
private  javax.swing.JLabel labelHighlightFont
           
private  javax.swing.JLabel labelIcons
           
private  javax.swing.JLabel labelManage
           
private  javax.swing.JLabel labelOrange
           
private  javax.swing.JLabel labelPlaylists
           
private  javax.swing.JLabel labelPrimaryColor
           
private  javax.swing.JLabel labelPrimaryFont
           
private  javax.swing.JLabel labelSecondaryColor
           
private  javax.swing.JLabel labelSmooth
           
private  javax.swing.JLabel labelTheme
           
private  javax.swing.JLabel labelTray
           
private  java.util.Map<java.lang.String,java.lang.String> Lang
           
private  Ledger Logger
           
private  javax.swing.JPanel panelOptions
           
private  javax.swing.JPanel panelOptionsBlue
           
private  javax.swing.JPanel panelOptionsGreen
           
private  javax.swing.JPanel panelOptionsOrange
           
private  java.awt.Component Parent
           
private  javax.swing.JRadioButton radioBlue
           
private  javax.swing.JRadioButton radioGreen
           
private  javax.swing.JRadioButton radioOrange
           
private static long serialVersionUID
           
 
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
InterfacePanel(Ledger logger, java.util.Map<java.lang.String,java.lang.String> lang, java.util.Map<java.lang.String,java.lang.String> global, java.awt.Component parent)
          Primary application constructor which is passed all of the necessary elements in order to display settings and handle interaction.
 
Method Summary
private  javax.swing.JButton getButtonHighlightColor()
          This method initialises buttonHighlightColor.
private  javax.swing.JButton getButtonHighlightFont()
          This method initialises buttonHighlightFont.
private  javax.swing.JButton getButtonPrimaryColor()
          This method initialises buttonPrimaryColor.
private  javax.swing.JButton getButtonPrimaryFont()
          This method initialises buttonPrimaryFont.
private  javax.swing.JButton getButtonSecondaryColor()
          This method initialises buttonSecondaryColor.
private  javax.swing.JCheckBox getCheckAlbum()
          This method initialises checkAlbum.
private  javax.swing.JCheckBox getCheckArtist()
          This method initialises checkArtist.
private  javax.swing.JCheckBox getCheckCustom()
          This method initialises checkManage.
private  javax.swing.JCheckBox getCheckGenre()
          This method initialises checkGenre.
private  javax.swing.JCheckBox getCheckPlaylists()
          This method initialises checkPlaylists.
private  javax.swing.JCheckBox getCheckSmooth()
          This method initialises checkManage.
private  javax.swing.JCheckBox getCheckTray()
          This method initialises checkManage.
private  javax.swing.JComboBox getComboBlock()
          This method initialises comboBlock.
private  javax.swing.JComboBox getComboTheme()
          This method initialises comboTheme.
private  javax.swing.JPanel getGroupColors()
          This method initialises groupColours.
private  javax.swing.JPanel getGroupDisplay()
          This method initialises groupDisplay.
private  javax.swing.JPanel getGroupTheme()
          This method initialises groupTheme.
private  javax.swing.JLabel getLabelAlbum()
          This method initialises labelAlbum.
private  javax.swing.JLabel getLabelArtist()
          This method initialises labelArtist.
private  javax.swing.JLabel getLabelBlock()
          This method initialises labelBlock.
private  javax.swing.JLabel getLabelBlue()
          This method initialises labelBlue.
private  javax.swing.JLabel getLabelGenre()
          This method initialises labelGenre.
private  javax.swing.JLabel getLabelGreen()
          This method initialises labelGreen.
private  javax.swing.JLabel getLabelHighlightColor()
          This method initialises labelHighlightColor.
private  javax.swing.JLabel getLabelHighlightFont()
          This method initialises labelHighlightFont.
private  javax.swing.JLabel getLabelIcons()
          This method initialises labelIcons.
private  javax.swing.JLabel getLabelManage()
          This method initialises labelManage.
private  javax.swing.JLabel getLabelOrange()
          This method initialises labelOrange.
private  javax.swing.JLabel getLabelPlaylists()
          This method initialises labelPlaylists.
private  javax.swing.JLabel getLabelPrimaryColor()
          This method initialises labelPrimaryColor.
private  javax.swing.JLabel getLabelPrimaryFont()
          This method initialises labelPrimaryFont.
private  javax.swing.JLabel getLabelSecondaryColor()
          This method initialises labelSecondaryColor.
private  javax.swing.JLabel getLabelSmooth()
          This method initialises labelSmooth.
private  javax.swing.JLabel getLabelTheme()
          This method initialises labelTheme.
private  javax.swing.JLabel getLabelTray()
          This method initialises labelTray.
private  javax.swing.JPanel getPanelOptions()
          This method initialises panelOptions.
private  javax.swing.JPanel getPanelOptionsBlue()
          This method initialises panelOptionsBlue.
private  javax.swing.JPanel getPanelOptionsGreen()
          This method initialises panelOptionsGreen.
private  javax.swing.JPanel getPanelOptionsOrange()
          This method initialises panelOptionsOrange.
private  javax.swing.JPanel getPanelRow(javax.swing.JLabel label, javax.swing.JComponent widget)
          This method initialises a JPanel component providing row elements.
private  javax.swing.JRadioButton getRadioBlue()
          This method initialises radioBlue.
private  javax.swing.JRadioButton getRadioGreen()
          This method initialises radioGreen.
private  javax.swing.JRadioButton getRadioOrange()
          This method initialises radioOrange.
 java.util.Map<java.lang.String,java.lang.String> getState()
          Returns a map containing all of the necessary elements controlled in this panel.
private  void initFrame()
          This method initialises this.
 void setState()
          Establishes the defaults for the elements displayed within the panel.
 
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

groupTheme

private javax.swing.JPanel groupTheme

labelTheme

private javax.swing.JLabel labelTheme

comboTheme

private javax.swing.JComboBox comboTheme

labelBlock

private javax.swing.JLabel labelBlock

comboBlock

private javax.swing.JComboBox comboBlock

labelSmooth

private javax.swing.JLabel labelSmooth

checkSmooth

private javax.swing.JCheckBox checkSmooth

labelTray

private javax.swing.JLabel labelTray

checkTray

private javax.swing.JCheckBox checkTray

labelIcons

private javax.swing.JLabel labelIcons

panelOptions

private javax.swing.JPanel panelOptions

panelOptionsBlue

private javax.swing.JPanel panelOptionsBlue

radioBlue

private javax.swing.JRadioButton radioBlue

labelBlue

private javax.swing.JLabel labelBlue

panelOptionsGreen

private javax.swing.JPanel panelOptionsGreen

radioGreen

private javax.swing.JRadioButton radioGreen

labelGreen

private javax.swing.JLabel labelGreen

panelOptionsOrange

private javax.swing.JPanel panelOptionsOrange

radioOrange

private javax.swing.JRadioButton radioOrange

labelOrange

private javax.swing.JLabel labelOrange

groupDisplay

private javax.swing.JPanel groupDisplay

labelPlaylists

private javax.swing.JLabel labelPlaylists

checkPlaylists

private javax.swing.JCheckBox checkPlaylists

labelArtist

private javax.swing.JLabel labelArtist

checkArtist

private javax.swing.JCheckBox checkArtist

labelAlbum

private javax.swing.JLabel labelAlbum

checkAlbum

private javax.swing.JCheckBox checkAlbum

labelGenre

private javax.swing.JLabel labelGenre

checkGenre

private javax.swing.JCheckBox checkGenre

labelManage

private javax.swing.JLabel labelManage

checkCustom

private javax.swing.JCheckBox checkCustom

groupColors

private javax.swing.JPanel groupColors

labelPrimaryFont

private javax.swing.JLabel labelPrimaryFont

buttonPrimaryFont

private javax.swing.JButton buttonPrimaryFont

labelPrimaryColor

private javax.swing.JLabel labelPrimaryColor

buttonPrimaryColor

private javax.swing.JButton buttonPrimaryColor

labelSecondaryColor

private javax.swing.JLabel labelSecondaryColor

buttonSecondaryColor

private javax.swing.JButton buttonSecondaryColor

labelHighlightColor

private javax.swing.JLabel labelHighlightColor

buttonHighlightColor

private javax.swing.JButton buttonHighlightColor

labelHighlightFont

private javax.swing.JLabel labelHighlightFont

buttonHighlightFont

private javax.swing.JButton buttonHighlightFont

Lang

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

Global

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

Logger

private Ledger Logger

Parent

private java.awt.Component Parent

Interface

private InterfacePanel.Interact Interface

ColorGroup

private javax.swing.ButtonGroup ColorGroup
Constructor Detail

InterfacePanel

public InterfacePanel(Ledger logger,
                      java.util.Map<java.lang.String,java.lang.String> lang,
                      java.util.Map<java.lang.String,java.lang.String> global,
                      java.awt.Component parent)
Primary application constructor which is passed all of the necessary elements in order to display settings and handle interaction.

Parameters:
logger - Ledger instances for debugging and information.
lang - Language map for independent language elements.
global - Global settings and configuration options.
parent - Component in which this JPanel is a part of.
Method Detail

initFrame

private void initFrame()
This method initialises this. This will configure elements of the panel and add in the necessary visual components for display.


getGroupTheme

private javax.swing.JPanel getGroupTheme()
This method initialises groupTheme. Contains elements necessary to change the basic look and feel such as the Java Theme and Icons used in display.

Returns:
javax.swing.JPanel

getGroupDisplay

private javax.swing.JPanel getGroupDisplay()
This method initialises groupDisplay. Certain display areas of the Organiser are actually optional, this allows a user to select which of those features are to be displayed.

Returns:
javax.swing.JPanel

getGroupColors

private javax.swing.JPanel getGroupColors()
This method initialises groupColours. Group colours combines all of the elements necessary to permit colour selection and choices.

Returns:
javax.swing.JPanel

getLabelTheme

private javax.swing.JLabel getLabelTheme()
This method initialises labelTheme.

Returns:
javax.swing.JLabel

getLabelBlock

private javax.swing.JLabel getLabelBlock()
This method initialises labelBlock.

Returns:
javax.swing.JLabel

getLabelSmooth

private javax.swing.JLabel getLabelSmooth()
This method initialises labelSmooth.

Returns:
javax.swing.JLabel

getLabelTray

private javax.swing.JLabel getLabelTray()
This method initialises labelTray.

Returns:
javax.swing.JLabel

getLabelIcons

private javax.swing.JLabel getLabelIcons()
This method initialises labelIcons.

Returns:
javax.swing.JLabel

getLabelPlaylists

private javax.swing.JLabel getLabelPlaylists()
This method initialises labelPlaylists.

Returns:
javax.swing.JLabel

getLabelArtist

private javax.swing.JLabel getLabelArtist()
This method initialises labelArtist.

Returns:
javax.swing.JLabel

getLabelAlbum

private javax.swing.JLabel getLabelAlbum()
This method initialises labelAlbum.

Returns:
javax.swing.JLabel

getLabelGenre

private javax.swing.JLabel getLabelGenre()
This method initialises labelGenre.

Returns:
javax.swing.JLabel

getLabelManage

private javax.swing.JLabel getLabelManage()
This method initialises labelManage.

Returns:
javax.swing.JLabel

getLabelPrimaryFont

private javax.swing.JLabel getLabelPrimaryFont()
This method initialises labelPrimaryFont.

Returns:
javax.swing.JLabel

getLabelPrimaryColor

private javax.swing.JLabel getLabelPrimaryColor()
This method initialises labelPrimaryColor.

Returns:
javax.swing.JLabel

getLabelSecondaryColor

private javax.swing.JLabel getLabelSecondaryColor()
This method initialises labelSecondaryColor.

Returns:
javax.swing.JLabel

getLabelHighlightColor

private javax.swing.JLabel getLabelHighlightColor()
This method initialises labelHighlightColor.

Returns:
javax.swing.JLabel

getLabelHighlightFont

private javax.swing.JLabel getLabelHighlightFont()
This method initialises labelHighlightFont.

Returns:
javax.swing.JLabel

getComboTheme

private javax.swing.JComboBox getComboTheme()
This method initialises comboTheme. Contains a list of all Java Runtime Engine available themes.

Returns:
javax.swing.JComboBox

getComboBlock

private javax.swing.JComboBox getComboBlock()
This method initialises comboBlock. Contains a list of all Java Runtime Engine available Blocks.

Returns:
javax.swing.JComboBox

getCheckPlaylists

private javax.swing.JCheckBox getCheckPlaylists()
This method initialises checkPlaylists. Enables/Disables display of playlists in the organiser.

Returns:
javax.swing.JCheckBox

getCheckArtist

private javax.swing.JCheckBox getCheckArtist()
This method initialises checkArtist. Enables/Disables the display of Artist filtering on the organiser.

Returns:
javax.swing.JCheckBox

getCheckAlbum

private javax.swing.JCheckBox getCheckAlbum()
This method initialises checkAlbum. Enables/Disables the display of the Album Filtering in the organiser.

Returns:
javax.swing.JCheckBox

getCheckGenre

private javax.swing.JCheckBox getCheckGenre()
This method initialises checkGenre. Enables/Disables the display of Genre filtering in the organiser.

Returns:
javax.swing.JCheckBox

getCheckCustom

private javax.swing.JCheckBox getCheckCustom()
This method initialises checkManage. Enables or disables the capability to manage custom colours for row rendering.

Returns:
javax.swing.JCheckBox

getCheckSmooth

private javax.swing.JCheckBox getCheckSmooth()
This method initialises checkManage. Enables or disables the capability to manage custom colours for row rendering.

Returns:
javax.swing.JCheckBox

getCheckTray

private javax.swing.JCheckBox getCheckTray()
This method initialises checkManage. Enables or disables the useage of the system tray on operating systems which support it.

Returns:
javax.swing.JCheckBox

getButtonPrimaryFont

private javax.swing.JButton getButtonPrimaryFont()
This method initialises buttonPrimaryFont. Used to trigger a colour selection prompt.

Returns:
javax.swing.JButton

getButtonPrimaryColor

private javax.swing.JButton getButtonPrimaryColor()
This method initialises buttonPrimaryColor. Used to trigger a colour selection prompt.

Returns:
javax.swing.JButton

getButtonSecondaryColor

private javax.swing.JButton getButtonSecondaryColor()
This method initialises buttonSecondaryColor. Used to trigger a colour selection prompt.

Returns:
javax.swing.JButton

getButtonHighlightColor

private javax.swing.JButton getButtonHighlightColor()
This method initialises buttonHighlightColor. Used to trigger a colour selection prompt.

Returns:
javax.swing.JButton

getButtonHighlightFont

private javax.swing.JButton getButtonHighlightFont()
This method initialises buttonHighlightFont. Used to trigger a colour selection prompt.

Returns:
javax.swing.JButton

getPanelOptions

private javax.swing.JPanel getPanelOptions()
This method initialises panelOptions. Contains the necessary radio buttons to select which icon group to display.

Returns:
javax.swing.JPanel

getPanelOptionsBlue

private javax.swing.JPanel getPanelOptionsBlue()
This method initialises panelOptionsBlue. Allows a user to select the blue icon set.

Returns:
javax.swing.JPanel

getLabelBlue

private javax.swing.JLabel getLabelBlue()
This method initialises labelBlue.

Returns:
javax.swing.JLabel

getPanelOptionsGreen

private javax.swing.JPanel getPanelOptionsGreen()
This method initialises panelOptionsGreen. Allows a user to select the green icon set.

Returns:
javax.swing.JPanel

getLabelGreen

private javax.swing.JLabel getLabelGreen()
This method initialises labelGreen.

Returns:
javax.swing.JLabel

getPanelOptionsOrange

private javax.swing.JPanel getPanelOptionsOrange()
This method initialises panelOptionsOrange. Allows a user to select the orange icon set.

Returns:
javax.swing.JPanel

getLabelOrange

private javax.swing.JLabel getLabelOrange()
This method initialises labelOrange.

Returns:
javax.swing.JLabel

getRadioBlue

private javax.swing.JRadioButton getRadioBlue()
This method initialises radioBlue.

Returns:
javax.swing.JRadioButton

getRadioGreen

private javax.swing.JRadioButton getRadioGreen()
This method initialises radioGreen.

Returns:
javax.swing.JRadioButton

getRadioOrange

private javax.swing.JRadioButton getRadioOrange()
This method initialises radioOrange.

Returns:
javax.swing.JRadioButton

getPanelRow

private javax.swing.JPanel getPanelRow(javax.swing.JLabel label,
                                       javax.swing.JComponent widget)
This method initialises a JPanel component providing row elements.

Parameters:
label - JLabel instance which will be resized.
widget - JComponent instance which will be added as-is.
Returns:
JPanel containing the elements properly established.

getState

public java.util.Map<java.lang.String,java.lang.String> getState()
Returns a map containing all of the necessary elements controlled in this panel. This in turn can be used to directly replace the main map and database entry.

Returns:
Map containing keys and attributes.

setState

public void setState()
Establishes the defaults for the elements displayed within the panel. Includes colours and checkbox states.