org.bibalex.daf.managers.admin
Class WorkstationsManagerGUI

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.bibalex.daf.managers.BaseManagerGUI
                      extended by org.bibalex.daf.managers.admin.WorkstationsManagerGUI
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class WorkstationsManagerGUI
extends BaseManagerGUI

This class manages operations over WorkStation like add, remove, assign devices,...

Author:
Mohammed.Abuouda
See Also:
Serialized Form

Nested Class Summary
private static class WorkstationsManagerGUI.UIStates
          UIStates is enum indicates to the state of the selected row (Add for new , Edit for update)
 
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JButton addAllButton
          adds availaible items.
private  javax.swing.JButton addPhaseButton
          addPhaseButton used to add phase to assigned phases list
private  javax.swing.JCheckBox anyPhaseCheckBox
          anyPhaseCheckBox is check box indicates if the selected WS can work on any phase or not
private  javax.swing.JLabel anyPhaseLabel
          anyPhaseLabel shows the title of anyPhaseCheckBox
private  javax.swing.JLabel assignedPhasesLabel
          assignedPhasesLabel shows the title of assignedPhases list
private  javax.swing.JList assignedPhasesList
          assignedPhasesList shows up the phases already assigned to the selected WS
private  javax.swing.JScrollPane assignedPhasesScrollPane
          assignedPhasesScrollPane is the container of AvailablePhasesScrollPane
private  javax.swing.JLabel availablePhasesLabel
          availablePhasesLabel shows the title of availablePhases tree
private  javax.swing.JScrollPane AvailablePhasesScrollPane
          AvailablePhasesScrollPane is the container of AvailablePhasesTree
private  javax.swing.JTree availablePhasesTree
          availablePhasesTree conatines system job types associated with their phases
private  javax.swing.JLabel availableWSLabel
          availableWSLabel shows the title of Available WS table
private  javax.swing.JScrollPane availableWSScrollPane
          availableWSScrollPane is the container Pane for available WS table
private  SortableTable availableWSTable
          availableWSTable is the table that shows up the system WSs
private  javax.swing.JLabel commentLabel
          commentLabel shows the title of comment text area
private  javax.swing.JScrollPane commentScrollPane
          commentScrollPane is the container of comment text area
private  javax.swing.JTextArea commentTextArea
          commentTextArea is a text area shows the comment of selectd WS
private  javax.swing.JButton createNewWSButton
          createNewWSButton is the button to craete new WS
private  javax.swing.JButton deleteWSButton
          deleteWSButton is the button to delete WS
private  javax.swing.JPanel detailsPanel
          detailsPanel is the panel that carry the derived components which are relevant to the selected WS from the availableWSTable
private  CheckBoxList devicesCheckList
          devicesCheckList shows system devices as check boxes list
private  javax.swing.JLabel devicesLabel
          devicesLabel shows the title of WS devices check list
private  javax.swing.JScrollPane devicesScrollPane
          devicesScrollPane is the container of devices list
private  javax.swing.JCheckBox isActiveCheckBox
          isActiveCheckBox is check box indicates if the selected WS active or not
private  javax.swing.JLabel isActiveLabel
          isActiveLabel shows the title of isActiveCheckBox
private  javax.swing.JPanel jPanel
          jPanel is Main panel which containes master and details panels
private  int lastAddedWSID
          lastAddedWSID used to indicate to the last added User ID to be able to identify the correct selected row after a recent addition
private  int lastSelectedWSIndex
          lastSelectedWSIndex used to indicate to the last selected row of available WS table
private  javax.swing.JPanel masterPanel
          masterPanel is the panel that carry the basic components which are availableWSTable,deleteWSButton and createNewWSButton
private  javax.swing.JLabel mediaTypeLabel
          mediaTypeLabel shows the title of MediaType check list
private  CheckBoxList MediaTypesCheckList
          MediaTypesCheckList shows system media types
private  javax.swing.JScrollPane MediaTypesScrollPane
          MediaTypesScrollPane is the container of Media types check list
private  javax.swing.JComboBox OSComboBox
          OSComboBox conatines system operating systems
private  boolean recordModified
          recordModified used to check if there are updates or modifications applied but not saved yet to the selected WS
private  javax.swing.JButton removeAllButton
          removes all attached items.
