org.bibalex.daf.managers.checkin
Class NewJobGUI

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

public class NewJobGUI
extends BaseManagerGUI

The NewJob GUI.

Author:
Shehab.Kamal
See Also:
Serialized Form

Nested Class Summary
 
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 addButton
           
private  javax.swing.JPanel assignJobPanel
           
private  javax.swing.JComboBox batchComboBox
           
private  javax.swing.JLabel batchLabel
           
private static int BIB_ID
           
private  javax.swing.JComboBox collectionComboBox
           
private  javax.swing.JLabel collectionLabel
           
private  javax.swing.JComboBox conditionComboBox
           
private  javax.swing.JLabel conditionLabel
           
private  javax.swing.JLabel creatorLabel
           
private  javax.swing.JTextField creatorTextField
           
private  DateButton dateDateButton
           
private  javax.swing.JLabel dateLabel
           
private  DateButton dueDateDateButton
           
private  javax.swing.JLabel dueDateLabel
           
private  java.lang.String errorMsg
           
private  javax.swing.JLabel externalIDLabel
           
private  ExternalID[] externalIDs
           
private  javax.swing.JButton externalIDsButton
           
private  javax.swing.JLabel externalIDsLabel
           
private  javax.swing.JTextField externalIDTextField
           
private  javax.swing.JComboBox externalIDTypeComboBox
           
private  javax.swing.JLabel externalIDTypeLabel
           
private  javax.swing.JButton extractButton
           
private  javax.swing.JPanel extractInfoPanel
           
private  javax.swing.JLabel info1Label
           
private  javax.swing.JTextField info1TextField
           
private  javax.swing.JLabel info2Label
           
private  javax.swing.JTextField info2TextField
           
private  javax.swing.JLabel info3Label
           
private  javax.swing.JTextField info3TextField
           
private  javax.swing.JPanel jobInfoPanel
           
private  javax.swing.JComboBox jobTypeComboBox
           
private  javax.swing.JLabel jobTypeLabel
           
private  javax.swing.JPanel jPanel
           
private  javax.swing.JComboBox languageComboBox
           
private  javax.swing.JLabel languageLabel
           
private  javax.swing.JLabel lobLabel
           
private  javax.swing.JScrollPane lobScrollPane
           
private  javax.swing.JTextArea lobTextArea
           
private  javax.swing.JComboBox phaseComboBox
           
private  javax.swing.JLabel phaseLabel
           
private  java.lang.Object[] phaseUserPreAssignedEntries
           
private  ICheckInPlugIn plugIn
           
private  javax.swing.JComboBox plugInComboBox
           
private  javax.swing.JLabel plugInLabel
           
private  javax.swing.JButton preAssignButton
           
private  javax.swing.JLabel priorityLabel
           
private  javax.swing.JTextField priorityTextField
           
private  javax.swing.JButton searchButton
           
private static int SERIAL_ID
           
private  javax.swing.JComboBox storageComboBox
           
private  javax.swing.JLabel storageLabel
           
private  javax.swing.JLabel titleLabel
           
private  javax.swing.JScrollPane titleScrollPane
           
private  javax.swing.JTextArea titleTextArea
           
private  javax.swing.JComboBox userComboBox
           
private  javax.swing.JLabel userLabel
           
 
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
NewJobGUI()
          This is the default constructor
 
Method Summary
private  void addJob()
          Adds the job to the database.
private  void changeDueDate()
          Chanegs the dueDateDatButton value.
private  boolean checkInJob_Database(Job job)
          Perform the database related steps necessary to check-in the job.
private  boolean checkInJob_Physically(Job job)
          Perform the physically related steps necessary to check-in the job.
private  void extractJob(java.lang.String id, java.lang.String externalIDType)
          Extracts the job information from the selected plug in.
private  void fillBatchComboBox()
          Fills the batch ComboBox.
private  void fillCollectionComboBox()
          Fills the Collection ComboBox.
private  void fillConditionComboBox()
          Fills the job condition ComboBox.
private  void fillExternalIDTypeComboBox()
          Fills the externalIDType ComboBox.
