Class SCaretEvent

java.lang.Object
java.util.EventObject
javax.swing.event.CaretEvent
com.vaadin.swingbridge.surrogates.swing.text.SCaretEvent
All Implemented Interfaces:
Serializable

public final class SCaretEvent extends CaretEvent
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:
  • Constructor Details

    • SCaretEvent

      public SCaretEvent(Object source, int dot, int mark)
  • Method Details