Class SCaretEvent
java.lang.Object
java.util.EventObject
javax.swing.event.CaretEvent
com.vaadin.swingbridge.surrogates.swing.text.SCaretEvent
- All Implemented Interfaces:
Serializable
The
CaretEvent handed to a
CaretListener on every dot/mark move — Swing's own
event class is abstract and its only concrete implementation is package-
private inside javax.swing.text.JTextComponent, so the fan-out needs
one of these.
Immutable: the offsets are the ones at fire time, not a live view of the component. Swing's own implementation is mutable and reused across fires, which is a trap for a listener that stashes the event — this one has no such hazard.
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class EventObject
getSource
-
Constructor Details
-
SCaretEvent
-
-
Method Details
-
getDot
public int getDot()- Specified by:
getDotin classCaretEvent
-
getMark
public int getMark()- Specified by:
getMarkin classCaretEvent
-
toString
- Overrides:
toStringin classEventObject
-