|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.editor.EditorSelectionWrap
public final class EditorSelectionWrap
An EditorSelection supporting the standard type of selection familiar to most users. Selection beings at the selection start offset and then spans every character to selection end (inclusive) The class leaves the cut, copy, and paste implementation to the standard mechanism - in BasicEditorPane hierarchy, unless an addin or plugin overrides the behaviour.
| Constructor Summary | |
|---|---|
EditorSelectionWrap()
|
|
| Method Summary | |
|---|---|
boolean |
canSupportEditor(BasicEditorPane editorPane)
Wrap selection is the 'standard' selection that editor panes support, so this method always returns true. |
void |
clearSelectionHighlights(HighlightLayer selectionLayer)
Clear the selection by removing any selection highlighting and permorming any other internal clear operations. |
void |
deinstall()
Disassociate the editor selection from an editor |
void |
deleteSelection()
Remove the currently selected text (if any) from the document |
void |
duplicateSelection()
Copies the selected text amd places the copy immediately after he original selection. |
java.lang.String |
getSelectedText()
|
int |
getSelectionEnd()
|
int |
getSelectionStart()
|
void |
insertText(int offset,
java.lang.String text)
Insert the given text at the given offset (Different selections will handle things like newline characters differently). |
void |
install(BasicEditorPane editor)
Associate the editor selection with an editor |
boolean |
invokeAction(java.lang.String actionKey)
Invokes the Action corresponding to the given actionKey. |
boolean |
isInSelection(int offset)
Returns whether the given offset lies within the current selection bounds |
void |
selectAll()
Selects all characters in the document |
void |
setEndSelectionPoint(java.awt.Point p)
Let the selection know the point (in editor coordinates) where the selection end is designated. |
void |
setStartSelectionPoint(java.awt.Point p)
Let the selection know the point (in editor coordinates) where the selection start is designated. |
void |
updateSelectionHighlight(HighlightLayer layer,
HighlightStyle caretStyle)
Update the Editors selection highlight layer in response to a possible change in selection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorSelectionWrap()
| Method Detail |
|---|
public int getSelectionStart()
getSelectionStart in interface EditorSelectionpublic int getSelectionEnd()
getSelectionEnd in interface EditorSelectionpublic java.lang.String getSelectedText()
getSelectedText in interface EditorSelectionpublic void duplicateSelection()
public void updateSelectionHighlight(HighlightLayer layer,
HighlightStyle caretStyle)
EditorSelection
updateSelectionHighlight in interface EditorSelectionlayer - The selection highlight layerpublic void install(BasicEditorPane editor)
EditorSelection
install in interface EditorSelectionpublic void deinstall()
EditorSelection
deinstall in interface EditorSelectionpublic boolean invokeAction(java.lang.String actionKey)
ActionHookInvoker
invokeAction in interface ActionHookInvokeractionKey - the published key for the action
public void setStartSelectionPoint(java.awt.Point p)
EditorSelection
setStartSelectionPoint in interface EditorSelectionp - the Point where the selection beginpublic void setEndSelectionPoint(java.awt.Point p)
EditorSelection
setEndSelectionPoint in interface EditorSelectionp - the Point where the selection bounds endspublic void clearSelectionHighlights(HighlightLayer selectionLayer)
EditorSelection
clearSelectionHighlights in interface EditorSelection
public void deleteSelection()
throws javax.swing.text.BadLocationException
EditorSelection
deleteSelection in interface EditorSelectionjavax.swing.text.BadLocationException
public void insertText(int offset,
java.lang.String text)
throws javax.swing.text.BadLocationException
EditorSelection
insertText in interface EditorSelectionjavax.swing.text.BadLocationExceptionpublic boolean isInSelection(int offset)
EditorSelection
isInSelection in interface EditorSelectionpublic void selectAll()
EditorSelection
selectAll in interface EditorSelectionpublic boolean canSupportEditor(BasicEditorPane editorPane)
canSupportEditor in interface EditorSelectioneditorPane -
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||