Class JebClientEvent

java.lang.Object
com.pnfsoftware.jeb.client.events.JebClientEvent
All Implemented Interfaces:
IEvent

public class JebClientEvent extends Object implements IEvent
Events issued by JEB's GUI client.

Reserved for internal use.

  • Constructor Details

    • JebClientEvent

      public JebClientEvent(JC type)
      Create a client event with no payload and no explicit source.
      Parameters:
      type - event type
    • JebClientEvent

      public JebClientEvent(JC type, Object data)
      Create a client event with a payload and no explicit source.
      Parameters:
      type - event type
      data - optional event payload
    • JebClientEvent

      public JebClientEvent(JC type, Object data, IEventSource source)
      Create a client event.
      Parameters:
      type - event type
      data - optional event payload
      source - optional event source
  • Method Details

    • getType

      public JC getType()
      Get the event type.
      Specified by:
      getType in interface IEvent
      Returns:
      the event type
    • getData

      public Object getData()
      Get the optional event payload.
      Specified by:
      getData in interface IEvent
      Returns:
      the payload, or null if none
    • getSource

      public IEventSource getSource()
      Get the event source.
      Specified by:
      getSource in interface IEvent
      Returns:
      the source, or null if none was provided
    • getTimestamp

      public long getTimestamp()
      Get the event creation timestamp.
      Specified by:
      getTimestamp in interface IEvent
      Returns:
      a timestamp expressed in milliseconds since the epoch
    • shouldStopPropagation

      public boolean shouldStopPropagation()
      Determine whether event propagation should stop.
      Specified by:
      shouldStopPropagation in interface IEvent
      Returns:
      true if propagation should stop
    • toString

      public String toString()
      Overrides:
      toString in class Object