org.bibalex.daf.managers.checkin
Class RetrievalManagerGUI

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

public class RetrievalManagerGUI
extends BaseManagerGUI

The RetrievalManagerGUI GUI

Author:
fadi.edward
See Also:
Serialized Form

Nested Class Summary
private  class RetrievalManagerGUI.RetrievalPlugin
          Inner class to represent the retrival plugin objects
 
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  java.util.ArrayList<java.lang.Object> allRetrievalPlugins
          retrieval plugins is an array that stores all the current plugins, this array is to be of type RetrievalPlugin.
private  javax.swing.JLabel availableArchivesLabel
           
private  javax.swing.JScrollPane availableArchivesScrollPane
           
private  SortableTable availableArchivesTable
           
private  javax.swing.JLabel collectionLabel
           
private  javax.swing.JTextField collectionTextField
           
private  javax.swing.JLabel creatorLabel
           
private  javax.swing.JTextField creatorTextField
           
private  javax.swing.JLabel externalIDLabel
           
private  javax.swing.JTextField externalIDTextField
           
private  javax.swing.JLabel externalIDTypeLabel
           
private  javax.swing.JTextField externalIDTypeTextField
           
private  javax.swing.JLabel jobIDLabel
           
private  javax.swing.JTextField jobIDTextField
           
private  javax.swing.JLabel jobNameLabel
           
private  javax.swing.JLabel jobTypeLabel
           
private  javax.swing.JTextField jobTypeTextField
           
private  javax.swing.JPanel jPanel
           
private  javax.swing.JLabel languageLabel
           
private  javax.swing.JTextField languageTextField
           
protected  int lastSelectedPluginIndex
           
private  javax.swing.JTextField nameTextField
           
private  javax.swing.JCheckBox removeNonDefinedFilesCheckBox
           
private  javax.swing.JLabel retrievalPluginsLabel
           
private  javax.swing.JList retrievalPluginsList
           
private  javax.swing.JScrollPane retrievalPluginsScrollPane
           
private  javax.swing.JButton retrieveButton
           
private  RetrievalSearchDialog.IRetrieveSearchListener retrieveSearchListener
          An implementation of the IRetrieveSearchListener to detected selected item if there exists.
private  javax.swing.JButton searchButton
           
private  Job selectedJob
          Currently selected Job object.
private  javax.swing.JLabel separatorLabel
           
private  javax.swing.JLabel titleLabel
           
private  javax.swing.JTextField titleTextField
           
 
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
RetrievalManagerGUI()
          This is the default constructor
 
Method Summary
private  java.lang.String adjustDetailsPanel()
          Adjusts details Panel values according to the currently selected Role
private  boolean assignRetrievedJob()
          Assigns the retrieved Job or Changes its Job Type.
private  void ClearPluginsList()
          Adjusts details Panel values according to the currently selected Role
private  javax.swing.JScrollPane getAvailableArchivesScrollPane()
          This method initializes availableArchivesScrollPane
private  javax.swing.JTextField getCollectionTextField()
          This method initializes collectionTextField
private  javax.swing.JTextField getCreatorTextField()
          This method initializes creatorTextField
private  javax.swing.JTextField getExternalIDTextField()
          This method initializes externalIDTextField
private  javax.swing.JTextField getExternalIDTypeTextField()
          This method initializes externalIDTypeTextField
private  javax.swing.JTextField getJobIDTextField()
          This method initializes jobIDTextField
private  javax.swing.JTextField getJobTypeTextField()
          This method initializes jobTypeTextField
private  javax.swing.JPanel getJPanel()
          initializes main Panel
private  javax.swing.JTextField getLanguageTextField()
          This method initializes languageTextField
private  javax.swing.JTextField getNameTextField()
          This method initializes nameTextField
private  javax.swing.JCheckBox getRemoveNonDefinedFilesCheckBox()
          This method initializes removeNonDefinedFilesCheckBox
private  javax.swing.JList getRetrievalPluginsList()
          This method initializes retrievalPluginsList
private  javax.swing.JScrollPane getRetrievalPluginsScrollPane()
           
private  javax.swing.JButton getRetrieveButton()
          This method initializes retrieveButton
private  javax.swing.JButton getSearchButton()
          This method initializes searchButton
private  javax.swing.JTextField getTitleTextField()
          This method initializes titleTextField
private  void initialize()
          Initializes this instance.
private  void loadAvailableArchivesTable()
          Loads the archiving Information into the Sortable table.
private  void loadRetrievalPluginsList()
          This method loads the available
private  void loadUIValues()
          This methods reloads the UI values (Text boxes and tables) from the newly selected Job Object.
 void reloadManager()
          Reloads the Retrieval Manager.
 
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

searchButton

private javax.swing.JButton searchButton

jobIDLabel

private javax.swing.JLabel jobIDLabel

jobNameLabel

private javax.swing.JLabel jobNameLabel

titleLabel

private javax.swing.JLabel titleLabel

externalIDLabel

private javax.swing.JLabel externalIDLabel

externalIDTypeLabel

private javax.swing.JLabel externalIDTypeLabel

languageLabel

private javax.swing.JLabel languageLabel

creatorLabel

private javax.swing.JLabel creatorLabel

jobTypeLabel

private javax.swing.JLabel jobTypeLabel

collectionLabel

