Package com.microfocus.zfe.haapi.ps
Class CursorChangedEvent
- java.lang.Object
-
- com.microfocus.zfe.haapi.ps.PresentationSpaceEvent
-
- com.microfocus.zfe.haapi.ps.CursorChangedEvent
-
public class CursorChangedEvent extends PresentationSpaceEvent
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.- See Also:
PresentationSpaceEvent
,PresentationSpaceListener
-
-
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
Constructors Constructor Description CursorChangedEvent(PresentationSpace ps, PresentationSpaceEvent.Origin origin, boolean visible, Position pos)
Constructor for generating a new CursorEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Position
getPosition()
Returns the current cursor positionboolean
isVisible()
Flag to indicate the current cursor visibility stateString
toString()
-
Methods inherited from class com.microfocus.zfe.haapi.ps.PresentationSpaceEvent
getEventOrigin, getPresentationSpace
-
-
-
-
Constructor Detail
-
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 Detail
-
isVisible
public boolean isVisible()
Flag to indicate the current cursor visibility state- Returns:
- true if the cursor is visible, false otherwise
-
getPosition
public Position getPosition()
Returns the current cursor position- Returns:
- the current cursor position
-
toString
public String toString()
- Overrides:
toString
in classPresentationSpaceEvent
- Returns:
- a human-readable rendering of this object.
-
-