Class AbstractControl

    • Constructor Detail

    • Method Detail

      • fireChanged

        protected void fireChanged()
      • fireSuccessful

        protected void fireSuccessful()
      • fireEnabled

        protected void fireEnabled()
      • setInitialValue

        protected void setInitialValue​(String value)
      • getValue

        public String getValue()
        Specified by:
        getValue in interface FormControl
        Returns:
        the control's current value or null if isMultiple returns true
      • setValue

        public void setValue​(String value)
        Description copied from interface: FormControl
        Sets the control's current value. This has no effect when isMultiple returns true.
        Specified by:
        setValue in interface FormControl
      • getMultipleValues

        public String[] getMultipleValues()
        Specified by:
        getMultipleValues in interface FormControl
        Returns:
        the control's current values or null if isMultiple returns false
      • setMultipleValues

        public void setMultipleValues​(String[] values)
        Description copied from interface: FormControl
        Sets the control's current values (when isMultiple returns true). This has no effect when isMultiple returns false.
        Specified by:
        setMultipleValues in interface FormControl
      • isHidden

        public boolean isHidden()
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: FormControl
        Is this control enabled?
        Specified by:
        isEnabled in interface FormControl
        Returns:
        true if this control is enabled
      • isSuccessful

        public boolean isSuccessful()
        Description copied from interface: FormControl
        Is this control successful?
        Specified by:
        isSuccessful in interface FormControl
        Returns:
        true if this control is successful and its name-value pair should be submitted, false otherwise.
      • isMultiple

        public boolean isMultiple()
        Specified by:
        isMultiple in interface FormControl
        Returns:
        true if this control accepts multiple values, false otherwise
      • setSuccessful

        public void setSuccessful​(boolean successful)
        Description copied from interface: FormControl
        Sets this control's successful state.
        Specified by:
        setSuccessful in interface FormControl
      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from interface: FormControl
        Enable/disable this control
        Specified by:
        setEnabled in interface FormControl
      • reset

        public void reset()
        Description copied from interface: FormControl
        Reset the control to it's initial state
        Specified by:
        reset in interface FormControl
      • getIntAttribute

        public static int getIntAttribute​(Element e,
                                          String attribute,
                                          int def)