Class GUIHelper.InputPanelWithComboBox

    • Field Detail

      • m_LabelMessage

        protected JLabel m_LabelMessage
        the label for the message.
    • Constructor Detail

      • InputPanelWithComboBox

        public InputPanelWithComboBox​(String msg,
                                      String initial,
                                      String[] options)
        Initializes the panel.
        Parameters:
        msg - the message to display
        initial - the initial value to use for the input value
        options - the options to display
      • InputPanelWithComboBox

        public InputPanelWithComboBox​(String msg,
                                      String initial,
                                      String[] options,
                                      String icon)
        Initializes the panel.
        Parameters:
        msg - the message to display
        initial - the initial value to use for the input value
        options - the options to display
        icon - the icon to use, null for none
    • Method Detail

      • initGUI

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

        public BaseComboBox<String> getComboBox()
        Gives access to the underlying combobox.
        Returns:
        the combobox in use
      • setOptions

        public void setOptions​(String[] options)
        Sets the options to display.
        Parameters:
        options - the options