Class TranscriptEditor
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JEditorPane
ca.phon.app.session.editor.view.transcript.TranscriptEditor
- All Implemented Interfaces:
IExtendable,ClipboardOwner,ImageObserver,MenuContainer,Serializable,Accessible,Scrollable
A custom JEditorPane implementation for displaying and modifying Phon session transcripts.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheHighlighter.HighlightPainterthat paints the error underlinesstatic final recordstatic final recordA record that contains the data for session location change eventsNested classes/interfaces inherited from class javax.swing.JEditorPane
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupportNested classes/interfaces inherited from class javax.swing.text.JTextComponent
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBindingNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EditorEventType<Void> The editor event type for the event that gets fired if the current record changes when the editor is in "single record view" modestatic final EditorEventType<Void> static final EditorEventType<TranscriptEditor.TranscriptLocationChangeData> The editor event type for the session location change eventFields inherited from class javax.swing.JEditorPane
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITSFields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEYFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionTranscriptEditor(EditorDataModel dataModel, EditorSelectionModel selectionModel, EditorEventManager eventManager, SessionEditUndoSupport undoSupport, UndoManager undoManager) ConstructorTranscriptEditor(Session session) ConstructorTranscriptEditor(Session session, EditorEventManager eventManager, SessionEditUndoSupport undoSupport, UndoManager undoManager) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalTierName(String tierName) Add a tier name to the set of tier names used to calculate the width of the tier labels.voidaddNotTraversableAttribute(String attributeKey) Adds an attribute to the "not traversable" setvoidvoidSets the box selection to the specified boundsvoidChanges the speaker of a given record to a given participantvoidchangeTierData(Record record, Tier<?> tier, String newData) Changes the data in a given tier if the provided data is differentcharPosToSessionLocation(int charPos) Converts a character position in the document into aTranscriptElementLocationobjectvoidcommentDataChanged(Comment comment, String newData) Changes the data in a given comment if the provided data is differentvoidcommitChanges(int charPos) Commit changed tier data at caret locationvoidcut()voidgemDataChanged(Gem gem, String newData) Changes the data in a given gem if the provided data is differentvoidgenericDataChanged(Tier<?> genericTier, String newData) Changes the data in a given generic tier if the provided data is differentGet the current callout window (if any)intGets the transcript element index for the current caret posintGets the record index of the carets current positionReturns the current location in the document as a TranscriptElementLocation<T> TgetExtension(Class<T> cap) Get the requested extension if available.Return all extension types supportedintgetNextValidIndex(int currentPos, boolean looping) Gets the next valid index for the caret from the given positionintgetPrevValidIndex(int currentPos, boolean looping) Gets the previous valid index for the caret from the given positionintgetStartOfNextTierOrElement(int caretPos) Gets the start position of the next lineintgetStartOfPrevTierOrElement(int caretPos) Gets the start position of the previous lineintvoidHide current callout windowvoidHides the specified tiers (and moves the caret if needed)booleanbooleanbooleanIs the document in single record viewbooleanChecks if the current transcriber is the validatorvoidLoads the session on the documentvoidlostOwnership(Clipboard clipboard, Transferable contents) voidMoves the specified tiers (and the caret if needed)voidMoves the caret to the start of the next tier or transcript elementvoidoffsetInNextTierOrElement(int offsetInContent) Moves the caret to the position in the next line with the offset from the labels (or the end of the line if it's not long enough)voidoffsetInNextTierOrElement(int caretPos, int offsetInContent) Moves the caret to the position in the next line with the offset from the labels (or the end of the line if it's not long enough)voidoffsetInPrevTierOrElement(int offsetInContent) Moves the caret to the position in the previous line with the same offset from the labelsvoidoffsetInPrevTierOrElement(int caretPos, int offsetInContent) Moves the caret to the position in the previous line with the same offset from the labelsvoidRuns when the user presses endvoidRuns when the user presses entervoidRuns when the user presses homeprotected voidvoidMoves the caret to the start of the previous tier or transcript element<T> TputExtension(Class<T> cap, T impl) Add a new extension.voidRecalculates the width of the tier labels and updates all paragraph attributesvoidrecalculateTierLabelWidth(Collection<String> additionalTierNames) Recalculates the width of the tier labels and updates all paragraph attributesvoidremoveAdditionalTierName(String tierName) Remove a tier name from the set of tier names used to calculate the width of the tier labels.voidRemoves the current box selectvoidRemoves editor actions for specific events<T> TremoveExtension(Class<T> cap) Remove a capability.voidremoveNotTraversableAttribute(String attributeKey) Removes an attribute from the "not traversable" setvoidvoidMoves the caret to the position in the next line with the same offset from the labelsvoidMoves the caret to the position in the previous line with the same offset from the labels (or the end of the line if it's not long enough)voidSaves the changes made to the line the caret is currently onintsessionLocationToCharPos(TranscriptElementLocation transcriptLocation) Converts a session location into a character position in the documentvoidsetAutoInsertRecordElements(boolean autoInsertRecordElements) voidsetCaretMoveFromUpDown(boolean caretMoveFromUpDown) voidsetCurrentCallout(CalloutWindow callout) Set the current callout windowvoidsetCurrentElementIndex(int index) Moves the caret to the beginning of the transcript element at the index specifiedvoidsetCurrentRecordIndex(int index) Moves the caret to the beginning of the record at the index specifiedvoidsetCurrentSessionLocation(TranscriptElementLocation currentTranscriptLocation) Sets the current location in the document, this method does not set the caret position only the internal locationvoidsetMediaModel(SessionMediaModel mediaModel) voidsetSingleRecordView(boolean singleRecordView) Sets whether the document is in single record viewvoidsetUpDownOffset(int upDownOffset) voidshowCallout(boolean modal, JComponent content, int sideOfWindow, Rectangle pointAtRect) Show a callout window with the provided contents.showNonFocusableCallout(boolean modal, JComponent content, int sideOfWindow, Rectangle pointAtRect) Show a callout window with the provided contents.voidShows the specified tiers (and moves the caret if needed)voidUpdates the fonts of the specified tiersbooleantierHasUncommittedChanges(int charPos) Report if tier at caret position has uncommitted changesvoidToggle single record viewMethods inherited from class javax.swing.JEditorPane
addHyperlinkListener, createDefaultEditorKit, createEditorKitForContentType, fireHyperlinkUpdate, getAccessibleContext, getContentType, getEditorKit, getEditorKitClassNameForContentType, getEditorKitForContentType, getHyperlinkListeners, getPage, getPreferredSize, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getStream, getText, getUIClassID, paramString, read, registerEditorKitForContentType, registerEditorKitForContentType, removeHyperlinkListener, replaceSelection, scrollToReference, setContentType, setEditorKit, setEditorKitForContentType, setPage, setPage, setTextMethods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, fireCaretUpdate, getActions, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getPrintable, getScrollableBlockIncrement, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, modelToView2D, moveCaretPosition, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, restoreComposedText, saveComposedText, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDocument, setDragEnabled, setDropMode, setEditable, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, updateUI, viewToModel, viewToModel2D, writeMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
transcriptDocumentPopulated
-
recordChangedInSingleRecordMode
The editor event type for the event that gets fired if the current record changes when the editor is in "single record view" mode -
transcriptLocationChanged
public static final EditorEventType<TranscriptEditor.TranscriptLocationChangeData> transcriptLocationChangedThe editor event type for the session location change event
-
-
Constructor Details
-
TranscriptEditor
public TranscriptEditor(Session session, EditorEventManager eventManager, SessionEditUndoSupport undoSupport, UndoManager undoManager) Constructor -
TranscriptEditor
public TranscriptEditor(EditorDataModel dataModel, EditorSelectionModel selectionModel, EditorEventManager eventManager, SessionEditUndoSupport undoSupport, UndoManager undoManager) Constructor -
TranscriptEditor
Constructor
-
-
Method Details
-
removeEditorActions
public void removeEditorActions()Removes editor actions for specific events -
isAutoInsertRecordElements
public boolean isAutoInsertRecordElements() -
setAutoInsertRecordElements
public void setAutoInsertRecordElements(boolean autoInsertRecordElements) -
addTierChangeListener
-
removeTierChangeListener
-
getUndoSupport
-
getEventManager
-
getFirstVisibleTierName
-
getTranscriptEditorCaret
-
getDataModel
-
getMediaModel
-
setMediaModel
-
getSegmentPlayback
-
getUndoManager
-
getCurrentRecordIndex
public int getCurrentRecordIndex()Gets the record index of the carets current position- Returns:
- the record index (returns -1 if caret not in a record)
-
getTranscriptDocument
-
getSession
-
getCurrentElementIndex
public int getCurrentElementIndex()Gets the transcript element index for the current caret pos- Returns:
- the transcript element index
-
setCurrentElementIndex
public void setCurrentElementIndex(int index) Moves the caret to the beginning of the transcript element at the index specified- Parameters:
index- the transcript element index
-
setCurrentRecordIndex
public void setCurrentRecordIndex(int index) Moves the caret to the beginning of the record at the index specified -
toggleSingleRecordView
public void toggleSingleRecordView()Toggle single record view -
isSingleRecordView
public boolean isSingleRecordView()Is the document in single record view- Returns:
- true if single record view, false otherwise
-
setSingleRecordView
public void setSingleRecordView(boolean singleRecordView) Sets whether the document is in single record view- Parameters:
singleRecordView-
-
isTranscriberValidator
public boolean isTranscriberValidator()Checks if the current transcriber is the validator- Returns:
- whether the transcriber is the validator
-
getCurrentSessionLocation
Returns the current location in the document as a TranscriptElementLocation- Returns:
- the current location in the document
-
setCurrentSessionLocation
Sets the current location in the document, this method does not set the caret position only the internal location- Parameters:
currentTranscriptLocation- the new location in the document
-
getUpDownOffset
public int getUpDownOffset() -
setUpDownOffset
public void setUpDownOffset(int upDownOffset) -
isCaretMoveFromUpDown
public boolean isCaretMoveFromUpDown() -
setCaretMoveFromUpDown
public void setCaretMoveFromUpDown(boolean caretMoveFromUpDown) -
nextTierOrElement
public void nextTierOrElement()Moves the caret to the start of the next tier or transcript element -
prevTierOrElement
public void prevTierOrElement()Moves the caret to the start of the previous tier or transcript element -
getNextValidIndex
public int getNextValidIndex(int currentPos, boolean looping) Gets the next valid index for the caret from the given position- Parameters:
currentPos- the starting position of the caretlooping- whether the caret should loop back to the start of the doc at the end- Returns:
- the next valid caret position
-
getPrevValidIndex
public int getPrevValidIndex(int currentPos, boolean looping) Gets the previous valid index for the caret from the given position- Parameters:
currentPos- the starting position of the caretlooping- whether the caret should loop back to the end of the doc at the start- Returns:
- the previous valid caret position
-
sameOffsetInPrevTierOrElement
public void sameOffsetInPrevTierOrElement()Moves the caret to the position in the previous line with the same offset from the labels (or the end of the line if it's not long enough) -
offsetInPrevTierOrElement
public void offsetInPrevTierOrElement(int offsetInContent) Moves the caret to the position in the previous line with the same offset from the labels- Parameters:
offsetInContent-
-
offsetInPrevTierOrElement
public void offsetInPrevTierOrElement(int caretPos, int offsetInContent) Moves the caret to the position in the previous line with the same offset from the labels- Parameters:
offsetInContent-
-
sameOffsetInNextTierOrElement
public void sameOffsetInNextTierOrElement()Moves the caret to the position in the next line with the same offset from the labels -
offsetInNextTierOrElement
public void offsetInNextTierOrElement(int offsetInContent) Moves the caret to the position in the next line with the offset from the labels (or the end of the line if it's not long enough)- Parameters:
offsetInContent- the offset in the content
-
offsetInNextTierOrElement
public void offsetInNextTierOrElement(int caretPos, int offsetInContent) Moves the caret to the position in the next line with the offset from the labels (or the end of the line if it's not long enough)- Parameters:
caretPos- the current caret positionoffsetInContent- the offset in the content
-
getStartOfPrevTierOrElement
public int getStartOfPrevTierOrElement(int caretPos) Gets the start position of the previous line- Parameters:
caretPos- the starting caret pos
-
getStartOfNextTierOrElement
public int getStartOfNextTierOrElement(int caretPos) Gets the start position of the next line- Parameters:
caretPos- the starting caret pos
-
charPosToSessionLocation
Converts a character position in the document into aTranscriptElementLocationobject- Parameters:
charPos- the position in the document- Returns:
- the converted session location object
-
sessionLocationToCharPos
Converts a session location into a character position in the document- Parameters:
transcriptLocation- the session location object- Returns:
- the converted character position, or -1 if the location is invalid
-
addNotTraversableAttribute
Adds an attribute to the "not traversable" set- Parameters:
attributeKey- the attribute to be added
-
removeNotTraversableAttribute
Removes an attribute from the "not traversable" set- Parameters:
attributeKey- the attribute to be removed
-
saveCurrentLine
public void saveCurrentLine()Saves the changes made to the line the caret is currently on -
commitChanges
public void commitChanges(int charPos) Commit changed tier data at caret location -
tierHasUncommittedChanges
public boolean tierHasUncommittedChanges(int charPos) Report if tier at caret position has uncommitted changes- Parameters:
charPos- the character position in the document- Returns:
- true if there are uncommitted changes, false otherwise
-
onPressedEnter
Runs when the user presses enter -
onPressedHome
public void onPressedHome()Runs when the user presses home -
onPressedEnd
public void onPressedEnd()Runs when the user presses end -
changeSpeaker
Changes the speaker of a given record to a given participant- Parameters:
data- a record containing the record and the participant that will become the new speaker
-
genericDataChanged
-
showTier
Shows the specified tiers (and moves the caret if needed)- Parameters:
data- the data from the tier view changed event
-
tierFontOrNameChanged
Updates the fonts of the specified tiers- Parameters:
data- the data from the tier view changed event
-
changeTierData
-
commentDataChanged
-
gemDataChanged
-
moveTier
Moves the specified tiers (and the caret if needed)- Parameters:
data- the data from the tier view changed event
-
hideTier
Hides the specified tiers (and moves the caret if needed)- Parameters:
data- the data from the tier view changed event
-
boxSelectBounds
Sets the box selection to the specified bounds- Parameters:
bounds- a touple containing the upper and lower bounds positions
-
removeCurrentBoxSelect
public void removeCurrentBoxSelect()Removes the current box select -
getCurrentCallout
Get the current callout window (if any)- Returns:
- the current callout window, null if none
-
setCurrentCallout
Set the current callout window- Parameters:
callout-
-
showCallout
Show a callout window with the provided contents. If a callout is already shown, it will be disposed.- Parameters:
modal-content-sideOfWindow-pointAtRect-
-
showNonFocusableCallout
public CalloutWindow showNonFocusableCallout(boolean modal, JComponent content, int sideOfWindow, Rectangle pointAtRect) Show a callout window with the provided contents. If a callout is already shown, it will be disposed.- Parameters:
modal-content-sideOfWindow-pointAtRect-- Returns:
- the callout window
-
hideCallout
public void hideCallout()Hide current callout window -
cut
public void cut()- Overrides:
cutin classJTextComponent
-
paintComponent
- Overrides:
paintComponentin classJComponent
-
recalculateTierLabelWidth
Recalculates the width of the tier labels and updates all paragraph attributes- Parameters:
additionalTierNames- additional tier names to consider when recalculating the tier label width
-
recalculateTierLabelWidth
public void recalculateTierLabelWidth()Recalculates the width of the tier labels and updates all paragraph attributes -
addAdditionalTierName
Add a tier name to the set of tier names used to calculate the width of the tier labels.- Parameters:
tierName- the tier name to add
-
removeAdditionalTierName
Remove a tier name from the set of tier names used to calculate the width of the tier labels.- Parameters:
tierName- the tier name to remove
-
loadSession
public void loadSession()Loads the session on the document -
getExtensions
Description copied from interface:IExtendableReturn all extension types supported- Specified by:
getExtensionsin interfaceIExtendable
-
getExtension
Description copied from interface:IExtendableGet the requested extension if available.- Specified by:
getExtensionin interfaceIExtendable- Returns:
- the capability object or
nullif the cability is not available
-
putExtension
Description copied from interface:IExtendableAdd a new extension.- Specified by:
putExtensionin interfaceIExtendable- Parameters:
cap- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendableRemove a capability.- Specified by:
removeExtensionin interfaceIExtendable- Parameters:
cap- the capability to remove
-
lostOwnership
- Specified by:
lostOwnershipin interfaceClipboardOwner
-
getTransferHandler
- Overrides:
getTransferHandlerin classJComponent
-