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

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

public class ComponentEvent
extends QSwingEvent

Component Event.

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

Field Summary
static int COMPONENT_HIDDEN
          Component hidden id.
static int COMPONENT_MOVED
          Component moved id.
static int COMPONENT_RESIZED
          Component resized id.
static int COMPONENT_SHOWN
          Component shown id.
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent
ACTION_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTEXT_MENU_EVENT_MASK, CUSTOM_CONTEXT_MENU_EVENT_MASK, FOCUS_EVENT_MASK, id, KEY_EVENT_MASK, LOCATION_TOOL_TIP_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, PAINT_VIEW_EVENT_MASK, WINDOW_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ComponentEvent(JQComponent source, int id)
          Constructs new ComponentEvent object.
 
Method Summary
 JQComponent getComponent()
          Returns the source component of the event.
 java.lang.String paramString()
          Returns string representation of the event.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent
consume, getID, isConsumed, 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_MOVED

public static final int COMPONENT_MOVED
Component moved id.

See Also:
Constant Field Values

COMPONENT_RESIZED

public static final int COMPONENT_RESIZED
Component resized id.

See Also:
Constant Field Values

COMPONENT_SHOWN

public static final int COMPONENT_SHOWN
Component shown id.

See Also:
Constant Field Values

COMPONENT_HIDDEN

public static final int COMPONENT_HIDDEN
Component hidden id.

See Also:
Constant Field Values
Constructor Detail

ComponentEvent

public ComponentEvent(JQComponent source,
                      int id)
Constructs new ComponentEvent object.

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

getComponent

public JQComponent getComponent()
Returns the source component of the event.

Returns:
the source component of the event

paramString

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

Overrides:
paramString in class QSwingEvent
Returns:
string representation of the event


Copyright © 2007 ETF and contributors. All Rights Reserved.