private  void fillJobTypeComboBox()
          Fills the job type ComboBox.
private  void fillLanguageComboBox()
          Fills the language ComboBox.
private  void fillPhaseComboBox()
          Fills the phase ComboBox.
private  void fillPlugInComboBox()
          Fills the plugIn ComboBox.
private  void fillStorageComboBox()
          Fills the storage ComboBox.
private  void fillUserComboBox()
          Fills the phase ComboBox.
 javax.swing.JButton getAddButton()
           
private  javax.swing.JPanel getAssignJobPanel()
          This method initializes assignInfoPanel
private  javax.swing.JComboBox getBatchComboBox()
           
private  javax.swing.JLabel getBatchLabel()
           
private  java.lang.String getBibID(ExternalID[] externalIDs)
          Gets the value of the item whose type is BibID.
private  javax.swing.JComboBox getCollectionComboBox()
           
private  javax.swing.JLabel getCollectionLabel()
           
private  javax.swing.JComboBox getConditionComboBox()
           
private  javax.swing.JLabel getConditionLabel()
           
private  javax.swing.JLabel getCreatorLabel()
           
private  javax.swing.JTextField getCreatorTextField()
           
private  DateButton getDateDateButton()
           
private  javax.swing.JLabel getDateLabel()
           
private  DateButton getDueDateDateButton()
           
private  javax.swing.JLabel getDueDateLabel()
           
private  javax.swing.JLabel getExternalIDLabel()
          This method initializes externalID JLabel.
private  javax.swing.JButton getExternalIDsButton()
           
private  javax.swing.JLabel getExternalIDsLabel()
           
private  javax.swing.JTextField getExternalIDTextField()
          This method initializes externalID JTextField.
private  javax.swing.JComboBox getExternalIDTypeComboBox()
          This method initializes externalIDType JComboBox.
private  javax.swing.JLabel getExternalIDTypeLabel()
          This method initializes externalIDType JLabel.
private  javax.swing.JButton getExtractButton()
          This method initializes extract JButton.
private  javax.swing.JPanel getExtractInfoPanel()
          This method initializes extractInfoPanel
private  javax.swing.JLabel getInfo1Label()
           
private  javax.swing.JTextField getInfo1TextField()
           
private  javax.swing.JLabel getInfo2Label()
           
private  javax.swing.JTextField getInfo2TextField()
           
private  javax.swing.JLabel getInfo3Label()
           
private  javax.swing.JTextField getInfo3TextField()
           
private  javax.swing.JPanel getJobInfoPanel()
          This method initializes jobInfoPanel.
private  javax.swing.JComboBox getJobTypeComboBox()
           
 javax.swing.JLabel getJobTypeLabel()
           
private  javax.swing.JPanel getJPanel()
          initializes main Panel
private  javax.swing.JComboBox getLanguageComboBox()
           
private  javax.swing.JLabel getLanguageLabel()
           
private  javax.swing.JLabel getLobLabel()
           
private  javax.swing.JScrollPane getLobScrollPane()
           
private  javax.swing.JTextArea getLobTextArea()
           
private  javax.swing.JComboBox getPhaseComboBox()
           
private  javax.swing.JLabel getPhaseLabel()
           
private  javax.swing.JComboBox getPlugInComboBox()
          This method initializes PlugIn JComboBox.
private  javax.swing.JLabel getPlugInLabel()
          This method initializes PlugIn JLabel.
private  javax.swing.JButton getPreAssignButton()
          This method initializes preAssignButton
private  javax.swing.JLabel getPriorityLabel()
           
private  javax.swing.JTextField getPriorityTextField()
           
private  javax.swing.JButton getSearchButton()
          This method initializes searchButton
private  javax.swing.JComboBox getStorageComboBox()
           
private  javax.swing.JLabel getStorageLabel()
           
private  javax.swing.JLabel getTitleLabel()
           
private  javax.swing.JScrollPane getTitleScrollPane()
           
private  javax.swing.JTextArea getTitleTextArea()
           
private  javax.swing.JComboBox getUserComboBox()
           
