Package com.microfocus.zfe.haapi.ps
Class PresentationSpaceEvent
- java.lang.Object
-
- com.microfocus.zfe.haapi.ps.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
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PresentationSpaceEvent.Origin
Used for listener registration as well indicating the event origin
-
Field Summary
Fields Modifier and Type Field Description protected PresentationSpaceEvent.Origin
origin
The event originprotected PresentationSpace
ps
-
Constructor Summary
Constructors Modifier Constructor Description protected
PresentationSpaceEvent(PresentationSpace ps, PresentationSpaceEvent.Origin origin)
Constructor for generating a new PresentationSpaceEvent with a specific origin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PresentationSpaceEvent.Origin
getEventOrigin()
Returns the event origin, either PresentationSpaceListener.Origin.USER or PresentationSpaceListener.PSEventTypeHOSTPresentationSpace
getPresentationSpace()
Returns the PresentationSpace that generated the eventString
toString()
-
-
-
Field Detail
-
origin
protected PresentationSpaceEvent.Origin origin
The event origin
-
ps
protected final PresentationSpace ps
-
-
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 eventorigin
- 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
-
-