org.bibalex.daf.managers
Class MainControllerGUI
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.bibalex.daf.managers.MainControllerGUI
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
public class MainControllerGUI
- extends javax.swing.JFrame
This class represents the main UI manager of the system, it also initializes all system managers.
It also contains the main method.
- Author:
- Fadi.Edward
- See Also:
main(String[])
,
Serialized Form
Nested classes/interfaces inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
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 |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
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, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
private static boolean |
checkRetrievArgs(java.lang.String[] arguments)
check retrieval arguments |
private static boolean |
commandLineExecuter(java.lang.String[] arguments)
this method executes when the application called using command line |
private boolean |
Connect()
|
private static boolean |
finish(java.lang.String[] arguments)
This method executes "finish" command line function |
private static boolean |
finishArchiving(java.lang.String[] arguments)
This method executes "finish_Archiving" command line function |
private javax.swing.JMenuItem |
getAboutMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenuItem |
getAdminMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenuItem |
getArchivingMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenuItem |
getCheckInMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenuItem |
getConnectMenuItem()
|
private javax.swing.JMenuItem |
getDisconnectMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenuItem |
getExitMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenu |
getHelpMenu()
This method initializes jMenu |
private javax.swing.JMenuItem |
getHowToUseMenuItem()
|
private javax.swing.JPanel |
getJContentPane()
This method initializes jContentPane |
private javax.swing.JMenuBar |
getJJMenuBar()
This method initializes jJMenuBar |
private javax.swing.JPanel |
getJMainPanel()
This method initializes jMainPanel |
private javax.swing.JMenu |
getLoginMenu()
This method initializes jMenu |
static MainControllerGUI |
getMainControllerGUI()
Retreives the MainControllerGUI object |
private javax.swing.JMenuItem |
getPhaseMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenuItem |
getReportingMenuItem()
This method initializes jMenuItem |
private javax.swing.JMenuItem |
getReportProblemMenuItem()
|
private javax.swing.JMenu |
getViewsMenu()
This method initializes viewsMenu |
private void |
initialize()
This method initializes the MainControllerGUI |
private void |
loadViewsAndMenus()
|
static void |
main(java.lang.String[] args)
|
private static void |
printHelp()
This methods prints DAFv2 help |
private void |
reConstructViewsMenu()
|
private void |
reDrawGUI()
|
private static boolean |
reject(java.lang.String[] arguments)
This method executes "reject" command line function |
private void |
reOrderViews()
|
private static boolean |
retrieve(java.lang.String[] arguments)
this methos retrieves job into workflow |
void |
setClientTitle(java.lang.String newTitle)
Sets the main Client title. |
private static boolean |
start(java.lang.String[] arguments)
This method executes "start" command line function |
private static boolean |
startArchiving(java.lang.String[] arguments)
This method executes "start_archiving" command line function |
private void |
unloadViewsAndMenus()
|
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, 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, 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, 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 |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
mainControllerGUI
private static MainControllerGUI mainControllerGUI
mainController
private static MainController mainController
jContentPane
private javax.swing.JPanel jContentPane
jMainPanel
private javax.swing.JPanel jMainPanel
jJMenuBar
private javax.swing.JMenuBar jJMenuBar
loginMenu
private javax.swing.JMenu loginMenu
viewsMenu
private javax.swing.JMenu viewsMenu
helpMenu
private javax.swing.JMenu helpMenu
exitMenuItem
private javax.swing.JMenuItem exitMenuItem
aboutMenuItem
private javax.swing.JMenuItem aboutMenuItem
howToUseMenuItem
private javax.swing.JMenuItem howToUseMenuItem
reportProblemMenuItem
private javax.swing.JMenuItem reportProblemMenuItem
disconnectMenuItem
private javax.swing.JMenuItem disconnectMenuItem
connectMenuItem
private javax.swing.JMenuItem connectMenuItem
adminMenuItem
private javax.swing.JMenuItem adminMenuItem
phaseMenuItem
private javax.swing.JMenuItem phaseMenuItem
checkInMenuItem
private javax.swing.JMenuItem checkInMenuItem
reportingMenuItem
private javax.swing.JMenuItem reportingMenuItem
archivingMenuItem
private javax.swing.JMenuItem archivingMenuItem
adminManagerGUI
private AdminManagerGUI adminManagerGUI
phaseManagerGUI
private PhaseManagerGUI phaseManagerGUI
checkInManagerGUI
private CheckInManagerGUI checkInManagerGUI
reportingManagerGUI
private ReportingManagerGUI reportingManagerGUI
archivingManagerGUI
private ArchivingManagerGUI archivingManagerGUI
checkedImageIcon
private javax.swing.ImageIcon checkedImageIcon
unCheckedImageIcon
private javax.swing.ImageIcon unCheckedImageIcon
selectedView
private MainController.Views selectedView
loginActionListener
private LoginDialog.ILoginActionListener loginActionListener
resourceManager
private ResourceManager resourceManager
operationList
private static java.util.ArrayList operationList
MainControllerGUI
public MainControllerGUI()
- This is the default constructor
getViewsMenu
private javax.swing.JMenu getViewsMenu()
- This method initializes viewsMenu
- Returns:
- javax.swing.JMenu
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
initialize
private void initialize()
- This method initializes the MainControllerGUI
getJContentPane
private javax.swing.JPanel getJContentPane()
- This method initializes jContentPane
- Returns:
- javax.swing.JPanel
getJMainPanel
private javax.swing.JPanel getJMainPanel()
- This method initializes jMainPanel
- Returns:
- javax.swing.JPanel
loadViewsAndMenus
private void loadViewsAndMenus()
unloadViewsAndMenus
private void unloadViewsAndMenus()
getJJMenuBar
private javax.swing.JMenuBar getJJMenuBar()
- This method initializes jJMenuBar
- Returns:
- javax.swing.JMenuBar
getLoginMenu
private javax.swing.JMenu getLoginMenu()
- This method initializes jMenu
- Returns:
- javax.swing.JMenu
getConnectMenuItem
private javax.swing.JMenuItem getConnectMenuItem()
getHelpMenu
private javax.swing.JMenu getHelpMenu()
- This method initializes jMenu
- Returns:
- javax.swing.JMenu
getReportProblemMenuItem
private javax.swing.JMenuItem getReportProblemMenuItem()
getHowToUseMenuItem
private javax.swing.JMenuItem getHowToUseMenuItem()
getExitMenuItem
private javax.swing.JMenuItem getExitMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
getAboutMenuItem
private javax.swing.JMenuItem getAboutMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
getPhaseMenuItem
private javax.swing.JMenuItem getPhaseMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
getAdminMenuItem
private javax.swing.JMenuItem getAdminMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
getCheckInMenuItem
private javax.swing.JMenuItem getCheckInMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
getReportingMenuItem
private javax.swing.JMenuItem getReportingMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
getArchivingMenuItem
private javax.swing.JMenuItem getArchivingMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
getDisconnectMenuItem
private javax.swing.JMenuItem getDisconnectMenuItem()
- This method initializes jMenuItem
- Returns:
- javax.swing.JMenuItem
reDrawGUI
private void reDrawGUI()
reOrderViews
private void reOrderViews()
reConstructViewsMenu
private void reConstructViewsMenu()
getMainControllerGUI
public static MainControllerGUI getMainControllerGUI()
- Retreives the MainControllerGUI object
- Returns:
- MainControllerGUI Current Object
Connect
private boolean Connect()
setClientTitle
public void setClientTitle(java.lang.String newTitle)
- Sets the main Client title.
- Parameters:
newTitle
- The new Title of the Application.
commandLineExecuter
private static boolean commandLineExecuter(java.lang.String[] arguments)
- this method executes when the application called using command line
- Parameters:
arguments
-
- Returns:
- true if successfull, false otherwise.
start
private static boolean start(java.lang.String[] arguments)
- This method executes "start" command line function
- Parameters:
arguments
- parameters passed to command line
- Returns:
- true on success and false otherwise
finish
private static boolean finish(java.lang.String[] arguments)
- This method executes "finish" command line function
- Parameters:
arguments
- parameters passed to command line
- Returns:
- true on success and false otherwise
reject
private static boolean reject(java.lang.String[] arguments)
- This method executes "reject" command line function
- Parameters:
arguments
- parameters passed to command line
- Returns:
- true on success and false otherwise
printHelp
private static void printHelp()
- This methods prints DAFv2 help
startArchiving
private static boolean startArchiving(java.lang.String[] arguments)
- This method executes "start_archiving" command line function
- Parameters:
arguments
- parameters passed to command line
- Returns:
- true on success and false otherwise
finishArchiving
private static boolean finishArchiving(java.lang.String[] arguments)
- This method executes "finish_Archiving" command line function
- Parameters:
arguments
- parameters passed to command line
- Returns:
- true on success and false otherwise
retrieve
private static boolean retrieve(java.lang.String[] arguments)
- this methos retrieves job into workflow
- Parameters:
arguments
-
- Returns:
- true on success, false otherwise
checkRetrievArgs
private static boolean checkRetrievArgs(java.lang.String[] arguments)
- check retrieval arguments
- Parameters:
arguments
-
- Returns:
- true on success, false otherwise