Interface Editor

All Known Subinterfaces:
HttpRequestEditor, HttpResponseEditor, RawEditor, WebSocketMessageEditor

public interface Editor
Provides the shared behaviour between the different editor types.
  • Method Details

    • setSearchExpression

      void setSearchExpression(String expression)
      Update the search expression that is shown in the search bar below the editor.
      expression - The search expression.
    • isModified

      boolean isModified()
      True if the user has modified the contents of the editor since the last time the content was set programmatically.
    • caretPosition

      int caretPosition()
      The index of the position for the carat within the current message editor.
    • selection

      Optional<Selection> selection()
      This will return Optional.empty() if the user has not made a selection.
      An Optional containing the users current selection in the editor.
    • uiComponent

      Component uiComponent()
      UI component of the editor, for extensions to add to their own UI.