gui
Class Menu

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JMenuBar
                  extended by gui.Menu
All Implemented Interfaces:
GuiConstants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.MenuElement

public class Menu
extends javax.swing.JMenuBar
implements GuiConstants

The Menu bar for the application. Draws Menu and adds action listeners for the menu items.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JMenuBar
javax.swing.JMenuBar.AccessibleJMenuBar
 
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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JMenuItem itmAbout
           
private  javax.swing.JMenuItem itmColumnAdd
           
private  javax.swing.JMenuItem itmColumnDelete
           
private  javax.swing.JMenuItem itmExit
           
private  javax.swing.JMenuItem itmExportToDB
           
private  javax.swing.JMenuItem itmExportToText
           
private  javax.swing.JMenuItem itmImport
           
private  javax.swing.JMenuItem itmLF1
           
private  javax.swing.JMenuItem itmLF2
           
private  javax.swing.JMenuItem itmLF3
           
private  javax.swing.JMenuItem itmLF4
           
private  javax.swing.JMenuItem itmRecordAdd
           
private  javax.swing.JMenuItem itmRecordDelete
           
private  javax.swing.JMenuItem itmUserManual
           
private static long serialVersionUID
           
 
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 gui.GuiConstants
ABOUT_FILE_FORMAT_CONVERTER, ABOUT_NOT_FOUND, BAD_URL, BROWSER_NOT_INSTALLED, buttonNames, CHANGE_DATA_TYPE, COLUMN_NAME_TOOLTIP, DATA_HEADING, DATA_TABLE, EMPTY, FIELD_HEADING, FILE_FORMAT_CONVERTER, HTML_ABOUT, IMAGE_PATH, LS, MAIN_HEADING, MENU_DATA, MENU_FILE, MENU_HELP, MENU_ITEM_DATA_COLUMN, MENU_ITEM_DATA_COLUMN_ADD, MENU_ITEM_DATA_COLUMN_DELETE, MENU_ITEM_DATA_RECORD, MENU_ITEM_DATA_RECORD_ADD, MENU_ITEM_DATA_RECORD_DELETE, MENU_ITEM_FILE_EXIT, MENU_ITEM_FILE_EXPORT, MENU_ITEM_FILE_EXPORT_DB, MENU_ITEM_FILE_EXPORT_TEXT, MENU_ITEM_FILE_IMPORT, MENU_ITEM_HELP_ABOUT, MENU_ITEM_HELP_MANUAL, MENU_ITEM_SETTINGS_LOOK, MENU_ITEM_SETTINGS_LOOK_1, MENU_ITEM_SETTINGS_LOOK_2, MENU_ITEM_SETTINGS_LOOK_3, MENU_ITEM_SETTINGS_LOOK_4, MENU_SETTINGS, OF, OK, RECORD, SINGLE_RECORD, SITE_NAME, SPACE, SPLASH_SCREEN, TYPE_HEADING, WEBSITE_NOT_EXIST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Menu(GuiFrame parent)
          Constructor for Menu.
 
Method Summary
 javax.swing.JMenuItem getItmAbout()
           
 javax.swing.JMenuItem getItmColumnAdd()
           
 javax.swing.JMenuItem getItmColumnDelete()
           
 javax.swing.JMenuItem getItmExit()
           
 javax.swing.JMenuItem getItmExportDB()
           
 javax.swing.JMenuItem getItmExportText()
           
 javax.swing.JMenuItem getItmImport()
          Getters for the menu items.
 javax.swing.JMenuItem getItmLF1()
           
 javax.swing.JMenuItem getItmLF2()
           
 javax.swing.JMenuItem getItmLF3()
           
 javax.swing.JMenuItem getItmLF4()
           
 javax.swing.JMenuItem getItmRecordAdd()
           
 javax.swing.JMenuItem getItmRecordDelete()
           
 javax.swing.JMenuItem getItmTableAddColumn()
           
 javax.swing.JMenuItem getItmTableDeleteColumn()
           
 javax.swing.JMenuItem getItmUserManual()
           
 void setItmColumnAdd(javax.swing.JMenuItem itmColumnAdd)
           
 void setItmColumnDelete(javax.swing.JMenuItem itmColumnDelete)
           
 boolean updateDataMenuStatus(boolean showDataMenu)
           
 
Methods inherited from class javax.swing.JMenuBar
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

itmImport

private javax.swing.JMenuItem itmImport

itmExportToText

private javax.swing.JMenuItem itmExportToText

itmExportToDB

private javax.swing.JMenuItem itmExportToDB

itmExit

private javax.swing.JMenuItem itmExit

itmRecordAdd

private javax.swing.JMenuItem itmRecordAdd

itmRecordDelete

private javax.swing.JMenuItem itmRecordDelete

itmColumnAdd

private javax.swing.JMenuItem itmColumnAdd

itmColumnDelete

private javax.swing.JMenuItem itmColumnDelete

itmLF1

private javax.swing.JMenuItem itmLF1

itmLF2

private javax.swing.JMenuItem itmLF2

itmLF3

private javax.swing.JMenuItem itmLF3

itmLF4

private javax.swing.JMenuItem itmLF4

itmAbout

private javax.swing.JMenuItem itmAbout

itmUserManual

private javax.swing.JMenuItem itmUserManual
Constructor Detail

Menu

public Menu(GuiFrame parent)
Constructor for Menu. Builds Menu, adds action listeners to the menu items.

Parameters:
parent - - GuiFrame.
Method Detail

getItmImport

public javax.swing.JMenuItem getItmImport()
Getters for the menu items.


getItmExportText

public javax.swing.JMenuItem getItmExportText()

getItmExportDB

public javax.swing.JMenuItem getItmExportDB()

getItmRecordAdd

public javax.swing.JMenuItem getItmRecordAdd()

getItmRecordDelete

public javax.swing.JMenuItem getItmRecordDelete()

getItmTableAddColumn

public javax.swing.JMenuItem getItmTableAddColumn()

getItmTableDeleteColumn

public javax.swing.JMenuItem getItmTableDeleteColumn()

getItmUserManual

public javax.swing.JMenuItem getItmUserManual()

getItmExit

public javax.swing.JMenuItem getItmExit()

getItmAbout

public javax.swing.JMenuItem getItmAbout()

getItmLF1

public javax.swing.JMenuItem getItmLF1()

getItmLF2

public javax.swing.JMenuItem getItmLF2()

getItmLF3

public javax.swing.JMenuItem getItmLF3()

getItmLF4

public javax.swing.JMenuItem getItmLF4()

getItmColumnAdd

public javax.swing.JMenuItem getItmColumnAdd()

setItmColumnAdd

public void setItmColumnAdd(javax.swing.JMenuItem itmColumnAdd)

getItmColumnDelete

public javax.swing.JMenuItem getItmColumnDelete()

setItmColumnDelete

public void setItmColumnDelete(javax.swing.JMenuItem itmColumnDelete)

updateDataMenuStatus

public boolean updateDataMenuStatus(boolean showDataMenu)