private  javax.swing.JButton removePhaseButton
          removePhaseButton used to remove phase from assigned phases list
private  javax.swing.JButton saveButton
          saveButton is the button to save the changes of WS these changes could be updates or even new data
private  WorkstationsManagerGUI.UIStates uiState
           
private  java.awt.event.KeyAdapter updatesKeyAdapter
          key listener handles the events of change the text of text fields, chnage the selected index of combo boxes and check boxes.
private  javax.swing.JLabel wsLocationLabel
          wsLocationLabel shows the text of WS location combo box
private  javax.swing.JTextField wsLocationTextField
          wsNameTextField is a text field shows the location of selectd WS
private  javax.swing.JLabel wsNameLabel
          wsNameLabel shows the text of WS name's text field
private  javax.swing.JTextField wsNameTextField
          wsNameTextField is a text field shows the name of selectd WS
private  javax.swing.JLabel wsOSLabel
          wsOSLabel shows the text of WS OS combo box
private  javax.swing.JLabel wsWorkDirLabel
          wsWorkDirLabel shows the text of WS working directory text field
private  javax.swing.JTextField wsWorkDirTextField
          wsNameTextField is a text field shows the working directory of selectd WS
 
Fields inherited from class org.bibalex.daf.managers.BaseManagerGUI
currentInstance, resourceManager
 
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
WorkstationsManagerGUI()
          This is the default constructor
 
Method Summary
private  void adjustCurrentJobTypeMediaTypes()
          This method marks the assigned media types to the selected WS
private  void adjustCurrentWorkstationDevices()
          This method marks the assigned devices to the selected WS
private  void adjustDetailsPanel()
          Extract the data of the selected WS and fill up the correspondence fileds
private  void clearDetailsPanel()
          Reset GUI controls
private  boolean confirmDiscardChanges()
          Confirm discard User changes message
private  javax.swing.JButton getAddAllButton()
          This method initializes addAllButton
private  javax.swing.JCheckBox getAnyPhaseCheckBox()
          This method initializes anyPhaseCheckBox this check box indicates if the WS can work on any phase or not
 javax.swing.JScrollPane getAssignedPhasesScrollPane()
          This method initializes assignedPhasesScrollPane
 javax.swing.JScrollPane getAvailablePhasesScrollPane()
          This method initializes AvailablePhasesScrollPane
private  javax.swing.JTree getavailablePhasesTree()
          This method initializes availablePhasesTree
 javax.swing.JScrollPane getAvailableWSScrollPane()
          This method initializes availableWSScrollPane
 javax.swing.JTable getAvailableWSTable()
          This method initializes availableWSTable
private  javax.swing.JScrollPane getCommentScrollPane()
          This method initializes commentScrollPane
private  javax.swing.JTextArea getCommentTextArea()
          This method initializes commentTextArea
private  javax.swing.JButton getCreateNewWSButton()
          This method initializes createNewWSButton
private  javax.swing.JButton getDeleteWSButton()
          This method initializes deleteWSButton
private  javax.swing.JPanel getDetailsPanel()
          This method initializes detailsPanel
 javax.swing.JScrollPane getDevicesScrollPane()
          This method initializes devicesScrollPane devicesScrollPane is the container of devicesCheckList whic represents system devices and highlights already assigned devices to this WS
private  javax.swing.JCheckBox getIsActiveCheckBox()
          This method initializes isActiveCheckBox this check box indicates if the WS is active or not active WS only considered as worker WSs
private  javax.swing.JPanel getJPanel()
          This method initializes jPanel
private  javax.swing.JPanel getMasterPanel()
          This method initializes masterPanel
 javax.swing.JScrollPane getMediaTypesScrollPane()
          This method initializes devicesScrollPane devicesScrollPane is the container of devicesCheckList whic represents system devices and highlights already assigned devices to this WS
private  javax.swing.JComboBox getOSComboBox()
          This method initializes operating system combo box
private  javax.swing.JButton getPhaseButton()
          This method initializes addPhaseButton this button carry out the function of moving phase from available phases list to assigned phases list
private  javax.swing.JButton getRemoveAllButton()
          This method initializes removeAllButton
private  javax.swing.JButton getRemovePhaseButton()
          This method initializes removePhaseButton this button carry out the function of removing phase from assigned phases list
