Interface InputTag

  • All Superinterfaces:
    EnumHTMLTags, Tag

    public interface InputTag
    extends Tag
    The InputTag represents a HTML input tag.
    Since:
    MicroStrategy Web 8.0.0
    • Field Detail

      • ENCODED_DEFAULT_TAG_NAME_PREFIX

        static final java.lang.String ENCODED_DEFAULT_TAG_NAME_PREFIX
        The constant prefix for the encoded value of the name attribute.
        See Also:
        Constant Field Values
      • ENCODED_IMAGE_NAME_PREFIX

        static final java.lang.String ENCODED_IMAGE_NAME_PREFIX
        The constant prefix for the encoded value of the name attribute. The encoded value in turn is a name-value pair for an image.
        See Also:
        Constant Field Values
    • Method Detail

      • getType

        java.lang.String getType()
        Returns the value of the attribute type for the input tag.
        Returns:
        the value of the attribute type.
      • getValue

        java.lang.String getValue()
        Returns the value of the attribute value for the input tag.
        Returns:
        the value of the attribute value.
      • setType

        void setType​(java.lang.String type)
              throws UnmodifiableException
        Sets a value to the attribute type for the input tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_TYPE, type).
        Parameters:
        type - a value of the attribute type.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • setValue

        void setValue​(java.lang.String value)
               throws UnmodifiableException
        Sets a value to the attribute value for the input tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_VALUE, value).
        Parameters:
        value - a value of the attribute value.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • setTitle

        void setTitle​(java.lang.String title)
               throws UnmodifiableException
        Sets a value to the attribute title for the input tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_TITLE, title).
        Parameters:
        title - a value of the attribute title.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • setChecked

        void setChecked​(boolean checked)
                 throws UnmodifiableException
        Sets a value to the attribute checked for the input tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_CHECKED, checked).
        Parameters:
        checked - a value of the attribute checked.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • setDefault

        void setDefault​(boolean isDefault)
                 throws UnmodifiableException
        Sets a boolean value indicating whether the current tag is default. A default input tag will generate a hidden input tag before generating the content for the current input tag.
        Parameters:
        isDefault - true to indicate that the current tag is default.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • isDefault

        boolean isDefault()
        Returns a boolean value indicating whether the current tag is default. A default input tag will generate a hidden input tag before generating the content for the current input tag.
        Returns:
        true to indicate that the current tag is default.