fdda.dialog.swing
Class MenuBar

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JMenuBar
                          |
                          +--fdda.dialog.swing.MenuBar
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, MenuElement, ProjectListener, SelectionListener, Serializable

public class MenuBar
extends JMenuBar
implements SelectionListener, ProjectListener

Contains the menu bar of fdda.

Author:
Jörg Rüdenauer
See Also:
Serialized Form

Nested Class Summary
(package private)  class MenuBar.LastProjectListener
          Action Listener for the 'last projects' entries
 
Field Summary
static int LAST_PROJECTS_COUNT
          how many 'last projects' entries?
 
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
MenuBar(MainFrame mainFrame)
          Konstruktor der Klasse MenuBar.
 
Method Summary
 void activeProjectChanged(ProjectEvent e)
          Informs the listener that another project has been activated
 void demoPaused(boolean pause)
          Informs the menu that the demo was paused or not paused.
 ToggleButtonGroup getToolsMenuGroup()
          Returns the tools button group
 void projectClosed(ProjectEvent e)
          Informs the listener that a project has been closed
 void projectNameChanged(ProjectEvent e)
          Informs the listener that the name of a project has been changed
 void projectOpened(ProjectEvent e)
          Informs the listener that a project has been opened
 void projectStateChanged(ProjectEvent e)
          Informs the listener that a project has changed its state
 void rebuildLastFilesMenu()
          Rebuilds the menu for the last used files.
 void selectionChanged(SelectionEvent e)
          Informs the listener that the selection has changed.
 void setGridMEntry(boolean status)
          Selects the grid entry
 void setOInspectorMEntry(boolean status)
          Informs the window that the property editor was shown or hidden
 void setSystemFrameMEntrys(int code)
          Informs the menu about the type of the window
 void toolSelected(int tool, boolean sticky)
          Informs the menu that another tool was selected
 
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

LAST_PROJECTS_COUNT

public static final int LAST_PROJECTS_COUNT
how many 'last projects' entries?

See Also:
Constant Field Values
Constructor Detail

MenuBar

public MenuBar(MainFrame mainFrame)
Konstruktor der Klasse MenuBar.

Method Detail

toolSelected

public void toolSelected(int tool,
                         boolean sticky)
Informs the menu that another tool was selected

Parameters:
tool - the tool
sticky - whether the selection is 'sticky'

getToolsMenuGroup

public ToggleButtonGroup getToolsMenuGroup()
Returns the tools button group

Returns:
the tools button group

setSystemFrameMEntrys

public void setSystemFrameMEntrys(int code)
Informs the menu about the type of the window

Parameters:
code -

setOInspectorMEntry

public void setOInspectorMEntry(boolean status)
Informs the window that the property editor was shown or hidden

Parameters:
status - true iff it was shown

setGridMEntry

public void setGridMEntry(boolean status)
Selects the grid entry

Parameters:
status - true iff selected

demoPaused

public void demoPaused(boolean pause)
Informs the menu that the demo was paused or not paused.

Parameters:
pause - true iff paused

rebuildLastFilesMenu

public void rebuildLastFilesMenu()
Rebuilds the menu for the last used files.


selectionChanged

public void selectionChanged(SelectionEvent e)
Description copied from interface: SelectionListener
Informs the listener that the selection has changed.

Specified by:
selectionChanged in interface SelectionListener
Parameters:
e - the event

projectOpened

public void projectOpened(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that a project has been opened

Specified by:
projectOpened in interface ProjectListener
Parameters:
e - the event

activeProjectChanged

public void activeProjectChanged(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that another project has been activated

Specified by:
activeProjectChanged in interface ProjectListener
Parameters:
e - the event

projectClosed

public void projectClosed(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that a project has been closed

Specified by:
projectClosed in interface ProjectListener
Parameters:
e - the event

projectStateChanged

public void projectStateChanged(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that a project has changed its state

Specified by:
projectStateChanged in interface ProjectListener
Parameters:
e - the event

projectNameChanged

public void projectNameChanged(ProjectEvent e)
Description copied from interface: ProjectListener
Informs the listener that the name of a project has been changed

Specified by:
projectNameChanged in interface ProjectListener
Parameters:
e - the event


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.