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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
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.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaretEvent

public CaretEvent(Object source)
Suppressed: Creates a new CaretEvent object.

Parameters:
source - the object responsible for the event
Method Detail

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?