private  javax.swing.JLabel getUserLabel()
           
private  void initialize()
          Initializes this instance.
private  void manageExternalIDs()
          Allows the user to manage the external IDs of the job
 void reloadManager()
           
private  void resetControls()
          Resets the text displayed on the controls.
private  void searchJob(java.lang.String id, java.lang.String externalIDType)
          Extracts the job information from the selected plug in.
private  void selectDefaultCondition()
          Selects the default job condition.
private  void selectDefaultExternalIDType()
          Selects the default externalID type.
private  void selectDefaultLanguage()
          Selects the default language.
private  void selectDefaultPlugIn()
          Selects the default plugin
private  void selectJobType()
          Select an item from the collection ComboBox that matches the selected bacth collection
private  void selectLanguageByAbbr(java.lang.String abbrv)
          Selects the language by abbreviation.
private  void showError(java.lang.String msg)
          Shows an Error MessageBox dialog.
private  void showMsg(java.lang.String msg)
          Shows a MessageBox dialog.
 
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

BIB_ID

private static final int BIB_ID
See Also:
Constant Field Values

SERIAL_ID

private static final int SERIAL_ID
See Also:
Constant Field Values

jPanel

private javax.swing.JPanel jPanel

extractInfoPanel

private javax.swing.JPanel extractInfoPanel

externalIDLabel

private javax.swing.JLabel externalIDLabel

externalIDTextField

private javax.swing.JTextField externalIDTextField

externalIDTypeLabel

private javax.swing.JLabel externalIDTypeLabel

externalIDTypeComboBox

private javax.swing.JComboBox externalIDTypeComboBox

plugInLabel

private javax.swing.JLabel plugInLabel

plugInComboBox

private javax.swing.JComboBox plugInComboBox

extractButton

private javax.swing.JButton extractButton

jobInfoPanel

private javax.swing.JPanel jobInfoPanel

titleLabel

private javax.swing.JLabel titleLabel

titleScrollPane

private javax.swing.JScrollPane titleScrollPane

titleTextArea

private javax.swing.JTextArea titleTextArea

creatorLabel

private javax.swing.JLabel creatorLabel

creatorTextField

private javax.swing.JTextField creatorTextField

externalIDsLabel

private javax.swing.JLabel externalIDsLabel

externalIDsButton

private javax.swing.JButton externalIDsButton

dateLabel

private javax.swing.JLabel dateLabel

dateDateButton

private DateButton dateDateButton

info1Label

private javax.swing.JLabel info1Label

info1TextField

private javax.swing.JTextField info1TextField

info2Label

private javax.swing.JLabel info2Label

info2TextField

private javax.swing.JTextField info2TextField

info3Label

private javax.swing.JLabel info3Label

info3TextField

private javax.swing.JTextField info3TextField

lobLabel

private javax.swing.JLabel lobLabel

lobScrollPane

private javax.swing.JScrollPane lobScrollPane

lobTextArea

private javax.swing.JTextArea lobTextArea

dueDateLabel

private javax.swing.JLabel dueDateLabel

dueDateDateButton

private DateButton dueDateDateButton

priorityLabel

private javax.swing.JLabel priorityLabel

priorityTextField

private javax.swing.JTextField priorityTextField

collectionLabel

private javax.swing.JLabel collectionLabel

collectionComboBox

private javax.swing.JComboBox collectionComboBox

batchLabel

private javax.swing.JLabel batchLabel

batchComboBox

private javax.swing.JComboBox batchComboBox

storageLabel

private javax.swing.JLabel storageLabel

storageComboBox

private javax.swing.JComboBox storageComboBox

jobTypeLabel

private javax.swing.JLabel jobTypeLabel

jobTypeComboBox

private javax.swing.JComboBox jobTypeComboBox

languageLabel

private javax.swing.JLabel languageLabel

languageComboBox

private javax.swing.JComboBox languageComboBox

conditionLabel

private javax.swing.JLabel conditionLabel

conditionComboBox

private javax.swing.JComboBox conditionComboBox

assignJobPanel

private javax.swing.JPanel assignJobPanel

