Package com.microfocus.zfe.haapi.ps
Class CursorChangedEvent
java.lang.Object
com.microfocus.zfe.haapi.ps.PresentationSpaceEvent
com.microfocus.zfe.haapi.ps.CursorChangedEvent
Event fired when the state of the presentation space cursor changes. The
state change may be due to a new location or a change in visibility state or
both.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.microfocus.zfe.haapi.ps.PresentationSpaceEvent
PresentationSpaceEvent.Origin
-
Field Summary
Fields inherited from class com.microfocus.zfe.haapi.ps.PresentationSpaceEvent
origin, ps
-
Constructor Summary
ConstructorDescriptionCursorChangedEvent
(PresentationSpace ps, PresentationSpaceEvent.Origin origin, boolean visible, Position pos) Constructor for generating a new CursorEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current cursor positionboolean
Flag to indicate the current cursor visibility statetoString()
Methods inherited from class com.microfocus.zfe.haapi.ps.PresentationSpaceEvent
getEventOrigin, getPresentationSpace
-
Constructor Details
-
CursorChangedEvent
public CursorChangedEvent(PresentationSpace ps, PresentationSpaceEvent.Origin origin, boolean visible, Position pos) Constructor for generating a new CursorEvent.- Parameters:
ps
- The PresentationSpace instance that generated the eventorigin
- of the eventvisible
- flag to indicate cursor visibility statepos
- the current cursor position
-
-
Method Details
-
isVisible
public boolean isVisible()Flag to indicate the current cursor visibility state- Returns:
- true if the cursor is visible, false otherwise
-
getPosition
Returns the current cursor position- Returns:
- the current cursor position
-
toString
- Overrides:
toString
in classPresentationSpaceEvent
- Returns:
- a human-readable rendering of this object.
-