javax.swing.event
Class CaretEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.swing.event.CaretEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- javax.swing.text.JTextComponent.MutableCaretEvent
- public abstract class CaretEvent
- extends EventObject
Safe:
- See Also:
- Serialized Form
Constructor Summary |
CaretEvent(Object source)
Suppressed: Creates a new CaretEvent object. |
Method Summary |
abstract int |
getDot()
Enabled: Fetches the location of the caret. |
abstract int |
getMark()
Enabled: Fetches the location of other end of a logical
selection. |
CaretEvent
public CaretEvent(Object source)
- Suppressed: Creates a new CaretEvent object.
- Parameters:
source
- the object responsible for the event
getDot
public abstract int getDot()
- Enabled: Fetches the location of the caret.
- Returns:
- the dot >= 0
getMark
public abstract int getMark()
- Enabled: Fetches the location of other end of a logical
selection. If there is no selection, this
will be the same as dot.
- Returns:
- the mark >= 0
comments?