FileDocCategorySizeDatePackage
CaretEvent.javaAPI DocJava SE 5 API1477Fri Aug 26 14:58:00 BST 2005javax.swing.event

CaretEvent

public abstract class CaretEvent extends EventObject
CaretEvent is used to notify interested parties that the text caret has changed in the event source.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see {@link java.beans.XMLEncoder}.

version
1.13 12/19/03
author
Timothy Prinzing

Fields Summary
Constructors Summary
public CaretEvent(Object source)
Creates a new CaretEvent object.

param
source the object responsible for the event

        super(source);
    
Methods Summary
public abstract intgetDot()
Fetches the location of the caret.

return
the dot >= 0

public abstract intgetMark()
Fetches the location of other end of a logical selection. If there is no selection, this will be the same as dot.

return
the mark >= 0