org.bibalex.daf.managers.report
Class JobMetaData

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by org.bibalex.daf.managers.report.JobMetaData
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class JobMetaData
extends javax.swing.JDialog

This class is a dialog views the job meta data.

Author:
Shehab.Kamal and Mohammed.Abouoda
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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.JComboBox batchComboBox
           
private  javax.swing.JLabel batchLabel
           
private  javax.swing.JButton closeButton
           
private  javax.swing.JComboBox conditionComboBox
           
private  javax.swing.JLabel conditionLabel
           
private  DateButton dateDateButton
           
private  javax.swing.JLabel dateLabel
           
(package private)  java.util.Date dueDate
           
private  javax.swing.JLabel externalIDsLabel
           
private  javax.swing.JLabel IDLabel1
           
private  javax.swing.JLabel IDLabel2
           
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  Job job
           
private  javax.swing.JPanel jobInfoPanel
           
(package private)  JobMetaData jobMetaData
           
private  javax.swing.JComboBox jobTypeComboBox
           
private  javax.swing.JLabel jobTypeLabel
           
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.JLabel priorityLabel
           
private  javax.swing.JTextField priorityTextField
           
private  ResourceManager resourceManager
           
private  javax.swing.JButton saveButton
           
private  javax.swing.JComboBox storageComboBox
           
private  javax.swing.JLabel storageLabel
           
private  javax.swing.JLabel titleLabel
           
private  javax.swing.JTextField titleTextField
           
private  javax.swing.JButton viewExternalIDsButton
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JobMetaData(int jobID)
           
JobMetaData(int jobID, javax.swing.JDialog parent)
          Creates a new instance of JobMetaData.
 
Method Summary
private  void adjustControls()
          adjusts the text displayed on the controls.
private  void fillBatchComboBox()
          Fills the batch ComboBox.
private  void fillConditionComboBox()
          Fills the job condition ComboBox.
private  void fillJobTypeComboBox()
          Fills the job type ComboBox.
private  void fillLanguageComboBox()
          Fills the language ComboBox.
private  void fillStorageComboBox()
          Fills the storage ComboBox.
private  javax.swing.JComboBox getBatchComboBox()
           
private  javax.swing.JLabel getBatchLabel()
           
private  javax.swing.JButton getCloseButton()
           
private  javax.swing.JComboBox getConditionComboBox()
           
private  javax.swing.JLabel getConditionLabel()
           
private  javax.swing.JButton getDateButton()
           
private  javax.swing.JLabel getDateLabel()
           
private  javax.swing.JLabel getExternalIDsLabel()
           
private  javax.swing.JLabel getIDLabel1()
           
private  javax.swing.JLabel getIDLabel2()
           
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.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.JLabel getPriorityLabel()
           
private  javax.swing.JTextField getPriorityTextField()
           
private  javax.swing.JButton getSaveButton()
           
private  javax.swing.JComboBox getStorageComboBox()
           
private  javax.swing.JLabel getStorageLabel()
           
private  javax.swing.JLabel getTitleLabel()
           
private  javax.swing.JTextField getTitleTextField()
           
private  javax.swing.JButton getViewExternalIDsButton()
           
private  void initialize()
          Initializes this instance.
private  void showError(java.lang.String msg)
          Shows an Error MessageBox dialog.
private  void showExternalIDsViewer()
           
private  boolean validateValues()
           
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

job

private Job job

resourceManager

private ResourceManager resourceManager

jobInfoPanel

private javax.swing.JPanel jobInfoPanel

IDLabel1

private javax.swing.JLabel IDLabel1

IDLabel2

private javax.swing.JLabel IDLabel2

titleLabel

private javax.swing.JLabel titleLabel

titleTextField

private javax.swing.JTextField titleTextField

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

priorityLabel

private javax.swing.JLabel priorityLabel

priorityTextField

private javax.swing.JTextField priorityTextField

languageLabel

private javax.swing.JLabel languageLabel

languageComboBox

private javax.swing.JComboBox languageComboBox

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

conditionLabel

private javax.swing.JLabel conditionLabel

conditionComboBox

private javax.swing.JComboBox conditionComboBox

externalIDsLabel

private javax.swing.JLabel externalIDsLabel

viewExternalIDsButton

private javax.swing.JButton viewExternalIDsButton

closeButton

private javax.swing.JButton closeButton

saveButton

private javax.swing.JButton saveButton

jobMetaData

JobMetaData jobMetaData

dueDate

java.util.Date dueDate
Constructor Detail

JobMetaData

public JobMetaData(int jobID,
                   javax.swing.JDialog parent)
Creates a new instance of JobMetaData.

Parameters:
jobID - The ID of the job to view its metadata.

JobMetaData

public JobMetaData(int jobID)
Method Detail

initialize

private void initialize()
Initializes this instance.


getJobInfoPanel

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

Returns:
javax.swing.JPanel

getIDLabel1

private javax.swing.JLabel getIDLabel1()
Returns:
Returns the IDLabel1.

getIDLabel2

private javax.swing.JLabel getIDLabel2()
Returns:
Returns the IDLabel2.

getTitleLabel

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

getTitleTextField

private javax.swing.JTextField getTitleTextField()
Returns:
Returns the titleTextField.

getDateLabel

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

getDateButton

private javax.swing.JButton getDateButton()
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.

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.


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.

getPriorityLabel

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

getPriorityTextField

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

getBatchLabel

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

getBatchComboBox

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

fillBatchComboBox

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


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.


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.


getJobTypeLabel

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

getJobTypeComboBox

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

fillJobTypeComboBox

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


getExternalIDsLabel

private javax.swing.JLabel getExternalIDsLabel()
Returns:
Returns the Metadata Label.

getViewExternalIDsButton

private javax.swing.JButton getViewExternalIDsButton()
Returns:
Returns the ViewMetadata Button.

showExternalIDsViewer

private void showExternalIDsViewer()

getCloseButton

private javax.swing.JButton getCloseButton()

getSaveButton

private javax.swing.JButton getSaveButton()

validateValues

private boolean validateValues()

adjustControls

private void adjustControls()
adjusts the text displayed on the controls.


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.