LexAccess Java
2010 Version

gov.nih.nlm.nls.lexAccess.Tools.GuiTool.Gui
Class LaMenuBar

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 gov.nih.nlm.nls.lexAccess.Tools.GuiTool.Gui.LaMenuBar
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.MenuElement

public class LaMenuBar
extends javax.swing.JMenuBar

This class defines all GUI menu bar setup. The action is performed in MainFrame.

History:

Version:
V-2010
Author:
NLM NLS Development Team, clu
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
static java.lang.String BY_BASE
          menu item: search by Base
static java.lang.String BY_CATEGORY
          menu item: search by Category
static java.lang.String BY_TERM_EUI
          menu item: search by Term/Eui
static java.lang.String HELP_ABOUT
          menu item: help about
static java.lang.String HELP_DOCUMENTS
          menu item: help documents
static java.lang.String LEXACCESS_EXIT
          menu item: LexAccess exit
static java.lang.String LEXACCESS_INPUT
          menu item: LexAccess input file
static java.lang.String LEXACCESS_OUTPUT
          menu item: LexAccess output file
static java.lang.String OPTION_GLOBAL
          menu item: options: Global Behavior
static java.lang.String OPTION_OUTPUT
          menu item: options: Output Filter
static java.lang.String PREFERENCE_BOLD
          menu item: preference: bold
static java.lang.String PREFERENCE_FONT_DEFAULT
          menu item: preference: default
static java.lang.String PREFERENCE_FONT_DIALOG
          menu item: preference: font Dialog
static java.lang.String PREFERENCE_FONT_DIALOGINPUT
          menu item: preference: font DialogInput
static java.lang.String PREFERENCE_FONT_MONOSPACED
          menu item: preference: font Monospaced
static java.lang.String PREFERENCE_FONT_SANSSERIF
          menu item: preference: font SansSerif
static java.lang.String PREFERENCE_FONT_SERIF
          menu item: preference: font serif
static java.lang.String PREFERENCE_FONT_SIZE
          menu item: preference font size
static java.lang.String PREFERENCE_ITALIC
          menu item: preference: italic
static java.lang.String PREFERENCE_LAF_GTK
          menu item: preference: look and feel GTK
static java.lang.String PREFERENCE_LAF_METAL
          menu item: preference: look and feel metal
static java.lang.String PREFERENCE_LAF_MOTIF
          menu item: preference: look and feel motif
static java.lang.String PREFERENCE_LAF_SYSTEM
          menu item: preference: look and feel system
static java.lang.String PREFERENCE_LAF_WINDOW
          menu item: preference: look and feel window
 
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
LaMenuBar(LaFrame owner)
          Create a LaMenuBar object for LA menu bar.
 
Method Summary
 void SetDefaultFontMenu()
           
static void SetFont(java.awt.Font font, java.awt.Font guiFont)
           
 
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

LEXACCESS_INPUT

public static final java.lang.String LEXACCESS_INPUT
menu item: LexAccess input file

See Also:
Constant Field Values

LEXACCESS_OUTPUT

public static final java.lang.String LEXACCESS_OUTPUT
menu item: LexAccess output file

See Also:
Constant Field Values

LEXACCESS_EXIT

public static final java.lang.String LEXACCESS_EXIT
menu item: LexAccess exit

See Also:
Constant Field Values

BY_TERM_EUI

public static final java.lang.String BY_TERM_EUI
menu item: search by Term/Eui

See Also:
Constant Field Values

BY_BASE

public static final java.lang.String BY_BASE
menu item: search by Base

See Also:
Constant Field Values

BY_CATEGORY

public static final java.lang.String BY_CATEGORY
menu item: search by Category

See Also:
Constant Field Values

OPTION_GLOBAL

public static final java.lang.String OPTION_GLOBAL
menu item: options: Global Behavior

See Also:
Constant Field Values

OPTION_OUTPUT

public static final java.lang.String OPTION_OUTPUT
menu item: options: Output Filter

See Also:
Constant Field Values

PREFERENCE_BOLD

public static final java.lang.String PREFERENCE_BOLD
menu item: preference: bold

See Also:
Constant Field Values

PREFERENCE_ITALIC

public static final java.lang.String PREFERENCE_ITALIC
menu item: preference: italic

See Also:
Constant Field Values

PREFERENCE_FONT_DEFAULT

public static final java.lang.String PREFERENCE_FONT_DEFAULT
menu item: preference: default

See Also:
Constant Field Values

PREFERENCE_FONT_SIZE

public static final java.lang.String PREFERENCE_FONT_SIZE
menu item: preference font size

See Also:
Constant Field Values

PREFERENCE_FONT_SERIF

public static final java.lang.String PREFERENCE_FONT_SERIF
menu item: preference: font serif

See Also:
Constant Field Values

PREFERENCE_FONT_SANSSERIF

public static final java.lang.String PREFERENCE_FONT_SANSSERIF
menu item: preference: font SansSerif

See Also:
Constant Field Values

PREFERENCE_FONT_MONOSPACED

public static final java.lang.String PREFERENCE_FONT_MONOSPACED
menu item: preference: font Monospaced

See Also:
Constant Field Values

PREFERENCE_FONT_DIALOG

public static final java.lang.String PREFERENCE_FONT_DIALOG
menu item: preference: font Dialog

See Also:
Constant Field Values

PREFERENCE_FONT_DIALOGINPUT

public static final java.lang.String PREFERENCE_FONT_DIALOGINPUT
menu item: preference: font DialogInput

See Also:
Constant Field Values

PREFERENCE_LAF_SYSTEM

public static final java.lang.String PREFERENCE_LAF_SYSTEM
menu item: preference: look and feel system

See Also:
Constant Field Values

PREFERENCE_LAF_METAL

public static final java.lang.String PREFERENCE_LAF_METAL
menu item: preference: look and feel metal

See Also:
Constant Field Values

PREFERENCE_LAF_MOTIF

public static final java.lang.String PREFERENCE_LAF_MOTIF
menu item: preference: look and feel motif

See Also:
Constant Field Values

PREFERENCE_LAF_WINDOW

public static final java.lang.String PREFERENCE_LAF_WINDOW
menu item: preference: look and feel window

See Also:
Constant Field Values

PREFERENCE_LAF_GTK

public static final java.lang.String PREFERENCE_LAF_GTK
menu item: preference: look and feel GTK

See Also:
Constant Field Values

HELP_ABOUT

public static final java.lang.String HELP_ABOUT
menu item: help about

See Also:
Constant Field Values

HELP_DOCUMENTS

public static final java.lang.String HELP_DOCUMENTS
menu item: help documents

See Also:
Constant Field Values
Constructor Detail

LaMenuBar

public LaMenuBar(LaFrame owner)
Create a LaMenuBar object for LA menu bar.

Parameters:
owner - the owner of this LaMenuBar
Method Detail

SetFont

public static void SetFont(java.awt.Font font,
                           java.awt.Font guiFont)

SetDefaultFontMenu

public void SetDefaultFontMenu()

LexAccess Java
2010 Version

Submit a bug or feature

Copyright © 2010 National Library of Medicine