Class GUIHelper.InputPanelWithTextArea

    • Field Detail

      • m_LabelMessage

        protected JLabel m_LabelMessage
        the label for the message.
      • m_TextArea

        protected BaseTextArea m_TextArea
        the text area.
    • Constructor Detail

      • InputPanelWithTextArea

        public InputPanelWithTextArea​(String msg,
                                      String initial,
                                      int minCols,
                                      int minRows)
        Initializes the panel.
        Parameters:
        msg - the message to display
        initial - the initial value to use for the input value
        minCols - the minimum number of columns in the text box
        minRows - the minimum number of rows in the text box
      • InputPanelWithTextArea

        public InputPanelWithTextArea​(String msg,
                                      String initial,
                                      int minCols,
                                      int minRows,
                                      String icon)
        Initializes the panel.
        Parameters:
        msg - the message to display
        initial - the initial value to use for the input value
        minCols - the minimum number of columns in the text box
        minRows - the minimum number of rows in the text box
        icon - the icon to use, null for none
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • getTextArea

        public BaseTextArea getTextArea()
        Gives access to the underlying textarea.
        Returns:
        the textarea in use
      • applyDimensions

        protected void applyDimensions​(String initial,
                                       int minCols,
                                       int minRows)
        Applies the required dimensions.
        Parameters:
        initial - the initial text
        minCols - the minimum number of columns to use
        minRows - the minimum number of rows to use