: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.lw
Interface LwLayer

All Superinterfaces:
Layoutable, LayoutContainer, LwComponent, LwContainer, Validationable
All Known Implementing Classes:
LwBaseLayer

public interface LwLayer
extends LwContainer

This layer interface is a special container that is used as the LwDesktop children. The desktop consists of the layers. Every layer is laid out by the desktop to place all desktop room. When an event is performed the desktop "asks" the layers starting from the tail layer if it is ready to get the event and delivers the event to the first-found layer. The layered structure of the desktop allows you to implement additional features (for example, internal frames, popup menu) basing on the LwVCL level.


Method Summary
 void activate(boolean b)
          Invoked whenever the layer has been activated or de-activated.
 LwComponent getFocusRoot()
          Gets if the focus root component.
 java.lang.Object getID()
          Gets the layer id.
 boolean isActive()
          Tests if the layer is active.
 boolean isActiveAt(int x, int y)
          Tests if the layer is active at the specified location.
 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.
 
Methods inherited from interface org.zaval.lw.LwContainer
add, add, getLwLayout, indexOf, insert, isInvalidatedByChild, paintOnTop, remove, removeAll, setLwLayout
 
Methods inherited from interface org.zaval.lw.LwComponent
canHaveFocus, getBackground, getLwComponentAt, getLwParent, getOrigin, getViewMan, getVisiblePart, isEnabled, isOpaque, paint, repaint, repaint, repaint, setBackground, setEnabled, setInsets, setLwParent, setOpaque, setViewMan, setVisible, update
 
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.util.Validationable
invalidate, isValid, validate
 
Methods inherited from interface org.zaval.lw.LayoutContainer
count, get, getLayoutOffset
 

Method Detail

getID

public java.lang.Object getID()
Gets the layer id.
Returns:
the layer id

activate

public void activate(boolean b)
Invoked whenever the layer has been activated or de-activated.
Parameters:
b - the flag specifies if the layer has been activated or de-activated. The argument value is true if the layer has been activated.

mousePressed

public void mousePressed(int x,
                         int y,
                         int mask)
Invoked whenever a mouse button has been pressed.
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)
Invoked whenever a key has been pressed.
Parameters:
keyCode - the key code.
mask - the keyboard trigger keys states.

isActive

public boolean isActive()
Tests if the layer is active.
Returns:
true if the layer is active.

isActiveAt

public boolean isActiveAt(int x,
                          int y)
Tests if the layer is active at the specified location. As rule the method is called when a mouse (pointer) event happened.
Parameters:
x - the x coordinate.
y - the y coordinate.
Returns:
true if the layer is active.

getFocusRoot

public LwComponent getFocusRoot()
Gets if the focus root component.
Returns:
a focus root component.


: up