FEJDGui
Class PrgMenuBar

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JMenuBar
                  extended byFEJDGui.PrgMenuBar
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.MenuElement, OurMenuBar, java.io.Serializable

public class PrgMenuBar
extends javax.swing.JMenuBar
implements java.awt.event.ActionListener, OurMenuBar

Menu bar of the software

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JMenuBar
javax.swing.JMenuBar.AccessibleJMenuBar
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JMenuItem about
          The different menu items of the program
private  javax.swing.JCheckBoxMenuItem autoRenum
          The different checkbox menu items of the program
private  javax.swing.JCheckBoxMenuItem decompDispl
          The different checkbox menu items of the program
private  javax.swing.JCheckBoxMenuItem dirichletNode
          The different checkbox menu items of the program
private  javax.swing.JMenuItem eng
          The different menu items of the program
private  javax.swing.JMenuItem fre
          The different menu items of the program
private  javax.swing.JMenuItem ger
          The different menu items of the program
private  javax.swing.JCheckBoxMenuItem handbook
          The different checkbox menu items of the program
private  javax.swing.JMenuItem jpeg
          The different menu items of the program
private  javax.swing.JRadioButtonMenuItem linearFct
          The different radiobutton menu items of the program
private  int localeChoosen
          The language chossen by the user
private  java.util.Locale[] localesSupported
          The locals (ie languages) which are supported
private  javax.swing.JMenu menuAcc
          The different menus of the program
private  javax.swing.JMenu menuDisplay
          The different menus of the program
private  javax.swing.JMenu menuFct
          The different menus of the program
private  javax.swing.JMenu menuHelp
          The different menus of the program
private  javax.swing.JMenu menuLanguage
          The different menus of the program
private  javax.swing.JMenu menuMisc
          The different menus of the program
private  javax.swing.JMenu menuNewFiles
          The different menus of the program
private  javax.swing.JMenu menuParam
          The different menus of the program
private  javax.swing.JCheckBoxMenuItem nbDispl
          The different checkbox menu items of the program
private  javax.swing.JCheckBoxMenuItem newFileRefine
          The different checkbox menu items of the program
private  javax.swing.JCheckBoxMenuItem newFileRenum
          The different checkbox menu items of the program
private  javax.swing.JRadioButtonMenuItem quadraticFct
          The different radiobutton menu items of the program
private static java.util.ResourceBundle rb
          The bundle containing all the strings in all languages
private  javax.swing.JMenuItem refinement
          The different menu items of the program
private  javax.swing.JMenuItem renum
          The different menu items of the program
private  javax.swing.JMenuItem solution
          The different menu items of the program
 
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
PrgMenuBar()
          construcs and initializes a new menu bar and loads the help system
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Reacts to a click on a menu
 java.lang.String getString(java.lang.String s)
          Returns the string of the resource bundle
 void initLocale()
          Initiates the default language
 boolean isAutoRenumSelected()
          Returns true if the auto-renumbering selected
 boolean isDisplayingDoc()
          Returns true if the display help menu item is ticked
 boolean isDisplDecomp()
          Returns true if the users has chosen to display the Cholesky-Factorization
 boolean isLinearFctSelected()
          Returns true if the linear functions are selected
 boolean isNewFileRefineSelected()
          Returns true if the menu for creatig new files after a refinement is selected
 boolean isQuadraticFctSelected()
          Returns true if the quadratic functions are selected
 void setJpegEnabled(boolean state)
          Sets the state of the save Jpeg menu
 void setNewFileRenumEnabled(boolean state)
          Sets the state of the menu for creating new files after a renumbering
 void setRefinementEnabled(boolean state)
          Sets the state of the refinement menu
 void setRenumEnabled(boolean state)
          Sets the state of the renumbering menu
 void setSolutionEnabled(boolean state)
          Sets the save solution of the Jpeg menu
 void update(javax.swing.JMenuItem source)
          Updates the labels when the user changes the language
 void updateAll(javax.swing.JMenuItem source)
          Modifies the labels upon language change
 
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

menuLanguage

private javax.swing.JMenu menuLanguage
The different menus of the program


menuParam

private javax.swing.JMenu menuParam
The different menus of the program


menuFct

private javax.swing.JMenu menuFct
The different menus of the program


menuDisplay

private javax.swing.JMenu menuDisplay
The different menus of the program


menuMisc

private javax.swing.JMenu menuMisc
The different menus of the program


menuAcc

private javax.swing.JMenu menuAcc
The different menus of the program


menuHelp

private javax.swing.JMenu menuHelp
The different menus of the program


menuNewFiles

