yu.ac.bg.etf.javaqx.qswing.events
Class QSwingEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byyu.ac.bg.etf.javaqx.qswing.events.QSwingEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActionEvent, ComponentEvent

public class QSwingEvent
extends java.util.EventObject

QSwing Event.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
See Also:
Serialized Form

Field Summary
static long ACTION_EVENT_MASK
          The action event mask.
static long COMPONENT_EVENT_MASK
          The component event mask.
protected  boolean consumed
           
static long CONTEXT_MENU_EVENT_MASK
          The context event mask.
static long CUSTOM_CONTEXT_MENU_EVENT_MASK
          The custom context event mask.
static long FOCUS_EVENT_MASK
          The key event mask.
protected  int id
           
static long KEY_EVENT_MASK
          The key event mask.
static long LOCATION_TOOL_TIP_MASK
          The mouse wheel event mask.
static long MOUSE_EVENT_MASK
          The mouse event mask.
static long MOUSE_MOTION_EVENT_MASK
          The mouse motion event mask.
static long MOUSE_WHEEL_EVENT_MASK
          The mouse wheel event mask.
static long PAINT_EVENT_MASK
          The paint event mask.
static long PAINT_VIEW_EVENT_MASK
          The paint view event mask.
static long WINDOW_EVENT_MASK
          The window event mask.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
QSwingEvent(java.lang.Object source)
          Constructs new QSwingEvent object.
QSwingEvent(java.lang.Object source, int id)
          Constructs new QSwingEvent object.
 
Method Summary
protected  void consume()
          Consumes the event.
 int getID()
          Returns the event type.
protected  boolean isConsumed()
          Returns true if the event is consumed.
 java.lang.String paramString()
          Returns string representation of the event.
 java.lang.String toString()
          
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_EVENT_MASK

public static final long COMPONENT_EVENT_MASK
The component event mask.

See Also:
Constant Field Values

FOCUS_EVENT_MASK

public static final long FOCUS_EVENT_MASK
The key event mask.

See Also:
Constant Field Values

KEY_EVENT_MASK

public static final long KEY_EVENT_MASK
The key event mask.

See Also:
Constant Field Values

MOUSE_EVENT_MASK

public static final long MOUSE_EVENT_MASK
The mouse event mask.

See Also:
Constant Field Values

MOUSE_MOTION_EVENT_MASK

public static final long MOUSE_MOTION_EVENT_MASK
The mouse motion event mask.

See Also:
Constant Field Values

WINDOW_EVENT_MASK

public static final long WINDOW_EVENT_MASK
The window event mask.

See Also:
Constant Field Values

ACTION_EVENT_MASK

public static final long ACTION_EVENT_MASK
The action event mask.

See Also:
Constant Field Values

PAINT_EVENT_MASK

public static final long PAINT_EVENT_MASK
The paint event mask.

See Also:
Constant Field Values

MOUSE_WHEEL_EVENT_MASK

public static final long MOUSE_WHEEL_EVENT_MASK
The mouse wheel event mask.

See Also:
Constant Field Values

LOCATION_TOOL_TIP_MASK

public static final long LOCATION_TOOL_TIP_MASK
The mouse wheel event mask.

See Also:
Constant Field Values

CONTEXT_MENU_EVENT_MASK

public static final long CONTEXT_MENU_EVENT_MASK
The context event mask.

See Also:
Constant Field Values

CUSTOM_CONTEXT_MENU_EVENT_MASK

public static final long CUSTOM_CONTEXT_MENU_EVENT_MASK
The custom context event mask.

See Also:
Constant Field Values

PAINT_VIEW_EVENT_MASK

public static final long PAINT_VIEW_EVENT_MASK
The paint view event mask.

See Also:
Constant Field Values

id

protected int id

consumed

protected boolean consumed
Constructor Detail

QSwingEvent

public QSwingEvent(java.lang.Object source)
Constructs new QSwingEvent object.

Parameters:
source - the source of the event
Throws:
java.lang.IllegalArgumentException - if the source is null

QSwingEvent

public QSwingEvent(java.lang.Object source,
                   int id)
Constructs new QSwingEvent object.

Parameters:
source - the source of the event
id - the event type
Throws:
java.lang.IllegalArgumentException - if the source is null
Method Detail

getID

public int getID()
Returns the event type.

Returns:
the event type

paramString

public java.lang.String paramString()
Returns string representation of the event.

Returns:
string representation of the event

isConsumed

protected boolean isConsumed()
Returns true if the event is consumed.

Returns:
true if the event is consumed

consume

protected void consume()
Consumes the event.


toString

public java.lang.String toString()



Copyright © 2007 ETF and contributors. All Rights Reserved.