org.zaval.lw
Class LwMenu

java.lang.Object
  |
  +--org.zaval.util.ValidationObject
        |
        +--org.zaval.lw.LwCanvas
              |
              +--org.zaval.lw.LwPanel
                    |
                    +--org.zaval.lw.LwList
                          |
                          +--org.zaval.lw.LwComboList
                                |
                                +--org.zaval.lw.LwMenu
All Implemented Interfaces:
Drawable, java.util.EventListener, Layoutable, LayoutContainer, LwComponent, LwComposite, LwContainer, LwFocusListener, LwKeyListener, LwMouseListener, LwMouseMotionListener, PosListener, ScrollObj, Validationable

public class LwMenu
extends LwComboList


Fields inherited from class org.zaval.lw.LwPanel
children
 
Fields inherited from class org.zaval.lw.LwCanvas
bits, height, insets, parent, psHeight, psWidth, skins, width, x, y
 
Fields inherited from class org.zaval.util.ValidationObject
isValidFlag
 
Constructor Summary
LwMenu()
           
 
Method Summary
 void addDelimiter()
           
protected  LwLayout getDefaultLayout()
          Gets the default layout manager that is set with the container during initialization.
 LwMenu getSubMenu(LwComponent item)
           
protected  void perform(int from)
          Creates and fires appropriate selection event for list of selection listeners.
 void posChanged(PosEvent e)
          Invoked when a virtual position has been changed.
 void remove(int i)
          Removes the component, specified by the index, from this container.
 void removeAll()
          Removes all child components from this container.
 void setSubMenu(LwComponent comp, LwMenu menu)
           
 void setVisible(boolean v)
          Shows or hides this lightweight component depending on the value of parameter b.
 
Methods inherited from class org.zaval.lw.LwComboList
canHaveFocus, catchInput, endDragged, keyPressed, mouseDragged, mouseEntered, mouseMoved, mousePressed, mouseReleased, paintOnTop, startDragged
 
Methods inherited from class org.zaval.lw.LwList
add, addSelectionListener, drawPosMarker, drawSelMarker, focusGained, focusLost, getLayoutOffset, getPosController, getPosRectColor, getSelectColor, getSelected, getSelectedIndex, getSOLocation, getSOSize, insert, isSelected, keyReleased, keyTyped, mouseClicked, mouseExited, moveContent, notifyScrollMan, pageSize, removeSelectionListener, select, setLwLayout, setPosController, setPosRectColor, setScrollMan, setSelectColor, setSOLocation
 
Methods inherited from class org.zaval.lw.LwPanel
add, add, calcPreferredSize, count, get, getLwComponentAt, getLwLayout, indexOf, insert, invalidate, recalc, remove, setBackground, setOpaque, toFront, updateCashedPs
 
Methods inherited from class org.zaval.lw.LwCanvas
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, toString, update, validate, viewManChanged, vrp
 
Methods inherited from class org.zaval.util.ValidationObject
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zaval.lw.LwContainer
add, add, getLwLayout, indexOf
 
Methods inherited from interface org.zaval.lw.LwComponent
getLwComponentAt, getLwParent, getViewMan, getVisiblePart, setBackground, setEnabled, setLwParent, setViewMan
 
Methods inherited from interface org.zaval.lw.Drawable
getBackground, getOrigin, isEnabled, isOpaque, paint, repaint, repaint, setOpaque, update
 
Methods inherited from interface org.zaval.util.Validationable
invalidate, isValid, validate
 
Methods inherited from interface org.zaval.lw.Layoutable
getBounds, getHeight, getInsets, getLocation, getPreferredSize, getSize, getWidth, getX, getY, isVisible, setLocation, setSize
 
Methods inherited from interface org.zaval.lw.LayoutContainer
count, get
 

Constructor Detail

LwMenu

public LwMenu()
Method Detail

removeAll

public void removeAll()
Description copied from interface: LwContainer
Removes all child components from this container. The layout manager of this container should be informed by calling componentRemoved method of the manager for every child component that has been removed.
Overrides:
removeAll in class LwList

remove

public void remove(int i)
Description copied from interface: LwContainer
Removes the component, specified by the index, from this container. The layout manager of this container should be informed by calling componentRemoved method of the manager.
Overrides:
remove in class LwList
Following copied from interface: org.zaval.lw.LwContainer
Parameters:
index - the index of the component to be removed.

setSubMenu

public void setSubMenu(LwComponent comp,
                       LwMenu menu)

getSubMenu

public LwMenu getSubMenu(LwComponent item)

posChanged

public void posChanged(PosEvent e)
Description copied from interface: PosListener
Invoked when a virtual position has been changed.
Overrides:
posChanged in class LwComboList
Following copied from interface: org.zaval.misc.event.PosListener
Parameters:
e - the specified pos event.

setVisible

public void setVisible(boolean v)
Description copied from interface: LwComponent
Shows or hides this lightweight component depending on the value of parameter b.
Overrides:
setVisible in class LwCanvas
Following copied from interface: org.zaval.lw.LwComponent
Parameters:
b - if it is true, shows this component; otherwise, hides this component.

perform

protected void perform(int from)
Description copied from class: LwList
Creates and fires appropriate selection event for list of selection listeners.
Overrides:
perform in class LwList
Following copied from class: org.zaval.lw.LwList
Parameters:
from - the selected item index.

addDelimiter

public void addDelimiter()

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 LwList
Following copied from class: org.zaval.lw.LwPanel
Returns:
a layout manager.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org