Class Hidden

    • Constructor Detail

      • Hidden

        public Hidden()
        Constructor for Hidden.
      • Hidden

        public Hidden​(java.lang.String name)
        Constructor for Hidden.
        Parameters:
        name - name of the hidden field
      • Hidden

        public Hidden​(java.lang.String name,
                      java.lang.String value)
        Constructor for Hidden.
        Parameters:
        name - name of the hidden field
        value - value of the hidden field
      • Hidden

        protected Hidden​(Element element)
        This constructor may be used by subclasses to explicitly use an existing element. This element must be an <input> element whose type is 'hidden'.
        Parameters:
        element - the element to be used
    • Method Detail

      • wrap

        public static Hidden wrap​(Element element)
        Creates a Hidden widget that wraps an existing <input type='hidden'> element. This element must already be attached to the document. If the element is removed from the document, you must call RootPanel.detachNow(Widget).
        Parameters:
        element - the element to be wrapped
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Gets the default value of the hidden field.
        Returns:
        the default value
      • getID

        public java.lang.String getID()
        Gets the id of the hidden field.
        Returns:
        the id
      • getName

        public java.lang.String getName()
        Gets the name of the hidden field.
        Specified by:
        getName in interface HasName
        Returns:
        the name
      • getValue

        public java.lang.String getValue()
        Gets the value of the hidden field.
        Specified by:
        getValue in interface TakesValue<java.lang.String>
        Returns:
        the value
        See Also:
        TakesValue.setValue(V)
      • setDefaultValue

        public void setDefaultValue​(java.lang.String defaultValue)
        Sets the default value of the hidden field.
        Parameters:
        defaultValue - default value to set
      • setID

        public void setID​(java.lang.String id)
        Sets the id of the hidden field.
        Parameters:
        id - id to set
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the hidden field.
        Specified by:
        setName in interface HasName
        Parameters:
        name - name of the field
      • setValue

        public void setValue​(java.lang.String value)
        Sets the value of the hidden field.
        Specified by:
        setValue in interface TakesValue<java.lang.String>
        Parameters:
        value - value to set
        See Also:
        TakesValue.getValue()