private  javax.swing.JButton getSaveButton()
          This method initializes saveButton
private  javax.swing.JTextField getWSLocationTextField()
          This method initializes WS Loction
private  javax.swing.JTextField getWSNameTextField()
          This method initializes WS Name
private  javax.swing.JTextField getWSWorkingDirTextField()
          This method initializes WS WorkingDir
private  void initialize()
          This method initializes layout
private  javax.swing.JList loadAssignedPhasesList()
          This method initializes assignedPhasesList
private  void loadAttachedPhasesList()
          Load assignedPhasesList
private  void loadAvailableWSTable()
          Fill up the WS table
 void reloadManager()
          Reset controls when WS tab change
private  void setCreateMode()
          Clear the GUI and set mode to Add
private  void setEditMode()
          Set GUI mode to Edit
private  void showMsg(java.lang.String msg)
          Show message box
private  boolean validateValues()
          Validate filed values
 
Methods inherited from class org.bibalex.daf.managers.BaseManagerGUI
setFocus, updateTitle
 
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, 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, 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

jPanel

private javax.swing.JPanel jPanel
jPanel is Main panel which containes master and details panels


masterPanel

private javax.swing.JPanel masterPanel
masterPanel is the panel that carry the basic components which are availableWSTable,deleteWSButton and createNewWSButton


detailsPanel

private javax.swing.JPanel detailsPanel
detailsPanel is the panel that carry the derived components which are relevant to the selected WS from the availableWSTable


availableWSScrollPane

private javax.swing.JScrollPane availableWSScrollPane
availableWSScrollPane is the container Pane for available WS table


AvailablePhasesScrollPane

private javax.swing.JScrollPane AvailablePhasesScrollPane
AvailablePhasesScrollPane is the container of AvailablePhasesTree


assignedPhasesScrollPane

private javax.swing.JScrollPane assignedPhasesScrollPane
assignedPhasesScrollPane is the container of AvailablePhasesScrollPane


commentScrollPane

private javax.swing.JScrollPane commentScrollPane
commentScrollPane is the container of comment text area


devicesScrollPane

private javax.swing.JScrollPane devicesScrollPane
devicesScrollPane is the container of devices list


MediaTypesScrollPane

private javax.swing.JScrollPane MediaTypesScrollPane
MediaTypesScrollPane is the container of Media types check list


availableWSTable

private SortableTable availableWSTable
availableWSTable is the table that shows up the system WSs


deleteWSButton

private javax.swing.JButton deleteWSButton
deleteWSButton is the button to delete WS


createNewWSButton

private javax.swing.JButton createNewWSButton
createNewWSButton is the button to craete new WS


saveButton

private javax.swing.JButton saveButton
saveButton is the button to save the changes of WS these changes could be updates or even new data


removePhaseButton

private javax.swing.JButton removePhaseButton
removePhaseButton used to remove phase from assigned phases list


addPhaseButton

private javax.swing.JButton addPhaseButton
addPhaseButton used to add phase to assigned phases list


wsNameTextField

private javax.swing.JTextField wsNameTextField
wsNameTextField is a text field shows the name of selectd WS


wsWorkDirTextField

private javax.swing.JTextField wsWorkDirTextField
wsNameTextField is a text field shows the working directory of selectd WS


wsLocationTextField

private javax.swing.JTextField wsLocationTextField
wsNameTextField is a text field shows the location of selectd WS


commentTextArea

private javax.swing.JTextArea commentTextArea
commentTextArea is a text area shows the comment of selectd WS


OSComboBox

private javax.swing.JComboBox OSComboBox
OSComboBox conatines system operating systems


availablePhasesTree

private javax.swing.JTree availablePhasesTree
availablePhasesTree conatines system job types associated with their phases


assignedPhasesList

private javax.swing.JList assignedPhasesList
assignedPhasesList shows up the phases already assigned to the selected WS


anyPhaseCheckBox

private javax.swing.JCheckBox anyPhaseCheckBox
anyPhaseCheckBox is check box indicates if the selected WS can work on any phase or not


isActiveCheckBox

private javax.swing.JCheckBox isActiveCheckBox
isActiveCheckBox is check box indicates if the selected WS active or not


devicesCheckList

