Class TranscriptionSelectorComponentFactory
java.lang.Object
ca.phon.app.session.editor.view.transcript.TranscriptionSelectorComponentFactory
- All Implemented Interfaces:
ComponentFactory
The
ComponentFactory
that creates the selector buttons on blind transcription lines-
Constructor Summary
ConstructorsConstructorDescriptionTranscriptionSelectorComponentFactory
(Session session, EditorEventManager eventManager, SessionEditUndoSupport undoSupport, Record record, Tier<?> tier, String transcriptionText) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncreateComponent
(AttributeSet attrs) Create a component for the given attributesReturn the previously created component (if any)void
requestFocusAtOffset
(int offset) Request focus of specific offset, meaning of offset would be determined by the component.void
Focus the 'end' of the componentvoid
Focus the 'beginning' of the component
-
Constructor Details
-
TranscriptionSelectorComponentFactory
public TranscriptionSelectorComponentFactory(Session session, EditorEventManager eventManager, SessionEditUndoSupport undoSupport, Record record, Tier<?> tier, String transcriptionText) Constructor
-
-
Method Details
-
createComponent
Description copied from interface:ComponentFactory
Create a component for the given attributes- Specified by:
createComponent
in interfaceComponentFactory
- Parameters:
attrs
-- Returns:
- component
-
getComponent
Description copied from interface:ComponentFactory
Return the previously created component (if any)- Specified by:
getComponent
in interfaceComponentFactory
- Returns:
- component
-
requestFocusStart
public void requestFocusStart()Description copied from interface:ComponentFactory
Focus the 'beginning' of the component- Specified by:
requestFocusStart
in interfaceComponentFactory
-
requestFocusEnd
public void requestFocusEnd()Description copied from interface:ComponentFactory
Focus the 'end' of the component- Specified by:
requestFocusEnd
in interfaceComponentFactory
-
requestFocusAtOffset
public void requestFocusAtOffset(int offset) Description copied from interface:ComponentFactory
Request focus of specific offset, meaning of offset would be determined by the component. If not possible should focus beginning/end of component as appropriate.- Specified by:
requestFocusAtOffset
in interfaceComponentFactory
- Parameters:
offset
-
-