Class SyntaxEditorUI

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.fife.rsta.ui.CollapsibleSectionPanel
fr.ifremer.isisfish.ui.widget.text.SyntaxEditorUI
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CaretListener, org.fife.rsta.ui.search.SearchListener
Direct Known Subclasses:
SyntaxEditor

public class SyntaxEditorUI extends org.fife.rsta.ui.CollapsibleSectionPanel implements org.fife.rsta.ui.search.SearchListener, CaretListener
RSyntaxTextArea component property configured for isis fish. An intermediate panel is used here to allow displaying user action panel to user.
See Also:
  • Field Details

    • textScrollpane

      protected org.fife.ui.rtextarea.RTextScrollPane textScrollpane
    • textArea

      protected org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea
    • noFileLabel

      protected JLabel noFileLabel
    • findDialog

      protected org.fife.rsta.ui.search.FindDialog findDialog
    • replaceDialog

      protected org.fife.rsta.ui.search.ReplaceDialog replaceDialog
    • findAction

      protected Action findAction
    • replaceAction

      protected Action replaceAction
    • gotoAction

      protected Action gotoAction
    • cutAction

      protected Action cutAction
    • pasteAction

      protected Action pasteAction
    • copyAction

      protected Action copyAction
  • Constructor Details

    • SyntaxEditorUI

      public SyntaxEditorUI()
  • Method Details

    • initActions

      protected void initActions()
    • setStyle

      public void setStyle(String style)
      Set highligth style.
      Parameters:
      style - new style
      See Also:
    • setText

      public void setText(String text)
    • setRows

      public void setRows(int rows)
    • setColumns

      public void setColumns(int columns)
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • getFindAction

      public Action getFindAction()
    • getReplaceAction

      public Action getReplaceAction()
    • getGotoAction

      public Action getGotoAction()
    • getPasteAction

      public Action getPasteAction()
    • getCopyAction

      public Action getCopyAction()
    • getCutAction

      public Action getCutAction()
    • getSelectedText

      public String getSelectedText()
      Specified by:
      getSelectedText in interface org.fife.rsta.ui.search.SearchListener
    • searchEvent

      public void searchEvent(org.fife.rsta.ui.search.SearchEvent e)
      Listens for events from our search dialogs and actually does the dirty work.
      Specified by:
      searchEvent in interface org.fife.rsta.ui.search.SearchListener
    • caretUpdate

      public void caretUpdate(CaretEvent e)
      Specified by:
      caretUpdate in interface CaretListener