private javax.swing.JLabel collectionLabel

jobIDTextField

private javax.swing.JTextField jobIDTextField

separatorLabel

private javax.swing.JLabel separatorLabel

nameTextField

private javax.swing.JTextField nameTextField

titleTextField

private javax.swing.JTextField titleTextField

externalIDTextField

private javax.swing.JTextField externalIDTextField

jobTypeTextField

private javax.swing.JTextField jobTypeTextField

languageTextField

private javax.swing.JTextField languageTextField

creatorTextField

private javax.swing.JTextField creatorTextField

externalIDTypeTextField

private javax.swing.JTextField externalIDTypeTextField

collectionTextField

private javax.swing.JTextField collectionTextField

availableArchivesScrollPane

private javax.swing.JScrollPane availableArchivesScrollPane

retrievalPluginsScrollPane

private javax.swing.JScrollPane retrievalPluginsScrollPane

availableArchivesTable

private SortableTable availableArchivesTable

availableArchivesLabel

private javax.swing.JLabel availableArchivesLabel

retrievalPluginsList

private javax.swing.JList retrievalPluginsList

retrieveButton

private javax.swing.JButton retrieveButton

retrievalPluginsLabel

private javax.swing.JLabel retrievalPluginsLabel

selectedJob

private Job selectedJob
Currently selected Job object.

See Also:
Entities.Job.Job

lastSelectedPluginIndex

protected int lastSelectedPluginIndex

allRetrievalPlugins

private java.util.ArrayList<java.lang.Object> allRetrievalPlugins
retrieval plugins is an array that stores all the current plugins, this array is to be of type RetrievalPlugin.

See Also:
RetrievalManagerGUI.RetrievalPlugin

retrieveSearchListener

private RetrievalSearchDialog.IRetrieveSearchListener retrieveSearchListener
An implementation of the IRetrieveSearchListener to detected selected item if there exists.

See Also:
Managers.CheckIn.RetrievalSearchDialog.IRetrieveSearchListener

removeNonDefinedFilesCheckBox

private javax.swing.JCheckBox removeNonDefinedFilesCheckBox
Constructor Detail

RetrievalManagerGUI

public RetrievalManagerGUI()
This is the default constructor

Method Detail

initialize

private void initialize()
Initializes this instance.


getJPanel

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

Returns:
jPanel (Main Panel)

reloadManager

public void reloadManager()
Reloads the Retrieval Manager.

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

getSearchButton

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

Returns:
javax.swing.JButton

loadUIValues

private void loadUIValues()
This methods reloads the UI values (Text boxes and tables) from the newly selected Job Object.


getJobIDTextField

private javax.swing.JTextField getJobIDTextField()
This method initializes jobIDTextField

Returns:
javax.swing.JTextField

getNameTextField

private javax.swing.JTextField getNameTextField()
This method initializes nameTextField

Returns:
javax.swing.JTextField

getTitleTextField

private javax.swing.JTextField getTitleTextField()
This method initializes titleTextField

Returns:
javax.swing.JTextField

getExternalIDTextField

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

Returns:
javax.swing.JTextField

getJobTypeTextField

private javax.swing.JTextField getJobTypeTextField()
This method initializes jobTypeTextField

Returns:
javax.swing.JTextField

getLanguageTextField

private javax.swing.JTextField getLanguageTextField()
This method initializes languageTextField

Returns:
javax.swing.JTextField

getCreatorTextField

private javax.swing.JTextField getCreatorTextField()
This method initializes creatorTextField

Returns:
javax.swing.JTextField

getExternalIDTypeTextField

private javax.swing.JTextField getExternalIDTypeTextField()
This method initializes externalIDTypeTextField

Returns:
javax.swing.JTextField

getCollectionTextField

private javax.swing.JTextField getCollectionTextField()
This method initializes collectionTextField

Returns:
javax.swing.JTextField

getAvailableArchivesScrollPane

private javax.swing.JScrollPane getAvailableArchivesScrollPane()
This method initializes availableArchivesScrollPane

Returns:
javax.swing.JScrollPane

loadAvailableArchivesTable

private void loadAvailableArchivesTable()
Loads the archiving Information into the Sortable table.


assignRetrievedJob

private boolean assignRetrievedJob()
Assigns the retrieved Job or Changes its Job Type.

Returns:
true if assign was successfull, false otherwise.

getRetrievalPluginsList

private javax.swing.JList getRetrievalPluginsList()
This method initializes retrievalPluginsList

Returns:
javax.swing.JList

getRetrievalPluginsScrollPane

private javax.swing.JScrollPane getRetrievalPluginsScrollPane()

loadRetrievalPluginsList

private void loadRetrievalPluginsList()
This method loads the available


getRetrieveButton

private javax.swing.JButton getRetrieveButton()
This method initializes retrieveButton

Returns:
javax.swing.JButton

adjustDetailsPanel

private java.lang.String adjustDetailsPanel()
Adjusts details Panel values according to the currently selected Role


ClearPluginsList

private void ClearPluginsList()
Adjusts details Panel values according to the currently selected Role


getRemoveNonDefinedFilesCheckBox

private javax.swing.JCheckBox getRemoveNonDefinedFilesCheckBox()
This method initializes removeNonDefinedFilesCheckBox

Returns:
javax.swing.JCheckBox