Class BindingParameterPanel

    • Field Detail

      • m_NameField

        protected adams.gui.core.BaseTextField m_NameField
        a text field for the name
      • m_BindingField

        protected KeyPressTextField m_BindingField
        a text field for the key press
      • m_Toggleable

        protected adams.gui.core.BaseCheckBox m_Toggleable
        a checkbox to indicate if the binding is toggleable or not
      • m_Inverted

        protected adams.gui.core.BaseCheckBox m_Inverted
        a checkbox to indicate if the binding is inverted
      • m_Interval

        protected JFormattedTextField m_Interval
        an input field for the interval for this binding
      • m_MaskFormat

        protected MaskFormatter m_MaskFormat
        a mask formatter to make sure the input is valid
    • Constructor Detail

      • BindingParameterPanel

        public BindingParameterPanel()
    • Method Detail

      • initGUI

        protected void initGUI()
        Overrides:
        initGUI in class adams.gui.core.ParameterPanel
      • clearFields

        public void clearFields()
        Clears all fields so we can enter fresh data.
      • getBinding

        public Binding getBinding()
        Returns the binding based on the currently entered info
        Returns:
        the binding generated or null if not valid inputs
      • loadBinding

        public void loadBinding​(Binding binding)
        Loads a binding into the panel for editing
        Parameters:
        binding - the binding to be edited