private CheckBoxList devicesCheckList
devicesCheckList shows system devices as check boxes list


MediaTypesCheckList

private CheckBoxList MediaTypesCheckList
MediaTypesCheckList shows system media types


availableWSLabel

private javax.swing.JLabel availableWSLabel
availableWSLabel shows the title of Available WS table


wsNameLabel

private javax.swing.JLabel wsNameLabel
wsNameLabel shows the text of WS name's text field


wsLocationLabel

private javax.swing.JLabel wsLocationLabel
wsLocationLabel shows the text of WS location combo box


wsWorkDirLabel

private javax.swing.JLabel wsWorkDirLabel
wsWorkDirLabel shows the text of WS working directory text field


devicesLabel

private javax.swing.JLabel devicesLabel
devicesLabel shows the title of WS devices check list


wsOSLabel

private javax.swing.JLabel wsOSLabel
wsOSLabel shows the text of WS OS combo box


anyPhaseLabel

private javax.swing.JLabel anyPhaseLabel
anyPhaseLabel shows the title of anyPhaseCheckBox


isActiveLabel

private javax.swing.JLabel isActiveLabel
isActiveLabel shows the title of isActiveCheckBox


assignedPhasesLabel

private javax.swing.JLabel assignedPhasesLabel
assignedPhasesLabel shows the title of assignedPhases list


availablePhasesLabel

private javax.swing.JLabel availablePhasesLabel
availablePhasesLabel shows the title of availablePhases tree


commentLabel

private javax.swing.JLabel commentLabel
commentLabel shows the title of comment text area


mediaTypeLabel

private javax.swing.JLabel mediaTypeLabel
mediaTypeLabel shows the title of MediaType check list


addAllButton

private javax.swing.JButton addAllButton
adds availaible items.


removeAllButton

private javax.swing.JButton removeAllButton
removes all attached items.


lastSelectedWSIndex

private int lastSelectedWSIndex
lastSelectedWSIndex used to indicate to the last selected row of available WS table


lastAddedWSID

private int lastAddedWSID
lastAddedWSID used to indicate to the last added User ID to be able to identify the correct selected row after a recent addition


recordModified

private boolean recordModified
recordModified used to check if there are updates or modifications applied but not saved yet to the selected WS


uiState

private WorkstationsManagerGUI.UIStates uiState

updatesKeyAdapter

private java.awt.event.KeyAdapter updatesKeyAdapter
key listener handles the events of change the text of text fields, chnage the selected index of combo boxes and check boxes. Once the event fired, the key adapter enables the saveButton and set recordModified to true. The value of recordModified utilized when the user decides to change to selected WS to another one, here the system generates a confirmation message that asks the user to discared the changes he done or to commit them.

Constructor Detail

WorkstationsManagerGUI

public WorkstationsManagerGUI()
This is the default constructor

Method Detail

initialize

private void initialize()
This method initializes layout


getJPanel

private javax.swing.JPanel getJPanel()
This method initializes jPanel

Returns:
javax.swing.JPanel

getMasterPanel

private javax.swing.JPanel getMasterPanel()
This method initializes masterPanel

Returns:
javax.swing.JPanel

getDetailsPanel

private javax.swing.JPanel getDetailsPanel()
This method initializes detailsPanel

Returns:
javax.swing.JPanel

getAvailableWSScrollPane

public javax.swing.JScrollPane getAvailableWSScrollPane()
This method initializes availableWSScrollPane

Returns:
javax.swing.JScrollPane

getAvailablePhasesScrollPane

public javax.swing.JScrollPane getAvailablePhasesScrollPane()
This method initializes AvailablePhasesScrollPane

Returns:
javax.swing.JScrollPane

getAssignedPhasesScrollPane

public javax.swing.JScrollPane getAssignedPhasesScrollPane()
This method initializes assignedPhasesScrollPane

Returns:
javax.swing.JScrollPane

getCommentScrollPane

private javax.swing.JScrollPane getCommentScrollPane()
This method initializes commentScrollPane

Returns:
JScrollPane

getDevicesScrollPane

public javax.swing.JScrollPane getDevicesScrollPane()
This method initializes devicesScrollPane devicesScrollPane is the container of devicesCheckList whic represents system devices and highlights already assigned devices to this WS

Returns:
JScrollPane

