|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextEditor
This interface is used to provide extensions with an instance of Burp's raw
text editor, for the extension to use in its own UI. Extensions should call
IBurpExtenderCallbacks.createTextEditor()
to obtain an instance
of this interface.
Method Summary | |
---|---|
java.awt.Component |
getComponent()
This method returns the UI component of the editor, for extensions to add to their own UI. |
byte[] |
getSelectedText()
This method is used to obtain the currently selected text. |
int[] |
getSelectionBounds()
This method can be used to retrieve the bounds of the user's selection into the displayed text, if applicable. |
byte[] |
getText()
This method is used to retrieve the currently displayed text. |
boolean |
isTextModified()
This method is used to determine whether the user has modified the contents of the editor. |
void |
setEditable(boolean editable)
This method is used to control whether the editor is currently editable. |
void |
setSearchExpression(java.lang.String expression)
This method is used to update the search expression that is shown in the search bar below the editor. |
void |
setText(byte[] text)
This method is used to update the currently displayed text in the editor. |
Method Detail |
---|
java.awt.Component getComponent()
void setEditable(boolean editable)
editable
- Indicates whether the editor should be currently
editable.void setText(byte[] text)
text
- The text to be displayed.byte[] getText()
boolean isTextModified()
setText()
.byte[] getSelectedText()
null
if the user has not made any selection.int[] getSelectionBounds()
void setSearchExpression(java.lang.String expression)
expression
- The search expression.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |