|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.javatools.editor.EditorSelectionColumns
public final class EditorSelectionColumns
A EditorSelection that selects by column blocks. i.e. The selection rectangle has the same gap on the left and right on every selected line. Selection begins on the line and column of the selection start, and spans every line to selection end, but only those characters in the columns between selection start and selection end (inclusive).
| Constructor Summary | |
|---|---|
EditorSelectionColumns() |
|
| Method Summary | |
|---|---|
boolean |
canSupportEditor(BasicEditorPane editorPane)Column selection can only support editors containing fixed width fonts |
void |
clearSelectionHighlights(HighlightLayer selectionLayer)Clear the selection by removing any selection highlighting and permorming any other internal clear operations. |
void |
copy() |
void |
cut() |
void |
deinstall()Disassociate the editor selection from an editor |
void |
delete() |
void |
deleteSelection()Remove the currently selected text (if any) from the document |
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. |
static boolean |
isEditorFixedWidthFont(BasicEditorPane editorPane) |
boolean |
isInSelection(int offset)Returns whether the given offset lies within the current selection bounds |
void |
paste()Paste in column select will delete the current selection, then beginning at the selection start row - will insert clip board contents, one line at a time, into the lines below the selection start row. |
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 EditorSelectionColumns()
| Method Detail |
|---|
public int getSelectionStart()
getSelectionStart in interface EditorSelectionpublic int getSelectionEnd()
getSelectionEnd in interface EditorSelectionpublic java.lang.String getSelectedText()
getSelectedText in interface EditorSelectionpublic void copy()
public void cut()
public void delete()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationExceptionpublic void paste()
public void updateSelectionHighlight(HighlightLayer layer,
HighlightStyle caretStyle)
EditorSelectionupdateSelectionHighlight in interface EditorSelectionlayer - The selection highlight layerpublic void install(BasicEditorPane editor)
EditorSelectioninstall in interface EditorSelectionpublic void deinstall()
EditorSelectiondeinstall in interface EditorSelectionpublic boolean invokeAction(java.lang.String actionKey)
ActionHookInvokerinvokeAction in interface ActionHookInvokeractionKey - the published key for the actionpublic void setStartSelectionPoint(java.awt.Point p)
EditorSelectionsetStartSelectionPoint in interface EditorSelectionp - the Point where the selection beginpublic void setEndSelectionPoint(java.awt.Point p)
EditorSelectionsetEndSelectionPoint in interface EditorSelectionp - the Point where the selection bounds endspublic void clearSelectionHighlights(HighlightLayer selectionLayer)
EditorSelectionclearSelectionHighlights in interface EditorSelection
public void deleteSelection()
throws javax.swing.text.BadLocationException
EditorSelectiondeleteSelection in interface EditorSelectionjavax.swing.text.BadLocationException
public void insertText(int offset,
java.lang.String text)
throws javax.swing.text.BadLocationException
EditorSelectioninsertText in interface EditorSelectionjavax.swing.text.BadLocationExceptionpublic boolean isInSelection(int offset)
EditorSelectionisInSelection in interface EditorSelectionpublic void selectAll()
EditorSelectionselectAll in interface EditorSelectionpublic boolean canSupportEditor(BasicEditorPane editorPane)
canSupportEditor in interface EditorSelectioneditorPane -public static boolean isEditorFixedWidthFont(BasicEditorPane editorPane)
editorPane -
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||