Class BubbleEvent

java.lang.Object
com.iizix.event.GEvent
com.iizix.event.BubbleEvent
All Implemented Interfaces:
IPostEventProcessing
Direct Known Subclasses:
CommonDesignerEvent, KStringEvent, PropAttrEvent, PropCnrEvent, PropCopyEvent, PropDisposeEvent, PropFocusEvent, PropMoveEvent, PropNameEvent, PropReorderEvent, PropValueEvent, RemoteEvent

public abstract class BubbleEvent extends GEvent
Abstract class extending the base GEvent to set the event propagation to sinking, i.e. an event send from child to parent.

Sinking events are typically used when a parent wishes to inform children of something, or by means of a "messaging system" to let e.g. an event collect information from potential event listeners, a good example would be QueryReferencesEvent, and ResolveReferencesEvent.

Author:
Christopher Mindus
  • Constructor Details

    • BubbleEvent

      public BubbleEvent(GProp<?> source, int eventID, boolean isRemoteInduced)
      Constructs the generic sink event with specified originator.
      Parameters:
      source - The source object.
      eventID - The event ID, see GEvent.PROP_*.
      isRemoteInduced - Flag indicating this change is induced from a remote party.
  • Method Details

    • getOperations

      public GEvent.Operation[] getOperations()
      Gets the Operations order describing what Operation the property that receives the event should process. This Operations order defines that the event will be bubbling, i.e. sent from child to parent.

      The event Operations in order are: SELF, LISTENERS, PARENT.

      Specified by:
      getOperations in class GEvent
      Returns:
      The order of the Operations, per Event-implementing class dependent, normally a static final array.