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

public class ComponentEvent extends AWTEvent
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 Details

  • Constructor Details

    • ComponentEvent

      public ComponentEvent(Component source, int id)
  • Method Details

    • getComponent

      public Component getComponent()
      Returns the originating component. Cast to vaadinx.awt.Component is safe because the constructor is the only entry point and requires exactly that type.
    • paramString

      public String paramString()
      Overrides:
      paramString in class AWTEvent