: 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.event
Class LwContainerEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.zaval.lw.event.LwVCLEvent
              |
              +--org.zaval.lw.event.LwContainerEvent
All Implemented Interfaces:
java.io.Serializable

public class LwContainerEvent
extends LwVCLEvent

This class is used with light weight containers to notify when a component has been added to the container or removed from the container.

See Also:
Serialized Form

Field Summary
static int COMP_ADDED
          The component added event type.
static int COMP_REMOVED
          The component removed event type.
 
Fields inherited from class org.zaval.lw.event.LwVCLEvent
COMP_DISABLED, COMP_ENABLED, COMP_HIDDEN, COMP_SHOWN, COMP_UID, CONT_UID, FOCUS_GAINED, FOCUS_LOST, FOCUS_UID, id, KEY_UID, MOUSE_UID, uid
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LwContainerEvent(LwComponent target, LwContainer p, int id)
          Constructs the event object with the specified source object, the parent container and the event id.
 
Method Summary
 LwContainer getLwParent()
          Gets the container where the source component has been added or removed.
 
Methods inherited from class org.zaval.lw.event.LwVCLEvent
getID, getLwComponent, getUID
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMP_ADDED

public static final int COMP_ADDED
The component added event type.

COMP_REMOVED

public static final int COMP_REMOVED
The component removed event type.
Constructor Detail

LwContainerEvent

public LwContainerEvent(LwComponent target,
                        LwContainer p,
                        int id)
Constructs the event object with the specified source object, the parent container and the event id.
Parameters:
target - the object where the event originated.
p - the parent container, where the specified source has been added or removed.
id - the specified event id.
Method Detail

getLwParent

public LwContainer getLwParent()
Gets the container where the source component has been added or removed.
Returns:
a container component.


: up