Class Event

    • Constructor Summary

      Constructors 
      Constructor Description
      Event​(java.lang.String name)
      Constructs a simple event without target.
      Event​(java.lang.String name, Component target)
      Constructs a simple event.
      Event​(java.lang.String name, Component target, java.lang.Object data)
      Constructs a simple event.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getData()
      Returns the data accompanies with this event, or null if not available.
      static Event getEvent​(AuRequest request)
      Creates an instance of Event based on the specified request.
      java.lang.String getName()
      Returns the event name.
      Page getPage()
      Returns the page owning this event, or null if broadcast.
      Component getTarget()
      Returns the target component that receives this event, or null if broadcast.
      boolean isPropagatable()
      Returns whether this event is propagatable.
      void stopPropagation()
      Stops the propagation for this event.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Event

        public Event​(java.lang.String name)
        Constructs a simple event without target.
        Parameters:
        name - the name of the event
        Since:
        5.0.0
      • Event

        public Event​(java.lang.String name,
                     Component target)
        Constructs a simple event.
        Parameters:
        name - the name of the event
        target - the component to receive this event, or null to indicate broadcasting the event to all root components.
      • Event

        public Event​(java.lang.String name,
                     Component target,
                     java.lang.Object data)
        Constructs a simple event.
        Parameters:
        name - the name of the event
        target - the component to receive this event, or null to indicate broadcasting the event to all root components.
        data - an arbitrary data