Class ComponentEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
vaadinx.awt.event.ComponentEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ContainerEvent, FocusEvent, InputEvent, PaintEvent, WindowEvent
Port of
ComponentEvent. AWT's version types its
source as java.awt.Component and vaadinx.awt.Component
isn't castable to that (D_event_port_policy). We extend java.awt.AWTEvent — reused
unchanged per D_whitelist_porting since AWTEvent's own source type is Object — and
replace only the Component-typed fields and accessors.
Nothing in the current slice actually fires ComponentEvent; the class
exists so ContainerEvent has the right parent. The id-range
constants are kept at AWT's values so any user code that compares them to
AWT constants still works.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASKFields inherited from class EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the originating component.Methods inherited from class EventObject
getSource
-
Field Details
-
COMPONENT_FIRST
public static final int COMPONENT_FIRST- See Also:
-
COMPONENT_LAST
public static final int COMPONENT_LAST- See Also:
-
COMPONENT_MOVED
public static final int COMPONENT_MOVED- See Also:
-
COMPONENT_RESIZED
public static final int COMPONENT_RESIZED- See Also:
-
COMPONENT_SHOWN
public static final int COMPONENT_SHOWN- See Also:
-
COMPONENT_HIDDEN
public static final int COMPONENT_HIDDEN- See Also:
-
-
Constructor Details
-
ComponentEvent
-
-
Method Details
-
getComponent
Returns the originating component. Cast tovaadinx.awt.Componentis safe because the constructor is the only entry point and requires exactly that type. -
paramString
- Overrides:
paramStringin classAWTEvent
-