org.zaval.lw
Class LwComboList

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

public class LwComboList
extends LwList
implements LwMouseMotionListener

This is list component that is supposed to be used as the list of the combobox component. The component inherits the LwList functionality.


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
LwComboList()
           
 
Method Summary
 boolean canHaveFocus()
          Specifies if the component can have focus.
 boolean catchInput(LwComponent child)
          Checks if input events for the specified child component should be caught.
 void endDragged(LwMouseMotionEvent e)
          Invoked when the mouse ends dragged.
 void keyPressed(LwKeyEvent e)
          Invoked when a key has been pressed.
 void mouseDragged(LwMouseMotionEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mouseEntered(LwMouseEvent e)
          Invoked when the mouse enters a light weight component.
 void mouseMoved(LwMouseMotionEvent e)
          Invoked when the mouse pointer has been moved on a light weight component (with no buttons no down).
 void mousePressed(LwMouseEvent e)
          Invoked when the mouse button has been pressed on a light weight component.
 void mouseReleased(LwMouseEvent e)
          Invoked when the mouse button has been released on a light weight component.
 void paintOnTop(java.awt.Graphics g)
          Paints this component.
 void posChanged(PosEvent e)
          Invoked when a virtual position has been changed.
 void startDragged(LwMouseMotionEvent e)
          Invoked when the mouse starts dragged.
 
Methods inherited from class org.zaval.lw.LwList
add, addSelectionListener, drawPosMarker, drawSelMarker, focusGained, focusLost, getDefaultLayout, getLayoutOffset, getPosController, getPosRectColor, getSelectColor, getSelected, getSelectedIndex, getSOLocation, getSOSize, insert, isSelected, keyReleased, keyTyped, mouseClicked, mouseExited, moveContent, notifyScrollMan, pageSize, perform, remove, removeAll, 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, setVisible, 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, setVisible
 
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

LwComboList

public LwComboList()
Method Detail

posChanged

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

catchInput

public boolean catchInput(LwComponent child)
Description copied from interface: LwComposite
Checks if input events for the specified child component should be caught.
Overrides:
catchInput in class LwList
Following copied from interface: org.zaval.lw.LwComposite
Parameters:
child - the specified child component.
Returns:
true if input events for the child component should be caught by this component; false otherwise.

mousePressed

public void mousePressed(LwMouseEvent e)
Description copied from interface: LwMouseListener
Invoked when the mouse button has been pressed on a light weight component.
Overrides:
mousePressed in class LwList
Following copied from interface: org.zaval.lw.event.LwMouseListener
Parameters:
e - the specified mouse event.

keyPressed

public void keyPressed(LwKeyEvent e)
Description copied from interface: LwKeyListener
Invoked when a key has been pressed.
Overrides:
keyPressed in class LwList
Following copied from interface: org.zaval.lw.event.LwKeyListener
Parameters:
e - the specified key event.

mouseReleased

public void mouseReleased(LwMouseEvent e)
Description copied from interface: LwMouseListener
Invoked when the mouse button has been released on a light weight component.
Overrides:
mouseReleased in class LwList
Following copied from interface: org.zaval.lw.event.LwMouseListener
Parameters:
e - the specified mouse event.

canHaveFocus

public boolean canHaveFocus()
Description copied from interface: LwComponent
Specifies if the component can have focus.
Overrides:
canHaveFocus in class LwList
Following copied from interface: org.zaval.lw.LwComponent
Returns:
true if the component can have the focus.

paintOnTop

public void paintOnTop(java.awt.Graphics g)
Description copied from class: LwList
Paints this component. The method is overrided to paint the list item selection rectangle.
Overrides:
paintOnTop in class LwList
Following copied from class: org.zaval.lw.LwList
Parameters:
g - the graphics context to be used for painting.

startDragged

public void startDragged(LwMouseMotionEvent e)
Description copied from interface: LwMouseMotionListener
Invoked when the mouse starts dragged.
Specified by:
startDragged in interface LwMouseMotionListener
Following copied from interface: org.zaval.lw.event.LwMouseMotionListener
Parameters:
e - the specified mouse motion event.

endDragged

public void endDragged(LwMouseMotionEvent e)
Description copied from interface: LwMouseMotionListener
Invoked when the mouse ends dragged.
Specified by:
endDragged in interface LwMouseMotionListener
Following copied from interface: org.zaval.lw.event.LwMouseMotionListener
Parameters:
e - the specified mouse motion event.

mouseDragged

public void mouseDragged(LwMouseMotionEvent e)
Description copied from interface: LwMouseMotionListener
Invoked when a mouse button is pressed on a component and then dragged. Mouse drag events will continue to be delivered to the component where the first originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).
Specified by:
mouseDragged in interface LwMouseMotionListener
Following copied from interface: org.zaval.lw.event.LwMouseMotionListener
Parameters:
e - the specified mouse motion event.

mouseMoved

public void mouseMoved(LwMouseMotionEvent e)
Description copied from interface: LwMouseMotionListener
Invoked when the mouse pointer has been moved on a light weight component (with no buttons no down).
Specified by:
mouseMoved in interface LwMouseMotionListener
Following copied from interface: org.zaval.lw.event.LwMouseMotionListener
Parameters:
e - the specified mouse motion event.

mouseEntered

public void mouseEntered(LwMouseEvent e)
Description copied from interface: LwMouseListener
Invoked when the mouse enters a light weight component.
Overrides:
mouseEntered in class LwList
Following copied from interface: org.zaval.lw.event.LwMouseListener
Parameters:
e - the specified mouse event.


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