Class XSLTPanel.SubPanel

    • Field Detail

      • m_PanelText

        protected TextPanel m_PanelText
        the panel for the text.
      • m_PanelButtons

        protected JPanel m_PanelButtons
        the panel with the buttons.
      • m_ButtonClear

        protected BaseButton m_ButtonClear
        the button for clearing the text.
      • m_ButtonOpen

        protected BaseButton m_ButtonOpen
        the button for loading a file.
      • m_ButtonSave

        protected BaseButton m_ButtonSave
        the button for saving to a file.
      • m_ButtonCopy

        protected BaseButton m_ButtonCopy
        the button for copy.
      • m_ButtonPaste

        protected BaseButton m_ButtonPaste
        the button for paste.
    • Constructor Detail

      • SubPanel

        public SubPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        initGUI in class BasePanel
      • clear

        public void clear()
        Clears the text.
      • open

        public void open()
        Lets the user select a file to load.
      • save

        public void save()
        Lets the user save the content to a file.
      • copy

        public void copy()
        Copies the text to the clipboard.
      • paste

        public void paste()
        Replaces the text with the one from the clipboard.
      • addExtensionFilter

        public void addExtensionFilter​(ExtensionFileFilter filter)
        Adds the extension filter to the file chooser.
        filter - the filter to add
      • setInfoText

        public void setInfoText​(String info)
        Sets the info text to display.
        info - the text to display, null or empty string to disable
      • setContent

        public void setContent​(String value)
        Sets the content to display. Resets the modified state.
        value - the text
      • getContent

        public String getContent()
        Returns the content to display.
        the text