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

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.ContainerEvent
All Implemented Interfaces:
java.io.Serializable

public class ContainerEvent
extends ComponentEvent

Container Event.

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

Field Summary
static int COMPONENT_ADDED
          Component added id.
static int COMPONENT_REMOVED
          Component removed 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
ContainerEvent(JQContainer source, int id, JQComponent child)
          Constructs new FocusEvent object.
 
Method Summary
 JQComponent getChild()
          Returns the component that was added or removed.
 JQContainer getContainer()
          Returns the source container of the event.
 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

COMPONENT_ADDED

public static final int COMPONENT_ADDED
Component added id.

See Also:
Constant Field Values

COMPONENT_REMOVED

public static final int COMPONENT_REMOVED
Component removed id.

See Also:
Constant Field Values
Constructor Detail

ContainerEvent

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

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

getContainer

public JQContainer getContainer()
Returns the source container of the event.

Returns:
the source container of the event

getChild

public JQComponent getChild()
Returns the component that was added or removed.

Returns:
the component that was added or removed

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.