getMediaTypesScrollPane

public javax.swing.JScrollPane getMediaTypesScrollPane()
This method initializes devicesScrollPane devicesScrollPane is the container of devicesCheckList whic represents system devices and highlights already assigned devices to this WS

Returns:
JScrollPane

getDeleteWSButton

private javax.swing.JButton getDeleteWSButton()
This method initializes deleteWSButton

Returns:
javax.swing.JButton

getCreateNewWSButton

private javax.swing.JButton getCreateNewWSButton()
This method initializes createNewWSButton

Returns:
javax.swing.JButton

getSaveButton

private javax.swing.JButton getSaveButton()
This method initializes saveButton

Returns:
javax.swing.JButton

getRemovePhaseButton

private javax.swing.JButton getRemovePhaseButton()
This method initializes removePhaseButton this button carry out the function of removing phase from assigned phases list

Returns:
JButton

getPhaseButton

private javax.swing.JButton getPhaseButton()
This method initializes addPhaseButton this button carry out the function of moving phase from available phases list to assigned phases list

Returns:
JButton

getWSNameTextField

private javax.swing.JTextField getWSNameTextField()
This method initializes WS Name

Returns:
javax.swing.JTextField

getWSWorkingDirTextField

private javax.swing.JTextField getWSWorkingDirTextField()
This method initializes WS WorkingDir

Returns:
javax.swing.JTextField

getWSLocationTextField

private javax.swing.JTextField getWSLocationTextField()
This method initializes WS Loction

Returns:
javax.swing.JTextField

getCommentTextArea

private javax.swing.JTextArea getCommentTextArea()
This method initializes commentTextArea

Returns:
javax.swing.JTextArea

getAnyPhaseCheckBox

private javax.swing.JCheckBox getAnyPhaseCheckBox()
This method initializes anyPhaseCheckBox this check box indicates if the WS can work on any phase or not

Returns:
JCheckBox

getIsActiveCheckBox

private javax.swing.JCheckBox getIsActiveCheckBox()
This method initializes isActiveCheckBox this check box indicates if the WS is active or not active WS only considered as worker WSs

Returns:
JCheckBox

getOSComboBox

private javax.swing.JComboBox getOSComboBox()
This method initializes operating system combo box

Returns:
JComboBox

validateValues

private boolean validateValues()
Validate filed values

Returns:
true if all values are valid , false other wise

showMsg

private void showMsg(java.lang.String msg)
Show message box

Parameters:
msg - string in Resource File

confirmDiscardChanges

private boolean confirmDiscardChanges()
Confirm discard User changes message

Returns:
true if confirmed and false otherwise

setEditMode

private void setEditMode()
Set GUI mode to Edit


setCreateMode

private void setCreateMode()
Clear the GUI and set mode to Add


adjustDetailsPanel

private void adjustDetailsPanel()
Extract the data of the selected WS and fill up the correspondence fileds


clearDetailsPanel

private void clearDetailsPanel()
Reset GUI controls


getAvailableWSTable

public javax.swing.JTable getAvailableWSTable()
This method initializes availableWSTable

Returns:
javax.swing.JTable

loadAvailableWSTable

private void loadAvailableWSTable()
Fill up the WS table


getavailablePhasesTree

private javax.swing.JTree getavailablePhasesTree()
This method initializes availablePhasesTree

Returns:
JTree

loadAssignedPhasesList

private javax.swing.JList loadAssignedPhasesList()
This method initializes assignedPhasesList

Returns:
JList

loadAttachedPhasesList

private void loadAttachedPhasesList()
Load assignedPhasesList


adjustCurrentJobTypeMediaTypes

private void adjustCurrentJobTypeMediaTypes()
This method marks the assigned media types to the selected WS


adjustCurrentWorkstationDevices

private void adjustCurrentWorkstationDevices()
This method marks the assigned devices to the selected WS


reloadManager

public void reloadManager()
Reset controls when WS tab change

Specified by:
reloadManager in class BaseManagerGUI

getAddAllButton

private javax.swing.JButton getAddAllButton()
This method initializes addAllButton

Returns:
javax.swing.JButton

getRemoveAllButton

private javax.swing.JButton getRemoveAllButton()
This method initializes removeAllButton

Returns:
javax.swing.JButton