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 class
TheHighlighter.HighlightPainter
that paints the error underlinesstatic final record
static final record
A record that contains the data for session location change eventsNested classes/interfaces inherited from class javax.swing.JEditorPane
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested 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_UNITS
Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields 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 TypeMethodDescriptionvoid
addAdditionalTierName
(String tierName) Add a tier name to the set of tier names used to calculate the width of the tier labels.void
addNotTraversableAttribute
(String attributeKey) Adds an attribute to the "not traversable" setvoid
void
Sets the box selection to the specified boundsvoid
Changes the speaker of a given record to a given participantvoid
changeTierData
(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 aTranscriptElementLocation
objectvoid
commentDataChanged
(Comment comment, String newData) Changes the data in a given comment if the provided data is differentvoid
commitChanges
(int charPos) Commit changed tier data at caret locationvoid
cut()
void
gemDataChanged
(Gem gem, String newData) Changes the data in a given gem if the provided data is differentvoid
genericDataChanged
(Tier<?> genericTier, String newData) Changes the data in a given generic tier if the provided data is differentGet the current callout window (if any)int
Gets the transcript element index for the current caret posint
Gets the record index of the carets current positionReturns the current location in the document as a TranscriptElementLocation<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedint
getNextValidIndex
(int currentPos, boolean looping) Gets the next valid index for the caret from the given positionint
getPrevValidIndex
(int currentPos, boolean looping) Gets the previous valid index for the caret from the given positionint
getStartOfNextTierOrElement
(int caretPos) Gets the start position of the next lineint
getStartOfPrevTierOrElement
(int caretPos) Gets the start position of the previous lineint
void
Hide current callout windowvoid
Hides the specified tiers (and moves the caret if needed)boolean
boolean
Is the document in single record viewboolean
Checks if the current transcriber is the validatorvoid
Loads the session on the documentvoid
lostOwnership
(Clipboard clipboard, Transferable contents) void
Moves the specified tiers (and the caret if needed)void
Moves the caret to the start of the next tier or transcript elementvoid
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)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)void
offsetInPrevTierOrElement
(int offsetInContent) Moves the caret to the position in the previous line with the same offset from the labelsvoid
offsetInPrevTierOrElement
(int caretPos, int offsetInContent) Moves the caret to the position in the previous line with the same offset from the labelsvoid
Runs when the user presses endvoid
Runs when the user presses entervoid
Runs when the user presses homeprotected void
void
Moves the caret to the start of the previous tier or transcript element<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.void
Recalculates the width of the tier labels and updates all paragraph attributesvoid
recalculateTierLabelWidth
(Collection<String> additionalTierNames) Recalculates the width of the tier labels and updates all paragraph attributesvoid
removeAdditionalTierName
(String tierName) Remove a tier name from the set of tier names used to calculate the width of the tier labels.void
Removes the current box selectvoid
Removes editor actions for specific events<T> T
removeExtension
(Class<T> cap) Remove a capability.void
removeNotTraversableAttribute
(String attributeKey) Removes an attribute from the "not traversable" setvoid
void
Moves the caret to the position in the next line with the same offset from the labelsvoid
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)void
Saves the changes made to the line the caret is currently onint
sessionLocationToCharPos
(TranscriptElementLocation transcriptLocation) Converts a session location into a character position in the documentvoid
setCaretMoveFromUpDown
(boolean caretMoveFromUpDown) void
setCurrentCallout
(CalloutWindow callout) Set the current callout windowvoid
setCurrentElementIndex
(int index) Moves the caret to the beginning of the transcript element at the index specifiedvoid
setCurrentRecordIndex
(int index) Moves the caret to the beginning of the record at the index specifiedvoid
setCurrentSessionLocation
(TranscriptElementLocation currentTranscriptLocation) Sets the current location in the document, this method does not set the caret position only the internal locationvoid
setMediaModel
(SessionMediaModel mediaModel) void
setSingleRecordView
(boolean singleRecordView) Sets whether the document is in single record viewvoid
setUpDownOffset
(int upDownOffset) void
showCallout
(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.void
Shows the specified tiers (and moves the caret if needed)void
Updates the fonts of the specified tiersboolean
tierHasUncommittedChanges
(int charPos) Report if tier at caret position has uncommitted changesvoid
Toggle 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, setText
Methods 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, write
Methods 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, update
Methods 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, validateTree
Methods 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 -
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 aTranscriptElementLocation
object- 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:
cut
in classJTextComponent
-
paintComponent
- Overrides:
paintComponent
in 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: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
-
lostOwnership
- Specified by:
lostOwnership
in interfaceClipboardOwner
-
getTransferHandler
- Overrides:
getTransferHandler
in classJComponent
-