|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.jidesoft.editor.caret.CaretEvent
public class CaretEvent
The event to represent a caret position change.
Field Summary | |
---|---|
static int |
MODEL_POSITION
|
static int |
VIEW_POSITION
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
CaretEvent(CodeEditor editor,
CaretPosition oldPosition,
CaretPosition newPosition)
Creates CaretEvent that represents a caret position change. |
|
CaretEvent(CodeEditor editor,
int type,
CaretPosition oldPosition,
CaretPosition newPosition)
Creates CaretEvent that represents a caret position change. |
Method Summary | |
---|---|
CodeEditor |
getCodeEditor()
Gets the CodeEditor associated with this CarentEvent. |
CaretPosition |
getNewPosition()
Gets the new caret position. |
CaretPosition |
getOldPosition()
Gets the old caret position. |
int |
getType()
Gets the type of the caret event. |
String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MODEL_POSITION
public static final int VIEW_POSITION
Constructor Detail |
---|
public CaretEvent(CodeEditor editor, CaretPosition oldPosition, CaretPosition newPosition)
editor
- the CodeEditor.oldPosition
- the old caret position.newPosition
- the new caret position.public CaretEvent(CodeEditor editor, int type, CaretPosition oldPosition, CaretPosition newPosition)
editor
- the CodeEditor.type
- the event type to indicate the event is for the MODEL_POSITION or for the VIEW_POSITION.oldPosition
- the old caret position.newPosition
- the new caret position.Method Detail |
---|
public CodeEditor getCodeEditor()
public CaretPosition getOldPosition()
public CaretPosition getNewPosition()
public int getType()
MODEL_POSITION
or VIEW_POSITION
.
MODEL_POSITION
or VIEW_POSITION
.public String toString()
toString
in class EventObject
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |