Class EditorArea

All Implemented Interfaces:
ComponentListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public final class EditorArea extends TextPanel
This class extends the text panel by editor features.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
See Also:
  • Method Details

    • opened

      public boolean opened()
      Returns true if the editor contents are saved on disk.
      Returns:
      result of check
    • modified

      public boolean modified()
      Returns true if the editor contents were modified.
      Returns:
      result of check
    • file

      public IOFile file()
      Returns the file reference.
      Returns:
      file reference
    • setText

      public void setText(byte[] text)
      Description copied from class: TextPanel
      Sets the output text.
      Overrides:
      setText in class TextPanel
      Parameters:
      text - output text
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class TextPanel
    • keyPressed

      public void keyPressed(KeyEvent e)
      Specified by:
      keyPressed in interface KeyListener
      Overrides:
      keyPressed in class TextPanel
    • keyTyped

      public void keyTyped(KeyEvent e)
      Specified by:
      keyTyped in interface KeyListener
      Overrides:
      keyTyped in class TextPanel
    • keyReleased

      public void keyReleased(KeyEvent e)
      Specified by:
      keyReleased in interface KeyListener
      Overrides:
      keyReleased in class BaseXPanel
    • release

      protected void release(TextPanel.Action action)
      Description copied from class: TextPanel
      Releases a key or mouse. Can be overwritten to react on events.
      Overrides:
      release in class TextPanel
      Parameters:
      action - action
    • reopen

      public void reopen(boolean enforce)
      Reverts the contents of the currently opened editor.
      Parameters:
      enforce - enforce reload
    • jump

      public void jump(String string)
      Jumps to the specified string.
      Parameters:
      string - search string