phaseLabel

private javax.swing.JLabel phaseLabel

phaseComboBox

private javax.swing.JComboBox phaseComboBox

userLabel

private javax.swing.JLabel userLabel

userComboBox

private javax.swing.JComboBox userComboBox

addButton

private javax.swing.JButton addButton

preAssignButton

private javax.swing.JButton preAssignButton

searchButton

private javax.swing.JButton searchButton

plugIn

private ICheckInPlugIn plugIn

externalIDs

private ExternalID[] externalIDs

phaseUserPreAssignedEntries

private java.lang.Object[] phaseUserPreAssignedEntries

errorMsg

private java.lang.String errorMsg
Constructor Detail

NewJobGUI

public NewJobGUI()
This is the default constructor

Method Detail

initialize

private void initialize()
Initializes this instance.


reloadManager

public void reloadManager()
Specified by:
reloadManager in class BaseManagerGUI
See Also:
BaseManagerGUI.reloadManager()

selectDefaultExternalIDType

private void selectDefaultExternalIDType()
Selects the default externalID type.


selectDefaultPlugIn

private void selectDefaultPlugIn()
Selects the default plugin


selectDefaultLanguage

private void selectDefaultLanguage()
Selects the default language.


selectDefaultCondition

private void selectDefaultCondition()
Selects the default job condition.


getJPanel

private javax.swing.JPanel getJPanel()
initializes main Panel

Returns:
jPanel (Main Panel)

getExtractInfoPanel

private javax.swing.JPanel getExtractInfoPanel()
This method initializes extractInfoPanel

Returns:
javax.swing.JPanel

getExternalIDLabel

private javax.swing.JLabel getExternalIDLabel()
This method initializes externalID JLabel.

Returns:
javax.swing.JLabel

getExternalIDTextField

private javax.swing.JTextField getExternalIDTextField()
This method initializes externalID JTextField.

Returns:
javax.swing.JTextField

getExternalIDTypeLabel

private javax.swing.JLabel getExternalIDTypeLabel()
This method initializes externalIDType JLabel.

Returns:
javax.swing.JLabel

getExternalIDTypeComboBox

private javax.swing.JComboBox getExternalIDTypeComboBox()
This method initializes externalIDType JComboBox.

Returns:
javax.swing.JComboBox

fillExternalIDTypeComboBox

private void fillExternalIDTypeComboBox()
Fills the externalIDType ComboBox. The ComboBox is filled by loading all records from the table ExternalID_Type. A default entry, (-1, <None>), is added to indicate that nothing is selected.


getPlugInLabel

private javax.swing.JLabel getPlugInLabel()
This method initializes PlugIn JLabel.

Returns:
javax.swing.JLabel

getPlugInComboBox

private javax.swing.JComboBox getPlugInComboBox()
This method initializes PlugIn JComboBox.

Returns:
javax.swing.JComboBox

fillPlugInComboBox

private void fillPlugInComboBox()
Fills the plugIn ComboBox. The ComboBox is filled by the names of the classes that implement ICheckInPlugIn interface. Note: Only classes in the package "Managers.CheckIn" are added. A default entry, (-1, <None>), is added to indicate that nothing is selected.


getExtractButton

private javax.swing.JButton getExtractButton()
This method initializes extract JButton.

Returns:
javax.swing.JButton

extractJob

private void extractJob(java.lang.String id,
                        java.lang.String externalIDType)
Extracts the job information from the selected plug in.

Parameters:
id - The ID of the job.
externalIDType - The extrenal ID type of the job.

getJobInfoPanel

private javax.swing.JPanel getJobInfoPanel()
This method initializes jobInfoPanel.

Returns:
javax.swing.JPanel

getTitleLabel

private javax.swing.JLabel getTitleLabel()
Returns:
Returns the titleLabel.

getTitleScrollPane

private javax.swing.JScrollPane getTitleScrollPane()
Returns:
Return the titleScrollPane

getTitleTextArea

private javax.swing.JTextArea getTitleTextArea()
Returns:
Returns the titleTextArea.

getCreatorLabel

