org.zaval.lw
Class LwBaseLayer

java.lang.Object
  |
  +--org.zaval.util.ValidationObject
        |
        +--org.zaval.lw.LwCanvas
              |
              +--org.zaval.lw.LwPanel
                    |
                    +--org.zaval.lw.LwBaseLayer
All Implemented Interfaces:
Drawable, Layoutable, LayoutContainer, LwComponent, LwContainer, LwLayer, Validationable
Direct Known Subclasses:
LwPopupLayer, LwWinLayer

public class LwBaseLayer
extends LwPanel
implements LwLayer

This layer class is basic implementation of the layer interface


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
LwBaseLayer(java.lang.Object id)
          Constructs the layer with the specified id.
 
Method Summary
 LwComponent getFocusRoot()
          Gets if the focus root component.
 java.lang.Object getID()
          Gets the layer id.
 boolean isActive()
          Gets if the layer is active.
 void keyPressed(int keyCode, int mask)
          Invoked whenever a key has been pressed.
 void mousePressed(int x, int y, int mask)
          Invoked whenever a mouse button has been pressed.
 void releaseFocus()
          Invoked whenever the desktop lost focus.
 void setupFocus()
           
 
Methods inherited from class org.zaval.lw.LwPanel
add, add, calcPreferredSize, count, get, getDefaultLayout, getLayoutOffset, getLwComponentAt, getLwLayout, indexOf, insert, insert, invalidate, paintOnTop, recalc, remove, remove, removeAll, 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 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, insert, paintOnTop, remove, removeAll, setLwLayout
 
Methods inherited from interface org.zaval.lw.LwComponent
canHaveFocus, 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, getLayoutOffset
 

Constructor Detail

LwBaseLayer

public LwBaseLayer(java.lang.Object id)
Constructs the layer with the specified id.
Parameters:
id - the specified id.
Method Detail

getID

public java.lang.Object getID()
Description copied from interface: LwLayer
Gets the layer id.
Specified by:
getID in interface LwLayer
Following copied from interface: org.zaval.lw.LwLayer
Returns:
the layer id

releaseFocus

public void releaseFocus()
Description copied from interface: LwLayer
Invoked whenever the desktop lost focus.
Specified by:
releaseFocus in interface LwLayer

setupFocus

public void setupFocus()
Specified by:
setupFocus in interface LwLayer

mousePressed

public void mousePressed(int x,
                         int y,
                         int mask)
Description copied from interface: LwLayer
Invoked whenever a mouse button has been pressed.
Specified by:
mousePressed in interface LwLayer
Following copied from interface: org.zaval.lw.LwLayer
Parameters:
x - the x coordinate of the mouse pointer.
y - the y coordinate of the mouse pointer.
mask - the mask that specifies mouse buttons states.

keyPressed

public void keyPressed(int keyCode,
                       int mask)
Description copied from interface: LwLayer
Invoked whenever a key has been pressed.
Specified by:
keyPressed in interface LwLayer
Following copied from interface: org.zaval.lw.LwLayer
Parameters:
keyCode - the key code.
mask - the keyboard trigger keys states.

isActive

public boolean isActive()
Description copied from interface: LwLayer
Gets if the layer is active.
Specified by:
isActive in interface LwLayer
Following copied from interface: org.zaval.lw.LwLayer
Returns:
true if the layer is active.

getFocusRoot

public LwComponent getFocusRoot()
Description copied from interface: LwLayer
Gets if the focus root component.
Specified by:
getFocusRoot in interface LwLayer
Following copied from interface: org.zaval.lw.LwLayer
Returns:
a focus root component.


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