Class SAncestorEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.vaadin.swingbridge.surrogates.awt.event.SAncestorEvent
- All Implemented Interfaces:
Serializable
Surrogate-side port of
AncestorEvent. Source
type retyped from JComponent to Vaadin
Component; ancestor / ancestorParent
retyped from Container to Component for the
same reason (SD_event_port_stance).
Constants (ANCESTOR_ADDED / ANCESTOR_REMOVED /
ANCESTOR_MOVED) preserved verbatim from JDK so id-arithmetic
carries across.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionSAncestorEvent(com.vaadin.flow.component.Component source, int id, com.vaadin.flow.component.Component ancestor, com.vaadin.flow.component.Component ancestorParent) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentThe ancestor whose state changed.com.vaadin.flow.component.ComponentParent ofgetAncestor()at the time of the event.com.vaadin.flow.component.ComponentConvenience — same as(Component) getSource().Methods inherited from class EventObject
getSource
-
Field Details
-
ANCESTOR_ADDED
public static final int ANCESTOR_ADDED- See Also:
-
ANCESTOR_MOVED
public static final int ANCESTOR_MOVED- See Also:
-
ANCESTOR_REMOVED
public static final int ANCESTOR_REMOVED- See Also:
-
-
Constructor Details
-
SAncestorEvent
public SAncestorEvent(com.vaadin.flow.component.Component source, int id, com.vaadin.flow.component.Component ancestor, com.vaadin.flow.component.Component ancestorParent) - Parameters:
source- the component whose ancestor relationship changedid- one ofANCESTOR_ADDED/ANCESTOR_REMOVED/ANCESTOR_MOVEDancestor- the ancestor component that was added / removed / moved (typically the source itself for direct attach/detach events)ancestorParent- the ancestor's parent at the moment of the event (nullwhen the source has no parent)
-
-
Method Details
-
getAncestor
public com.vaadin.flow.component.Component getAncestor()The ancestor whose state changed. -
getAncestorParent
public com.vaadin.flow.component.Component getAncestorParent()Parent ofgetAncestor()at the time of the event. -
getComponent
public com.vaadin.flow.component.Component getComponent()Convenience — same as(Component) getSource(). -
paramString
- Overrides:
paramStringin classAWTEvent
-