ch.hearc.I04_05s08.GUI
Class MenuApplication

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JMenuBar
                  extended bych.hearc.I04_05s08.GUI.MenuApplication
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, MenuElement, Serializable

public class MenuApplication
extends JMenuBar

The menu of the system

Author:
Blanc, Yoan
See Also:
Serialized Form
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Nested Class Summary
 
Nested classes inherited from class javax.swing.JMenuBar
JMenuBar.AccessibleJMenuBar
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  JMenuItem[] editItems
          Edit menu items
private  KeyStroke[] editItemsKeys
          Edit menu items' shortcuts
private  String[] editItemsTitle
          Edit menu items' title
private  JMenuItem[] fileItems
          File items
private  KeyStroke[] fileItemsKeys
          File item's shortcuts
private  String[] fileItemsTitle
          File item's title
private  JMenuItem[] helpItems
          Help menu items
private  KeyStroke[] helpItemsKeys
          Help menu items' shortcuts
private  String[] helpItemsTitle
          Help menu items' title
private  JMenuItem[] rdfItems
          RDF items
private  String[] rdfItemsTitle
          RDF items' title
private  JMenu rdfMenu
          RDF submenu
private  String rdfMenuTitle
          RDF submenu's title
private  JMenuItem[] rdfsItems
          RDFS items
private  String[] rdfsItemsTitle
          RDFS items' title
private  JMenu rdfsMenu
          RDFS submenu
private  String rdfsMenuTitle
          RDFS submenu's title
private  int[] rootKeys
          Key of the menu's element
private  JMenu[] rootMenus
          The JMenu
private  String[] roots
          Title of the elements of the menu
 
Fields inherited from class javax.swing.JMenuBar
 
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.Container
 
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
MenuApplication()
          Build the menu
 
Method Summary
private  void buildMenu()
          Create the JMenu elements
 JMenuItem getAboutItem()
          Get MenuItem for about text
 JMenuItem getCopyItem()
          Get MenuItem for copying
 JMenuItem getCutItem()
          Get MenuItem for cutting
 JMenuItem getDeleteItem()
          Get MenuItem for deleting
 JMenuItem[] getFileItems()
          Get file items
 JMenuItem getHelpItem()
          Get MenuItem for the help
 JMenuItem[] getRdfItems()
          Get RDF items New File Open File null New File with RDF Schema(s) Open File with RDF Schema(s)
 JMenuItem[] getRdfsItems()
          Get RDF Schema items New File Open File
 
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, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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

roots

private String[] roots
Title of the elements of the menu


rootKeys

private int[] rootKeys
Key of the menu's element


rootMenus

private JMenu[] rootMenus
The JMenu


rdfsMenu

private JMenu rdfsMenu
RDFS submenu


rdfsMenuTitle

private String rdfsMenuTitle
RDFS submenu's title


rdfsItems

private JMenuItem[] rdfsItems
RDFS items


rdfsItemsTitle

private String[] rdfsItemsTitle
RDFS items' title


rdfMenu

private JMenu rdfMenu
RDF submenu


rdfMenuTitle

private String rdfMenuTitle
RDF submenu's title


rdfItems

private JMenuItem[] rdfItems
RDF items


rdfItemsTitle

private String[] rdfItemsTitle
RDF items' title


fileItems

private JMenuItem[] fileItems
File items


fileItemsTitle

private String[] fileItemsTitle
File item's title


fileItemsKeys

private KeyStroke[] fileItemsKeys
File item's shortcuts


editItems

private JMenuItem[] editItems
Edit menu items


editItemsTitle

private String[] editItemsTitle
Edit menu items' title


editItemsKeys

private KeyStroke[] editItemsKeys
Edit menu items' shortcuts


helpItems

private JMenuItem[] helpItems
Help menu items


helpItemsTitle

private String[] helpItemsTitle
Help menu items' title


helpItemsKeys

private KeyStroke[] helpItemsKeys
Help menu items' shortcuts

Constructor Detail

MenuApplication

public MenuApplication()
Build the menu

Method Detail

buildMenu

private void buildMenu()
Create the JMenu elements


getFileItems

public JMenuItem[] getFileItems()
Get file items

Returns:
file buttons

getHelpItem

public JMenuItem getHelpItem()
Get MenuItem for the help

Returns:
help button

getAboutItem

public JMenuItem getAboutItem()
Get MenuItem for about text

Returns:
about button

getCutItem

public JMenuItem getCutItem()
Get MenuItem for cutting

Returns:
cut button

getCopyItem

public JMenuItem getCopyItem()
Get MenuItem for copying

Returns:
copy button

getDeleteItem

public JMenuItem getDeleteItem()
Get MenuItem for deleting

Returns:
delete button

getRdfsItems

public JMenuItem[] getRdfsItems()
Get RDF Schema items
  1. New File
  2. Open File

Returns:
items of the RDF Schema submenu

getRdfItems

public JMenuItem[] getRdfItems()
Get RDF items
  1. New File
  2. Open File
  3. null
  4. New File with RDF Schema(s)
  5. Open File with RDF Schema(s)

Returns:
items of the RDF submenu


A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC