Class AbstractInputPanel<P,​W>

  • Type Parameters:
    P - The type of UI component housing the input panel itself.
    W - The type of UI component housing each input widget.
    All Implemented Interfaces:
    InputPanel<P,​W>, UIComponent<P>

    public abstract class AbstractInputPanel<P,​W>
    extends Object
    implements InputPanel<P,​W>
    Abstract superclass of UI-specific InputPanel implementations.
    Author:
    Curtis Rueden
    • Constructor Detail

      • AbstractInputPanel

        public AbstractInputPanel()
    • Method Detail

      • getValue

        public Object getValue​(String name)
        Description copied from interface: InputPanel
        Returns the value of the given widget's input.
        Specified by:
        getValue in interface InputPanel<P,​W>
        Parameters:
        name - unique name identifying this field
      • getWidgetCount

        public int getWidgetCount()
        Description copied from interface: InputPanel
        Gets the number of active widgets in the input panel.
        Specified by:
        getWidgetCount in interface InputPanel<P,​W>
      • hasWidgets

        public boolean hasWidgets()
        Description copied from interface: InputPanel
        Gets whether the input panel has any active widgets.
        Specified by:
        hasWidgets in interface InputPanel<P,​W>
      • isMessageOnly

        public boolean isMessageOnly()
        Description copied from interface: InputPanel
        Returns true if the input panel consists of only messages.
        Specified by:
        isMessageOnly in interface InputPanel<P,​W>
      • refresh

        public void refresh()
        Description copied from interface: InputPanel
        Updates the widgets to reflect the most recent parameter value(s).
        Specified by:
        refresh in interface InputPanel<P,​W>