queued.sdk.java.examples
Class AlarmGui

java.lang.Object
  extended byqueued.sdk.java.examples.AlarmGui

public class AlarmGui
extends java.lang.Object

Graphical user interface for the Multiple Alarm scenario of Queued Interaction Java code examples.


Field Summary
 java.awt.Color activeBackgroundColor
           
 java.awt.Font activeFont
           
 java.awt.Color alarmColor
           
 javax.swing.JTextArea alarmDetailsText
           
 javax.swing.JList alarmList
           
 javax.swing.event.ListSelectionListener alarmListener
           
 javax.swing.JButton applyDefaultThresholdButton
           
 javax.swing.JButton applyThresholdButton
           
 java.awt.Font bold
           
 java.awt.Color darkFadedGreen
           
 javax.swing.JTextField defaultThresholdField
           
 java.awt.Color errorColor
           
static java.lang.String errorStyle
           
 java.awt.Color fiftyColor
           
 java.awt.Color inactiveColor
           
static java.lang.String interactionEventStyle
           
 java.awt.Color lightWeakGreen
           
 java.awt.Color obscureDullGreen
           
 java.awt.Color obscureWeakGreen
           
 java.awt.Color paleWeakBlue
           
 java.awt.Color paleWeakCyan
           
 java.awt.Color paleWeakGreen
           
 java.awt.Color paleWeakRed
           
 java.awt.Color paleWeakYellow
           
 java.awt.Font processBarbold
           
 javax.swing.JComboBox queueComboBox
           
 java.awt.Color queueEventColor
           
static java.lang.String queueEventStyle
           
 java.awt.Color selectedLineColor
           
static java.lang.String serviceEventStyle
           
 javax.swing.JTextField thresholdField
           
 java.lang.String tooltipAlarm
           
 java.lang.String tooltipDefaultThreshold
           
 java.lang.String tooltipDefaultThresholdButton
           
 java.lang.String tooltipDetails
           
 java.lang.String tooltipMonitoring
           
 java.lang.String tooltipThreshold
           
 java.lang.String tooltipThresholdButton
           
 java.awt.Color underWarningColor
           
 java.awt.Color warningColor
           
 javax.swing.JTextArea warningDetailsText
           
 javax.swing.JList warningList
           
 javax.swing.event.ListSelectionListener warningListener
           
 
Constructor Summary
AlarmGui(java.lang.String windowTitle)
          AlarmGui constructor.
 
Method Summary
 void addQueueComboxBoxItemListener(java.awt.event.ItemListener actionListener)
          Adds a listener to the ComboBox component that lists queues.
 void createGui(java.lang.String windowTitle)
          Creates the panels that compose the GUI.
 void setDetailsAboutSelectedAlarm(java.lang.String queueName, int ixns, int ratio)
          Displays details about alarms fired for the specified queue, including its current status and progress bar.
 void setDetailsAboutSelectedWarning(java.lang.String queueName, int ixns, int ratio)
          Displays the current status of the queue that approaches its alarm threshold.
 void setQueueInfo(java.lang.String queueName, int nbInteractions, int ratio)
          Updates all GUI component that displays queue information.
 void setSelectedQueueDetails(java.lang.String queueName, int interactionNumber, int ratio)
          Updates the components of the 'Set up Alam' panel, according to the current selected queue name.
 void writeLogMessage(java.lang.String eventString, java.lang.String eventStyle)
          Inserts the log message with the accurate style in the log panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

obscureWeakGreen

public java.awt.Color obscureWeakGreen

darkFadedGreen

public java.awt.Color darkFadedGreen

obscureDullGreen

public java.awt.Color obscureDullGreen

paleWeakCyan

public java.awt.Color paleWeakCyan

lightWeakGreen

public java.awt.Color lightWeakGreen

paleWeakGreen

public java.awt.Color paleWeakGreen

paleWeakYellow

public java.awt.Color paleWeakYellow

paleWeakBlue

public java.awt.Color paleWeakBlue

paleWeakRed