private javax.swing.JLabel getCreatorLabel()
Returns:
Returns the creatorLabel.

getCreatorTextField

private javax.swing.JTextField getCreatorTextField()
Returns:
Returns the creatorTextField.

getExternalIDsLabel

private javax.swing.JLabel getExternalIDsLabel()
Returns:
Returns the externalIDsLabel.

getExternalIDsButton

private javax.swing.JButton getExternalIDsButton()
Returns:
Returns the externalIDsButton.

manageExternalIDs

private void manageExternalIDs()
Allows the user to manage the external IDs of the job


getDateLabel

private javax.swing.JLabel getDateLabel()
Returns:
Returns the dateLabel.

getDateDateButton

private DateButton getDateDateButton()
Returns:
Returns the dateDateButton.

getInfo1Label

private javax.swing.JLabel getInfo1Label()
Returns:
Returns the info1Label.

getInfo1TextField

private javax.swing.JTextField getInfo1TextField()
Returns:
Returns the info1TextField.

getInfo2Label

private javax.swing.JLabel getInfo2Label()
Returns:
Returns the info2Label.

getInfo2TextField

private javax.swing.JTextField getInfo2TextField()
Returns:
Returns the info2TextField.

getInfo3Label

private javax.swing.JLabel getInfo3Label()
Returns:
Returns the info3Label.

getInfo3TextField

private javax.swing.JTextField getInfo3TextField()
Returns:
Returns the info3TextField.

getLobLabel

private javax.swing.JLabel getLobLabel()
Returns:
Returns the lobLabel.

getLobScrollPane

private javax.swing.JScrollPane getLobScrollPane()
Returns:
Return the lobScrollPane

getLobTextArea

private javax.swing.JTextArea getLobTextArea()
Returns:
Returns the lobTextField.

getLanguageLabel

private javax.swing.JLabel getLanguageLabel()
Returns:
Returns the languageLabel.

getLanguageComboBox

private javax.swing.JComboBox getLanguageComboBox()
Returns:
Returns the languageComboBox.

fillLanguageComboBox

private void fillLanguageComboBox()
Fills the language ComboBox. The ComboBox is filled by loading all records from the table Language.


selectLanguageByAbbr

private void selectLanguageByAbbr(java.lang.String abbrv)
Selects the language by abbreviation.

Parameters:
abbrv - The abbreviation of the language.

getConditionLabel

private javax.swing.JLabel getConditionLabel()
Returns:
Returns the conditionLabel.

getConditionComboBox

private javax.swing.JComboBox getConditionComboBox()
Returns:
Returns the conditionComboBox.

fillConditionComboBox

private void fillConditionComboBox()
Fills the job condition ComboBox. The ComboBox is filled by loading all records from the table JobCondition. A default entry, (-1, <None>), is added to indicate that nothing is selected.


getPriorityLabel

private javax.swing.JLabel getPriorityLabel()
Returns:
Returns the priorityLabel.

getPriorityTextField

private javax.swing.JTextField getPriorityTextField()
Returns:
Returns the priorityTextField.

getDueDateLabel

private javax.swing.JLabel getDueDateLabel()
Returns:
Returns the dueDateLabel.

getDueDateDateButton

private DateButton getDueDateDateButton()
Returns:
Returns the dueDateDateButton.

getCollectionLabel

private javax.swing.JLabel getCollectionLabel()
Returns:
Returns the collectionLabel.

getCollectionComboBox

private javax.swing.JComboBox getCollectionComboBox()
Returns:
Returns the collectionComboBox.

fillBatchComboBox

private void fillBatchComboBox()
Fills the batch ComboBox. The ComboBox is filled by loading all records from the table Batch.


fillCollectionComboBox

private void fillCollectionComboBox()
Fills the Collection ComboBox. The ComboBox is filled by loading all records from the table Collection.


getStorageLabel

private javax.swing.JLabel getStorageLabel()
Returns:
Returns the storageLabel.

getStorageComboBox

private javax.swing.JComboBox getStorageComboBox()
Returns:
Returns the storageComboBox.

fillStorageComboBox

