org.zaval.lw
Class  LwMenuBar
java.lang.Object
  |
  +--org.zaval.util.ValidationObject
        |
        +--org.zaval.lw.LwCanvas
              |
              +--org.zaval.lw.LwPanel
                    |
                    +--org.zaval.lw.LwMenuBar
- All Implemented Interfaces: 
 - Drawable, java.util.EventListener, Layoutable, LayoutContainer, LwActionListener, LwComponent, LwContainer, Validationable
 
- public class LwMenuBar
- extends LwPanel
- implements LwActionListener
   
 
 
 
 
| 
Method Summary | 
 void | 
actionPerformed(LwActionEvent e)
 
          Invoked when an action event occured. | 
protected  LwLayout | 
getDefaultLayout()
 
          Gets the default layout manager that is set with the container during initialization. | 
 void | 
insert(int index,
       java.lang.Object constr,
       LwComponent c)
 
          Inserts the specified lightweight component with the specified constraints as a child
 of this container at the specified position in the container list. | 
static void | 
main(java.lang.String[] args)
 
            | 
 void | 
remove(int i)
 
          Removes the component at the specified index from this container. | 
 void | 
removeAll()
 
          Removes all child components from this container. | 
 void | 
setMenu(int i,
        LwMenu menu)
 
            | 
 
| Methods inherited from class org.zaval.lw.LwPanel | 
add, add, calcPreferredSize, count, get, getLayoutOffset, getLwComponentAt, getLwLayout, indexOf, insert, invalidate, paintOnTop, recalc, remove, setBackground, setLwLayout, setOpaque, toFront, updateCashedPs | 
 
| Methods inherited from class org.zaval.lw.LwCanvas | 
canHaveFocus, getBackground, getBounds, getHeight, getInsets, getLocation, getLwParent, getOrigin, getPreferredSize, getSize, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, isEnabled, isOpaque, isVisible, paint, repaint, repaint, requestFocus, setEnabled, setInsets, setLocation, setLwParent, setPSSize, setSize, setViewMan, setVisible, toString, update, validate, viewManChanged, vrp | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
 
 
| Methods inherited from interface org.zaval.lw.Layoutable | 
getBounds, getHeight, getInsets, getLocation, getPreferredSize, getSize, getWidth, getX, getY, isVisible, setLocation, setSize | 
 
LwMenuBar
public LwMenuBar()
setMenu
public void setMenu(int i,
                    LwMenu menu)
 
insert
public void insert(int index,
                   java.lang.Object constr,
                   LwComponent c)
- Description copied from class: 
LwPanel 
- Inserts the specified lightweight component with the specified constraints as a child
 of this container at the specified position in the container list. The method calls
 
componentAdded method its layout manager to inform the layout manager
 that the new child has been added with the given constraints.
- Overrides:
 insert in class LwPanel
 
- Following copied from class: 
org.zaval.lw.LwPanel 
- Parameters:
 i - the position in the container list at which to insert
 the component.s - the object expressing layout contraints for this.d - the lightweight component to be added.
 
 
removeAll
public void removeAll()
- Description copied from class: 
LwPanel 
- Removes all child components from this container.
 The layout manager of this container is informed by calling
 
componentRemoved method of the manager for every child that has been
 removed.
- Overrides:
 removeAll in class LwPanel
 
 
remove
public void remove(int i)
- Description copied from class: 
LwPanel 
- Removes the component at the specified index from this container.
 The layout manager of this container is informed by calling
 
componentRemoved method of the manager.
- Overrides:
 remove in class LwPanel
 
- Following copied from class: 
org.zaval.lw.LwPanel 
- Parameters:
 i - the index of the component to be removed.
 
 
actionPerformed
public void actionPerformed(LwActionEvent e)
- Description copied from interface: 
LwActionListener 
- Invoked when an action event occured. The specified action event is passed to the method.
- Specified by: 
 actionPerformed in interface LwActionListener
 
- Following copied from interface: 
org.zaval.lw.event.LwActionListener 
- Parameters:
 e - the specified action event.
 
 
getDefaultLayout
protected LwLayout getDefaultLayout()
- Description copied from class: 
LwPanel 
- Gets the default layout manager that is set with the container during initialization.
 This implementation of the method returns LwRastLayout as the default layout manager, the
 layout manager is got as a static object by "layout.raster" key.
- Overrides:
 getDefaultLayout in class LwPanel
 
- Following copied from class: 
org.zaval.lw.LwPanel 
- Returns:
 - a layout manager.
 
 
 
main
public static void main(java.lang.String[] args)
                 throws java.lang.Exception
 
Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org