Class ParamField

    • Field Detail

      • parameter

        protected final Parameter<?> parameter
    • Method Detail

      • doLayout

        public abstract JComponent doLayout()
        Called to build the widget, initialize it (setting defaults or whatever) and setup any listeners needed for validation of the widget value. The returned JComponent will contain the widget for editing.
        Returns:
        JComponent or null if error
      • validate

        public abstract boolean validate()
        Validates the current value of the widget, returns false if not valid, true otherwise
        Returns:
        boolean if validated
      • setValue

        public abstract void setValue​(Object value)
        Sets the value of the widget.
        Parameters:
        value - an object containing the value to set for the widget
      • getValue

        public abstract Object getValue()
        Returns the current value of the widget.
        Returns:
        Object representing the current value of the widget
      • create

        public static ParamField create​(Parameter<?> parameter)
        Factory method creating the appropriate ParamField for the supplied Param.