private void fillStorageComboBox()
Fills the storage ComboBox. The ComboBox is filled by loading all records from the table Storage.


getBatchLabel

private javax.swing.JLabel getBatchLabel()
Returns:
Returns the batchLabel.

getBatchComboBox

private javax.swing.JComboBox getBatchComboBox()
Returns:
Returns the batchComboBox.

selectJobType

private void selectJobType()
Select an item from the collection ComboBox that matches the selected bacth collection


getJobTypeLabel

public javax.swing.JLabel getJobTypeLabel()
Returns:
Returns the jobTypeLabel.

getJobTypeComboBox

private javax.swing.JComboBox getJobTypeComboBox()
Returns:
Returns the jobTypeComboBox.

changeDueDate

private void changeDueDate()
Chanegs the dueDateDatButton value.


fillJobTypeComboBox

private void fillJobTypeComboBox()
Fills the job type ComboBox. The ComboBox is filled by loading all records from the table JobType.


getAssignJobPanel

private javax.swing.JPanel getAssignJobPanel()
This method initializes assignInfoPanel

Returns:
javax.swing.JPanel

getPhaseLabel

private javax.swing.JLabel getPhaseLabel()
Returns:
Returns the phaseLabel.

getPhaseComboBox

private javax.swing.JComboBox getPhaseComboBox()
Returns:
Returns the phaseComboBox.

fillPhaseComboBox

private void fillPhaseComboBox()
Fills the phase ComboBox. The ComboBox is filled by loading all records from the table Phase that correspond to the selected JobType. No default entry is added, because the "auto" phase exists.


getUserLabel

private javax.swing.JLabel getUserLabel()
Returns:
Returns the userLabel.

getUserComboBox

private javax.swing.JComboBox getUserComboBox()
Returns:
Returns the userComboBox.

fillUserComboBox

private void fillUserComboBox()
Fills the phase ComboBox. The ComboBox is filled by loading all records from the table Phase that correspond to the selected JobType. No default entry is added, because the "auto" user exists.


getAddButton

public javax.swing.JButton getAddButton()
Returns:
Returns the addButton.

addJob

private void addJob()
Adds the job to the database.


checkInJob_Database

private boolean checkInJob_Database(Job job)
Perform the database related steps necessary to check-in the job. The setps are as follows:
1) Add the job entry the job table.
2) Add the pre-assign entries to the TransactionLog table, if any.
3) Add the assign entry to the TransactionLog table.
4) Add the external IDs to the ExternalID tabel, if any, and make sure that the efault one is not repeated.
Note:
If the job external ID is of type SerialID, the BibID values is appended to the SerialID value.

Parameters:
job - The job to check in.
Returns:
True if and only if all the stpes needed to check-in the job are performed successfully.

getBibID

private java.lang.String getBibID(ExternalID[] externalIDs)
Gets the value of the item whose type is BibID.

Parameters:
externalIDs - The external IDs array to search for the item in.
Returns:
The value of the item whose type is BibID or null no such item is found.

checkInJob_Physically

private boolean checkInJob_Physically(Job job)
Perform the physically related steps necessary to check-in the job.

Parameters:
job - The job to check in.
Returns:
True if and only if all the stpes needed to check-in the job are performed successfully.

resetControls

private void resetControls()
Resets the text displayed on the controls.


showMsg

private void showMsg(java.lang.String msg)
Shows a MessageBox dialog.

Parameters:
msg - The name of the message to retrieve from the resource file.

showError

private void showError(java.lang.String msg)
Shows an Error MessageBox dialog.

Parameters:
msg - The name of the message to retrieve from the resource file.

getPreAssignButton

private javax.swing.JButton getPreAssignButton()
This method initializes preAssignButton

Returns:
javax.swing.JButton

getSearchButton

private javax.swing.JButton getSearchButton()
This method initializes searchButton

Returns:
javax.swing.JButton

searchJob

private void searchJob(java.lang.String id,
                       java.lang.String externalIDType)
Extracts the job information from the selected plug in.

Parameters:
id - The ID of the job.
externalIDType - The extrenal ID type of the job.