Class TranscriptEditorCaretHookAdapter
java.lang.Object
ca.phon.app.session.editor.view.transcript.TranscriptEditorCaretHookAdapter
- All Implemented Interfaces:
TranscriptEditorCaretHook
- Direct Known Subclasses:
TierChangeCaretHook
Adapter class for
TranscriptEditorCaretHook.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterMoveCaret(int dot, int moveTo) Called when the caret is moved to a new location.voidafterSetDot(int oldDot, int newDot) Called after the caret is moved.booleanbeforeMoveCaret(int dot, int moveTo) Called when the caret is moved to a new location.booleanbeforeSetDot(int oldDot, int newDot) Called before the caret is moved.voidcaretFrozen(boolean frozen) Called when the caret is frozen or unfrozen.
-
Constructor Details
-
TranscriptEditorCaretHookAdapter
public TranscriptEditorCaretHookAdapter()
-
-
Method Details
-
beforeSetDot
public boolean beforeSetDot(int oldDot, int newDot) Description copied from interface:TranscriptEditorCaretHookCalled before the caret is moved.- Specified by:
beforeSetDotin interfaceTranscriptEditorCaretHook- Parameters:
oldDot- the old caret positionnewDot- the new caret position to move to- Returns:
- true if the caret should be moved, false otherwise
-
afterSetDot
public void afterSetDot(int oldDot, int newDot) Description copied from interface:TranscriptEditorCaretHookCalled after the caret is moved.- Specified by:
afterSetDotin interfaceTranscriptEditorCaretHook- Parameters:
oldDot- the old caret positionnewDot- the new caret position
-
caretFrozen
public void caretFrozen(boolean frozen) Description copied from interface:TranscriptEditorCaretHookCalled when the caret is frozen or unfrozen.- Specified by:
caretFrozenin interfaceTranscriptEditorCaretHook- Parameters:
frozen- true if the caret is frozen, false if unfrozen
-
beforeMoveCaret
public boolean beforeMoveCaret(int dot, int moveTo) Description copied from interface:TranscriptEditorCaretHookCalled when the caret is moved to a new location.- Specified by:
beforeMoveCaretin interfaceTranscriptEditorCaretHook- Parameters:
dot- the previous location of the caretmoveTo- the move location of the caret- Returns:
- true if the caret should be moved, false otherwise
-
afterMoveCaret
public void afterMoveCaret(int dot, int moveTo) Description copied from interface:TranscriptEditorCaretHookCalled when the caret is moved to a new location.- Specified by:
afterMoveCaretin interfaceTranscriptEditorCaretHook- Parameters:
dot- the previous location of the caretmoveTo- the move location of the caret
-