org.springframework.web.servlet.tags.form

Class AbstractMultiCheckedElementTag

    • Constructor Detail

      • AbstractMultiCheckedElementTag

        public AbstractMultiCheckedElementTag()
    • Method Detail

      • setItems

        public void setItems(java.lang.Object items)
        Set the Collection, Map or array of objects used to generate the 'input type="checkbox/radio"' tags.

        Typically a runtime expression.

        Parameters:
        items - said items
      • getItems

        @Nullable
        protected java.lang.Object getItems()
        Get the Collection, Map or array of objects used to generate the 'input type="checkbox/radio"' tags.
      • setItemValue

        public void setItemValue(java.lang.String itemValue)
        Set the name of the property mapped to the 'value' attribute of the 'input type="checkbox/radio"' tag.

        May be a runtime expression.

      • getItemValue

        @Nullable
        protected java.lang.String getItemValue()
        Get the name of the property mapped to the 'value' attribute of the 'input type="checkbox/radio"' tag.
      • setItemLabel

        public void setItemLabel(java.lang.String itemLabel)
        Set the value to be displayed as part of the 'input type="checkbox/radio"' tag.

        May be a runtime expression.

      • getItemLabel

        @Nullable
        protected java.lang.String getItemLabel()
        Get the value to be displayed as part of the 'input type="checkbox/radio"' tag.
      • setDelimiter

        public void setDelimiter(java.lang.String delimiter)
        Set the delimiter to be used between each 'input type="checkbox/radio"' tag.

        By default, there is no delimiter.

      • getDelimiter

        @Nullable
        public java.lang.String getDelimiter()
        Return the delimiter to be used between each 'input type="radio"' tag.
      • setElement

        public void setElement(java.lang.String element)
        Set the HTML element used to enclose the 'input type="checkbox/radio"' tag.

        Defaults to an HTML '<span/>' tag.

      • getElement

        public java.lang.String getElement()
        Get the HTML element used to enclose 'input type="checkbox/radio"' tag.