Package ca.phon.app.session.editor
Class SessionEditorSelection
java.lang.Object
ca.phon.app.session.editor.SessionEditorSelection
- All Implemented Interfaces:
IExtendable
Selection information used for
EditorSelectionModel
.
Custom highlighting can be obtained by attaching an extension
of type Highlighter.HighlightPainter
-
Constructor Summary
ConstructorDescriptionSessionEditorSelection
(int recordIndex, String tierName, int groupIndex, Range groupRange) -
Method Summary
Modifier and TypeMethodDescription<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedint
int
<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.<T> T
removeExtension
(Class<T> cap) Remove a capability.
-
Constructor Details
-
SessionEditorSelection
-
-
Method Details
-
getRecordIndex
public int getRecordIndex() -
getTierName
-
getGroupIndex
public int getGroupIndex() -
getGroupRange
-
getExtensions
Description copied from interface:IExtendable
Return all extension types supported- Specified by:
getExtensions
in interfaceIExtendable
-
getExtension
Description copied from interface:IExtendable
Get the requested extension if available.- Specified by:
getExtension
in interfaceIExtendable
- Returns:
- the capability object or
null
if the cability is not available
-
putExtension
Description copied from interface:IExtendable
Add a new extension.- Specified by:
putExtension
in interfaceIExtendable
- Parameters:
cap
- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendable
Remove a capability.- Specified by:
removeExtension
in interfaceIExtendable
- Parameters:
cap
- the capability to remove
-