Class PresentationSpaceEvent

  • Direct Known Subclasses:
    ContentChangedEvent, CursorChangedEvent, MetricsChangedEvent

    public abstract class PresentationSpaceEvent
    extends Object
    Base class for events fired to notify listeners that something in the presentation space has changed. The actual event fired will be an instance of All event instances contain the event origin which is either
    • PresentationSpaceEvent.Origin.USER
    • PresentationSpaceEvent.Origin.HOST
    User events are generated as a result of user input via PresentationSpace methods, for example, sendKeys().
    Host events are generated as a result of host driven presentation space changes.
    See the java docs for the concrete event classes for specifics about what the events contain.
    • Constructor Detail

      • PresentationSpaceEvent

        protected PresentationSpaceEvent​(PresentationSpace ps,
                                         PresentationSpaceEvent.Origin origin)
        Constructor for generating a new PresentationSpaceEvent with a specific origin.
        Parameters:
        ps - The PresentationSpace instance that generated the event
        origin - of the event
    • Method Detail

      • getPresentationSpace

        public PresentationSpace getPresentationSpace()
        Returns the PresentationSpace that generated the event
        Returns:
        the PresentationSpace that generated the event
      • getEventOrigin

        public PresentationSpaceEvent.Origin getEventOrigin()
        Returns the event origin, either PresentationSpaceListener.Origin.USER or PresentationSpaceListener.PSEventTypeHOST
        Returns:
        the event origin
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a human-readable rendering of this object.