: 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 LwVCLEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.zaval.lw.event.LwVCLEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LwContainerEvent, LwKeyEvent, LwMouseEvent

public class LwVCLEvent
extends java.util.EventObject

This is base class for most light weight events to provide:

  • The event id by the getID method.
  • The event class UID by the getUID method. The event class UID defines type of the event, for example LwMouseEvent has LwVCLEvent.MOUSE_UID UID.

See Also:
Serialized Form

Field Summary
static int COMP_DISABLED
          The component disabled event type.
static int COMP_ENABLED
          The component enabled event type.
static int COMP_HIDDEN
          The component hidden event type.
static int COMP_SHOWN
          The component shown event type.
static int COMP_UID
          The component event UID.
static int CONT_UID
          The container event UID.
static int FOCUS_GAINED
          The focus gained event type.
static int FOCUS_LOST
          The focus lost event type.
static int FOCUS_UID
          The focus event UID.
protected  int id
          The event id.
static int KEY_UID
          The key event UID.
static int MOUSE_UID
          The mouse event UID.
protected  int uid
          The event id.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
  LwVCLEvent(LwComponent target, int id)
           
protected LwVCLEvent(LwComponent target, int id, int uid)
          Constructs an event object with the specified source object, the event id and the given UID.
 
Method Summary
 int getID()
          Gets the event id.
 LwComponent getLwComponent()
          Gets the source object of the event as LwComponent instance.
 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
 

Field Detail

COMP_UID

public static final int COMP_UID
The component event UID.

MOUSE_UID

public static final int MOUSE_UID
The mouse event UID.

KEY_UID

public static final int KEY_UID
The key event UID.

FOCUS_UID

public static final int FOCUS_UID
The focus event UID.

CONT_UID

public static final int CONT_UID
The container event UID.

FOCUS_LOST

public static final int FOCUS_LOST
The focus lost event type.

FOCUS_GAINED

public static final int FOCUS_GAINED
The focus gained event type.

COMP_DISABLED

public static final int COMP_DISABLED
The component disabled event type.

COMP_ENABLED

public static final int COMP_ENABLED
The component enabled event type.

COMP_SHOWN

public static final int COMP_SHOWN
The component shown event type.

COMP_HIDDEN

public static final int COMP_HIDDEN
The component hidden event type.

id

protected int id
The event id.

uid

protected int uid
The event id.
Constructor Detail

LwVCLEvent

public LwVCLEvent(LwComponent target,
                  int id)

LwVCLEvent

protected LwVCLEvent(LwComponent target,
                     int id,
                     int uid)
Constructs an event object with the specified source object, the event id and the given UID.
Parameters:
target - the object where the event originated.
id - the specified event id.
uid - the specified event UID.
Method Detail

getID

public int getID()
Gets the event id.
Returns:
an event id.

getLwComponent

public LwComponent getLwComponent()
Gets the source object of the event as LwComponent instance.
Returns:
a source object as LwComponent instance.

getUID

public int getUID()
Gets the UID of the event. The UID defines the event class.
Returns:
an UID.


: up