|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.bibalex.daf.managers.BaseManagerGUI
org.bibalex.daf.managers.admin.WorkstationsManagerGUI
public class WorkstationsManagerGUI
This class manages operations over WorkStation like add, remove, assign devices,...
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 |
---|
private javax.swing.JPanel jPanel
private javax.swing.JPanel masterPanel
private javax.swing.JPanel detailsPanel
private javax.swing.JScrollPane availableWSScrollPane
private javax.swing.JScrollPane AvailablePhasesScrollPane
private javax.swing.JScrollPane assignedPhasesScrollPane
private javax.swing.JScrollPane commentScrollPane
private javax.swing.JScrollPane devicesScrollPane
private javax.swing.JScrollPane MediaTypesScrollPane
private SortableTable availableWSTable
private javax.swing.JButton deleteWSButton
private javax.swing.JButton createNewWSButton
private javax.swing.JButton saveButton
private javax.swing.JButton removePhaseButton
private javax.swing.JButton addPhaseButton
private javax.swing.JTextField wsNameTextField
private javax.swing.JTextField wsWorkDirTextField
private javax.swing.JTextField wsLocationTextField
private javax.swing.JTextArea commentTextArea
private javax.swing.JComboBox OSComboBox
private javax.swing.JTree availablePhasesTree
private javax.swing.JList assignedPhasesList
private javax.swing.JCheckBox anyPhaseCheckBox
private javax.swing.JCheckBox isActiveCheckBox
private CheckBoxList devicesCheckList
private CheckBoxList MediaTypesCheckList
private javax.swing.JLabel availableWSLabel
private javax.swing.JLabel wsNameLabel
private javax.swing.JLabel wsLocationLabel
private javax.swing.JLabel wsWorkDirLabel
private javax.swing.JLabel devicesLabel
private javax.swing.JLabel wsOSLabel
private javax.swing.JLabel anyPhaseLabel
private javax.swing.JLabel isActiveLabel
private javax.swing.JLabel assignedPhasesLabel
private javax.swing.JLabel availablePhasesLabel
private javax.swing.JLabel commentLabel
private javax.swing.JLabel mediaTypeLabel
private javax.swing.JButton addAllButton
private javax.swing.JButton removeAllButton
private int lastSelectedWSIndex
private int lastAddedWSID
private boolean recordModified
private WorkstationsManagerGUI.UIStates uiState
private java.awt.event.KeyAdapter updatesKeyAdapter
Constructor Detail |
---|
public WorkstationsManagerGUI()
Method Detail |
---|
private void initialize()
private javax.swing.JPanel getJPanel()
private javax.swing.JPanel getMasterPanel()
private javax.swing.JPanel getDetailsPanel()
public javax.swing.JScrollPane getAvailableWSScrollPane()
public javax.swing.JScrollPane getAvailablePhasesScrollPane()
public javax.swing.JScrollPane getAssignedPhasesScrollPane()
private javax.swing.JScrollPane getCommentScrollPane()
public javax.swing.JScrollPane getDevicesScrollPane()
public javax.swing.JScrollPane getMediaTypesScrollPane()
private javax.swing.JButton getDeleteWSButton()
private javax.swing.JButton getCreateNewWSButton()
private javax.swing.JButton getSaveButton()
private javax.swing.JButton getRemovePhaseButton()
private javax.swing.JButton getPhaseButton()
private javax.swing.JTextField getWSNameTextField()
private javax.swing.JTextField getWSWorkingDirTextField()
private javax.swing.JTextField getWSLocationTextField()
private javax.swing.JTextArea getCommentTextArea()
private javax.swing.JCheckBox getAnyPhaseCheckBox()
private javax.swing.JCheckBox getIsActiveCheckBox()
private javax.swing.JComboBox getOSComboBox()
private boolean validateValues()
private void showMsg(java.lang.String msg)
msg
- string in Resource Fileprivate boolean confirmDiscardChanges()
private void setEditMode()
private void setCreateMode()
private void adjustDetailsPanel()
private void clearDetailsPanel()
public javax.swing.JTable getAvailableWSTable()
private void loadAvailableWSTable()
private javax.swing.JTree getavailablePhasesTree()
private javax.swing.JList loadAssignedPhasesList()
private void loadAttachedPhasesList()
private void adjustCurrentJobTypeMediaTypes()
private void adjustCurrentWorkstationDevices()
public void reloadManager()
reloadManager
in class BaseManagerGUI
private javax.swing.JButton getAddAllButton()
private javax.swing.JButton getRemoveAllButton()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |