org.zaval.lw.event
Class LwContainerEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.zaval.lw.event.LwAWTEvent
|
+--org.zaval.lw.event.LwContainerEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class LwContainerEvent
- extends LwAWTEvent
This class is used with light weight containers to notify when a component
has been added to the conatiner 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 java.util.EventObject |
source |
Method Summary |
LwContainer |
getLwParent()
Gets the container where the source component has been added or removed. |
int |
getUID()
Gets the UID of the event. |
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 |
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.
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.
getLwParent
public LwContainer getLwParent()
- Gets the container where the source component has been added or removed.
- Returns:
- a container component.
getUID
public int getUID()
- Gets the UID of the event. The class uses LwAWTEvent.CONT_UID as the event UID.
- Overrides:
getUID
in class LwAWTEvent
- Returns:
- an UID.
Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org