private javax.swing.JMenu menuNewFiles
The different menus of the program


eng

private javax.swing.JMenuItem eng
The different menu items of the program


ger

private javax.swing.JMenuItem ger
The different menu items of the program


fre

private javax.swing.JMenuItem fre
The different menu items of the program


jpeg

private javax.swing.JMenuItem jpeg
The different menu items of the program


solution

private javax.swing.JMenuItem solution
The different menu items of the program


renum

private javax.swing.JMenuItem renum
The different menu items of the program


refinement

private javax.swing.JMenuItem refinement
The different menu items of the program


about

private javax.swing.JMenuItem about
The different menu items of the program


nbDispl

private javax.swing.JCheckBoxMenuItem nbDispl
The different checkbox menu items of the program


dirichletNode

private javax.swing.JCheckBoxMenuItem dirichletNode
The different checkbox menu items of the program


decompDispl

private javax.swing.JCheckBoxMenuItem decompDispl
The different checkbox menu items of the program


autoRenum

private javax.swing.JCheckBoxMenuItem autoRenum
The different checkbox menu items of the program


newFileRenum

private javax.swing.JCheckBoxMenuItem newFileRenum
The different checkbox menu items of the program


newFileRefine

private javax.swing.JCheckBoxMenuItem newFileRefine
The different checkbox menu items of the program


handbook

private javax.swing.JCheckBoxMenuItem handbook
The different checkbox menu items of the program


linearFct

private javax.swing.JRadioButtonMenuItem linearFct
The different radiobutton menu items of the program


quadraticFct

private javax.swing.JRadioButtonMenuItem quadraticFct
The different radiobutton menu items of the program


localesSupported

private java.util.Locale[] localesSupported
The locals (ie languages) which are supported


localeChoosen

private int localeChoosen
The language chossen by the user


rb

private static java.util.ResourceBundle rb
The bundle containing all the strings in all languages

Constructor Detail

PrgMenuBar

public PrgMenuBar()
construcs and initializes a new menu bar and loads the help system

Method Detail

initLocale

public void initLocale()
Initiates the default language

Specified by:
initLocale in interface OurMenuBar

getString

public java.lang.String getString(java.lang.String s)
Returns the string of the resource bundle

Specified by:
getString in interface OurMenuBar

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Reacts to a click on a menu

Specified by:
actionPerformed in interface java.awt.event.ActionListener

updateAll

public void updateAll(javax.swing.JMenuItem source)
Modifies the labels upon language change

Specified by:
updateAll in interface OurMenuBar

update

public void update(javax.swing.JMenuItem source)
Updates the labels when the user changes the language

Specified by:
update in interface OurMenuBar

isDisplayingDoc

public boolean isDisplayingDoc()
Returns true if the display help menu item is ticked

Specified by:
isDisplayingDoc in interface OurMenuBar

isDisplDecomp

public boolean isDisplDecomp()
Returns true if the users has chosen to display the Cholesky-Factorization

Specified by:
isDisplDecomp in interface OurMenuBar

isQuadraticFctSelected

public boolean isQuadraticFctSelected()
Returns true if the quadratic functions are selected

Specified by:
isQuadraticFctSelected in interface OurMenuBar

isLinearFctSelected

public boolean isLinearFctSelected()
Returns true if the linear functions are selected

Specified by:
isLinearFctSelected in interface OurMenuBar

setJpegEnabled

public void setJpegEnabled(boolean state)
Sets the state of the save Jpeg menu

Specified by:
setJpegEnabled in interface OurMenuBar

setSolutionEnabled

public void setSolutionEnabled(boolean state)
Sets the save solution of the Jpeg menu

Specified by:
setSolutionEnabled in interface OurMenuBar

setRefinementEnabled

public void setRefinementEnabled(boolean state)
Sets the state of the refinement menu

Specified by:
setRefinementEnabled in interface OurMenuBar

setRenumEnabled

public void setRenumEnabled(boolean state)
Sets the state of the renumbering menu

Specified by:
setRenumEnabled in interface OurMenuBar

isAutoRenumSelected

public boolean isAutoRenumSelected()
Returns true if the auto-renumbering selected

Specified by:
isAutoRenumSelected in interface OurMenuBar

isNewFileRefineSelected

public boolean isNewFileRefineSelected()
Returns true if the menu for creatig new files after a refinement is selected

Specified by:
isNewFileRefineSelected in interface OurMenuBar

setNewFileRenumEnabled

public void setNewFileRenumEnabled(boolean state)
Sets the state of the menu for creating new files after a renumbering

Specified by:
setNewFileRenumEnabled in interface OurMenuBar