Class AbstractHCCheckBox<IMPLTYPE extends AbstractHCCheckBox<IMPLTYPE>>

    • Field Detail

      • DEFAULT_VALUE

        public static final String DEFAULT_VALUE
        The default value of the "value" attribute in HTML
      • DEFAULT_EMIT_HIDDEN_FIELD

        public static final boolean DEFAULT_EMIT_HIDDEN_FIELD
        Emit a hidden field that indicates that the check-box was in the request.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractHCCheckBox

        public AbstractHCCheckBox()
        Constructor
      • AbstractHCCheckBox

        protected AbstractHCCheckBox​(@Nullable
                                     String sName,
                                     boolean bChecked,
                                     @Nullable
                                     String sValue)
        Constructor
        Parameters:
        sName - The name of this check-box (used as field name)
        bChecked - Whether or not it should be initially checked
        sValue - The value to be set for this check-box
    • Method Detail

      • isEmitHiddenField

        public final boolean isEmitHiddenField()
        Returns:
        Whether or not hidden fields will be emitted
      • setEmitHiddenField

        @Nonnull
        public final IMPLTYPE setEmitHiddenField​(boolean bEmitHiddenField)
        Sets whether or not hidden fields will be emitted according to the passed value
        Parameters:
        bEmitHiddenField - true to emit the hidden field, false to avoid.
        Returns:
        This object for chaining
      • getHiddenFieldName

        @Nullable
        public final String getHiddenFieldName()
        Get the hidden field name for this checkbox.
        Returns:
        null if no field name (AbstractHCControl.getName()) is present or a non-null and non-empty string.