Class EditorTextArea3

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class EditorTextArea3 extends JEditorPane
Changes of standard JEditorPane implementation for support custom behavior.
See Also:
  • Field Details

    • FACTORY3

      public static final ViewFactory FACTORY3
      Factory for create own view.
  • Constructor Details

  • Method Details

    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent
    • getOmDocument

      @Nullable public @Nullable Document3 getOmDocument()
      Return OmDocument instead just a Document. If the editor was not initialized with OmDocument, it will contain another Document implementation. In this case, we don't need it.
    • isInActiveTranslation

      public boolean isInActiveTranslation(int position)
      Check the specified position is within the active translation.
      Parameters:
      position - caret position
      Returns:
      true, when caret is in active translation, otherwise return false
    • paste

      public void paste()
      Allow to paste into segment, even selection outside editable segment. In this case selection will be truncated into segment's boundaries.
      Overrides:
      paste in class JTextComponent
    • cut

      public void cut()
      Allow to cut segment, even selection outside editable segment. In this case selection will be truncated into segment's boundaries.
      Overrides:
      cut in class JTextComponent
    • getSelectedText

      @Nullable public @Nullable String getSelectedText()
      Remove invisible direction chars on the copy text into clipboard.
      Overrides:
      getSelectedText in class JTextComponent
    • getToolTipText

      @Nullable public @Nullable String getToolTipText(MouseEvent event)
      Overrides:
      getToolTipText in class JTextComponent
    • replaceSelection

      public void replaceSelection(String content)
      Overrides:
      replaceSelection in class JEditorPane