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

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
              extended byyu.ac.bg.etf.javaqx.qswing.events.FocusEvent
All Implemented Interfaces:
java.io.Serializable

public class FocusEvent
extends ComponentEvent

Focus Event.

NOTE: This class is not full compatible with java.awt.event.FocusEvent class!

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

Field Summary
static int FOCUS_GAINED
          Focus gained id.
static int FOCUS_LOST
          Focus lost id.
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.events.ComponentEvent
COMPONENT_HIDDEN, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN
 
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
FocusEvent(JQComponent source, int id)
          Constructs new FocusEvent object.
 
Method Summary
 java.lang.String paramString()
          Returns string representation of the event.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.ComponentEvent
getComponent
 
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

FOCUS_GAINED

public static final int FOCUS_GAINED
Focus gained id.

See Also:
Constant Field Values

FOCUS_LOST

public static final int FOCUS_LOST
Focus lost id.

See Also:
Constant Field Values
Constructor Detail

FocusEvent

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

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

paramString

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

Overrides:
paramString in class ComponentEvent


Copyright © 2007 ETF and contributors. All Rights Reserved.