public java.awt.Color paleWeakRed

activeBackgroundColor

public java.awt.Color activeBackgroundColor

inactiveColor

public java.awt.Color inactiveColor

alarmColor

public java.awt.Color alarmColor

warningColor

public java.awt.Color warningColor

fiftyColor

public java.awt.Color fiftyColor

underWarningColor

public java.awt.Color underWarningColor

queueEventColor

public java.awt.Color queueEventColor

errorColor

public java.awt.Color errorColor

selectedLineColor

public java.awt.Color selectedLineColor

bold

public java.awt.Font bold

processBarbold

public java.awt.Font processBarbold

activeFont

public java.awt.Font activeFont

tooltipDefaultThreshold

public java.lang.String tooltipDefaultThreshold

tooltipAlarm

public java.lang.String tooltipAlarm

tooltipDefaultThresholdButton

public java.lang.String tooltipDefaultThresholdButton

tooltipThreshold

public java.lang.String tooltipThreshold

tooltipThresholdButton

public java.lang.String tooltipThresholdButton

tooltipDetails

public java.lang.String tooltipDetails

tooltipMonitoring

public java.lang.String tooltipMonitoring

defaultThresholdField

public javax.swing.JTextField defaultThresholdField

applyDefaultThresholdButton

public javax.swing.JButton applyDefaultThresholdButton

thresholdField

public javax.swing.JTextField thresholdField

applyThresholdButton

public javax.swing.JButton applyThresholdButton

queueComboBox

public javax.swing.JComboBox queueComboBox

alarmList

public javax.swing.JList alarmList

alarmDetailsText

public javax.swing.JTextArea alarmDetailsText

alarmListener

public javax.swing.event.ListSelectionListener alarmListener

warningList

public javax.swing.JList warningList

warningDetailsText

public javax.swing.JTextArea warningDetailsText

warningListener

public javax.swing.event.ListSelectionListener warningListener

serviceEventStyle

public static java.lang.String serviceEventStyle

interactionEventStyle

public static java.lang.String interactionEventStyle

queueEventStyle

public static java.lang.String queueEventStyle

errorStyle

public static java.lang.String errorStyle
Constructor Detail

AlarmGui

public AlarmGui(java.lang.String windowTitle)
AlarmGui constructor. Creates an AlarmGui instance.

Parameters:
windowTitle - The title of the GUI window for the example that is currently being run..
Method Detail

createGui

public void createGui(java.lang.String windowTitle)
Creates the panels that compose the GUI.

Parameters:
windowTitle -

addQueueComboxBoxItemListener

public void addQueueComboxBoxItemListener(java.awt.event.ItemListener actionListener)
Adds a listener to the ComboBox component that lists queues.

Parameters:
actionListener - listener to be added.

setSelectedQueueDetails

public void setSelectedQueueDetails(java.lang.String queueName,
                                    int interactionNumber,
                                    int ratio)
Updates the components of the 'Set up Alam' panel, according to the current selected queue name.


setDetailsAboutSelectedAlarm

public void setDetailsAboutSelectedAlarm(java.lang.String queueName,
                                         int ixns,
                                         int ratio)
Displays details about alarms fired for the specified queue, including its current status and progress bar.

Parameters:
queueName - name of the queue.
ixns - interaction number.
ratio - activity in the queue (percentage.)

setDetailsAboutSelectedWarning

public void setDetailsAboutSelectedWarning(java.lang.String queueName,
                                           int ixns,
                                           int ratio)
Displays the current status of the queue that approaches its alarm threshold.

Parameters:
queueName - queue name.
ixns - number of interactions in this queue.
ratio - activity in this queue.

setQueueInfo

public void setQueueInfo(java.lang.String queueName,
                         int nbInteractions,
                         int ratio)
Updates all GUI component that displays queue information.

Parameters:
queueName -
nbInteractions -
ratio -

writeLogMessage

public void writeLogMessage(java.lang.String eventString,
                            java.lang.String eventStyle)
Inserts the log message with the accurate style in the log panel.