Class NotesTextArea

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, IProjectEventListener, INotes, IPaneMenu

public class NotesTextArea extends EntryInfoPane<String> implements INotes, IPaneMenu
This is a pane that displays notes on translation units.
See Also:
  • Constructor Details

    • NotesTextArea

      public NotesTextArea(IMainWindow mw)
      Creates new Notes Text Area Pane
  • Method Details

    • clear

      public void clear()
      Clears up the pane.
      Specified by:
      clear in interface INotes
      Overrides:
      clear in class EntryInfoPane<String>
    • setNoteText

      public void setNoteText(String text)
      set note text.
      Specified by:
      setNoteText in interface INotes
      Parameters:
      text - note's text, or null if note doesn't exist
    • getNoteText

      public String getNoteText()
      get notes text.
      Specified by:
      getNoteText in interface INotes
      Returns:
      notes content.
    • clearHistory

      public void clearHistory()
      clear undo history (used when set active segment entry).
    • undo

      public void undo()
      Description copied from interface: INotes
      Undo last edits
      Specified by:
      undo in interface INotes
    • redo

      public void redo()
      Description copied from interface: INotes
      Redo last undone edits
      Specified by:
      redo in interface INotes
    • populatePaneMenu

      public void populatePaneMenu(JPopupMenu menu)
      Specified by:
      populatePaneMenu in interface IPaneMenu
    • requestFocus

      public void requestFocus()
      Description copied from interface: INotes
      Set current focus to the notes panel.
      Specified by:
      requestFocus in interface INotes
      Overrides:
      requestFocus in class JComponent