Package adams.gui.goe

Class MultiLineValueDialog

    • Field Detail

      • m_PanelAll

        protected JPanel m_PanelAll
        encloses all panels.
      • m_PanelInfo

        protected JPanel m_PanelInfo
        the panel for the info text.
      • m_PanelBottom

        protected JPanel m_PanelBottom
        the panel at the bottom for additional options.
      • m_LabelInfo

        protected JLabel m_LabelInfo
        the label with the info text.
      • m_PrefixCount

        protected String m_PrefixCount
        the count prefix.
      • m_LabelCount

        protected JLabel m_LabelCount
        the label with count of items.
      • m_Editor

        protected TextEditorPanel m_Editor
        the editor for entering the text.
    • Constructor Detail

      • MultiLineValueDialog

        public MultiLineValueDialog()
        Default constructor.
      • MultiLineValueDialog

        public MultiLineValueDialog​(Frame owner)
        Frame constructor.
        Parameters:
        owner - the owning frame
      • MultiLineValueDialog

        public MultiLineValueDialog​(Dialog owner)
        Dialog constructor.
        Parameters:
        owner - the owning dialog
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class ApprovalDialog
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BaseDialog
      • updateCount

        protected void updateCount()
        Updates the count display.
      • setInfoText

        public void setInfoText​(String value)
        Sets the info text.
        Parameters:
        value - the info text
      • getInfoText

        public String getInfoText()
        Returns the current info text.
        Returns:
        the info text
      • getBottomPanel

        public JPanel getBottomPanel()
        Returns the panel at the bottom (using BorderLayout), which displays the count of values in SOUTH. Can be used for further options.
        Returns:
        the panel
      • setPrefixCount

        public void setPrefixCount​(String value)
        Sets the prefix to use for the count display.
        Parameters:
        value - the new prefix
      • getPrefixCount

        public String getPrefixCount()
        Returns the prefix in use for the count display.
        Returns:
        the current prefix
      • setContent

        public void setContent​(String value)
        Sets the string content to display.
        Parameters:
        value - the text to display
      • getContent

        public String getContent()
        Returns the string content that was entered.
        Returns:
        the entered text
      • getValues

        public List<String> getValues()
        Returns the entered values (removes empty lines).
        Returns:
        the values, empty list if dialog canceled