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 TypeMethodDescriptionvoid
afterMoveCaret
(int dot, int moveTo) Called when the caret is moved to a new location.void
afterSetDot
(int oldDot, int newDot) Called after the caret is moved.boolean
beforeMoveCaret
(int dot, int moveTo) Called when the caret is moved to a new location.boolean
beforeSetDot
(int oldDot, int newDot) Called before the caret is moved.void
caretFrozen
(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:TranscriptEditorCaretHook
Called before the caret is moved.- Specified by:
beforeSetDot
in 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:TranscriptEditorCaretHook
Called after the caret is moved.- Specified by:
afterSetDot
in interfaceTranscriptEditorCaretHook
- Parameters:
oldDot
- the old caret positionnewDot
- the new caret position
-
caretFrozen
public void caretFrozen(boolean frozen) Description copied from interface:TranscriptEditorCaretHook
Called when the caret is frozen or unfrozen.- Specified by:
caretFrozen
in interfaceTranscriptEditorCaretHook
- Parameters:
frozen
- true if the caret is frozen, false if unfrozen
-
beforeMoveCaret
public boolean beforeMoveCaret(int dot, int moveTo) Description copied from interface:TranscriptEditorCaretHook
Called when the caret is moved to a new location.- Specified by:
beforeMoveCaret
in 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:TranscriptEditorCaretHook
Called when the caret is moved to a new location.- Specified by:
afterMoveCaret
in interfaceTranscriptEditorCaretHook
- Parameters:
dot
- the previous location of the caretmoveTo
- the move location of the caret
-