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)voidrequestFocusAtOffset(int offset) Request focus of specific offset, meaning of offset would be determined by the component.voidFocus the 'end' of the componentvoidFocus 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:ComponentFactoryCreate a component for the given attributes- Specified by:
createComponentin interfaceComponentFactory- Parameters:
attrs-- Returns:
- component
-
getComponent
Description copied from interface:ComponentFactoryReturn the previously created component (if any)- Specified by:
getComponentin interfaceComponentFactory- Returns:
- component
-
requestFocusStart
public void requestFocusStart()Description copied from interface:ComponentFactoryFocus the 'beginning' of the component- Specified by:
requestFocusStartin interfaceComponentFactory
-
requestFocusEnd
public void requestFocusEnd()Description copied from interface:ComponentFactoryFocus the 'end' of the component- Specified by:
requestFocusEndin interfaceComponentFactory
-
requestFocusAtOffset
public void requestFocusAtOffset(int offset) Description copied from interface:ComponentFactoryRequest 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:
requestFocusAtOffsetin interfaceComponentFactory- Parameters:
offset-
-