com.yospace.yae.yogi
Class YogiMenuBar

java.lang.Object
  |
  +--com.yospace.yae.yogi.YogiComponent
        |
        +--com.yospace.yae.yogi.YogiMenuBar

public class YogiMenuBar
extends YogiComponent

A menu bar component. Functions solely as a container for YogiMenus.


Fields inherited from class com.yospace.yae.yogi.YogiComponent
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, BORDER_DOTTED, BORDER_NONE, BORDER_PLAIN, BORDER_ROUNDED, BORDER_SOLID, COLOR_BACKGROUND, COLOR_BORDER, COLOR_FOREGROUND, FOCUS_DEFAULT, FOCUS_OFF, FOCUS_ON, PROPERTY_ALIGN, PROPERTY_BORDER_STYLE, PROPERTY_BOUNDS, PROPERTY_COLOR, PROPERTY_CONTEXT_ENABLED, PROPERTY_ENABLED, PROPERTY_FOCUS, PROPERTY_FOCUS_INDEX, PROPERTY_FOCUS_TRAVERSABLE, PROPERTY_FONT, PROPERTY_HOTKEY, PROPERTY_LOCATION, PROPERTY_OPAQUE, PROPERTY_SIZE, PROPERTY_VISIBLE, PROPERTY_X_INSET, PROPERTY_Y_INSET
 
Constructor Summary
YogiMenuBar()
           
 
Method Summary
 void add(YogiComponent comp)
          Overridden to only allow YogiMenus to be added to a YogiMenuBar.
 void addMenu(YogiMenu menu)
          Adds the given menu to this menu bar.
 YogiMenu getMenu(int index)
          Gets the menu at the given index from this menu bar.
 YogiMenu getMenu(java.lang.String menuId)
          Gets the menu with the id String from this menu bar.
 
Methods inherited from class com.yospace.yae.yogi.YogiComponent
_debugPrintComponents, addPropertyChangeListener, bringForwards, bringInFrontOf, bringToFront, contains, containsComponent, ensureVisible, ensureVisible, findComponentAt, findCurrentFocus, findFirstFocus, findFocusDomainRoot, findFocusDomainRootImpl, findHotkeyComponent, findNextFocus, fireActionPerformedEvent, firePropertyChangeEvent, getAlign, getBorderStyle, getBounds, getColor, getColors, getComponent, getComponent, getComponentCount, getComponentIndex, getComponents, getFocusBounds, getFocusIndex, getFont, getGlobalLocation, getHeight, getHotkey, getId, getParent, getParent, getTreeLock, getUI, getWidth, getX, getXInset, getY, getYInset, hasFocus, isActive, isContextEnabled, isEnabled, isFocusDomainRoot, isFocusTraversable, isOpaque, isVisible, keyPressed, keyReleased, keyRepeated, paint, paintBackground, paintBorder, paintForeground, pointerDragged, pointerPressed, pointerReleased, remove, remove, removeAll, removePropertyChangeListener, repaint, repaint, repaintAfterRebounding, requestFocus, requestFocus, sendBackwards, sendBehind, sendToBack, setActionListener, setActive, setAlign, setBorderStyle, setBounds, setColor, setColors, setContextEnabled, setDefaultColor, setEnabled, setFocusDomainRoot, setFocusIndex, setFocusTraversable, setFont, setHotkey, setId, setLocation, setNoFocus, setOpaque, setProperty, setSize, setUI, setVisible, setXInset, setYInset, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YogiMenuBar

public YogiMenuBar()
Method Detail

add

public void add(YogiComponent comp)
Overridden to only allow YogiMenus to be added to a YogiMenuBar. Does nothing if the component to add is not a YogiMenu.
Overrides:
add in class YogiComponent
Parameters:
comp - the component to add.

addMenu

public void addMenu(YogiMenu menu)
Adds the given menu to this menu bar. Calls for this menu bar to be re-laid out as a result.
Parameters:
menu - the YogiMenu to add.

getMenu

public YogiMenu getMenu(int index)
Gets the menu at the given index from this menu bar. Index numbers are based on the z-ordering of the children of this menu bar, which will normally be the same as the order in which menus are added, unless application code explicitly changes the z-ordering.
Parameters:
index - the index of the menu.
Returns:
the desired menu, or null if there is no menu at that index.

getMenu

public YogiMenu getMenu(java.lang.String menuId)
Gets the menu with the id String from this menu bar.
Parameters:
menuId - the id String of the menu.
Returns:
the desired menu, or null if there is no menu with that name.

Copyright 2002 Yospace Holdings Ltd. All Rights Reserved.