public class

Hidden

extends Widget
implements IsEditor<E extends Editor<?>> TakesValue<V> HasName
java.lang.Object
   ↳ com.google.gwt.user.client.ui.UIObject
     ↳ com.google.gwt.user.client.ui.Widget
       ↳ com.google.gwt.user.client.ui.Hidden

Class Overview

Represents a hidden field in an HTML form.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
Public Constructors
Hidden()
Constructor for Hidden.
Hidden(String name)
Constructor for Hidden.
Hidden(String name, String value)
Constructor for Hidden.
Protected Constructors
Hidden(Element element)
This constructor may be used by subclasses to explicitly use an existing element.
Public Methods
LeafValueEditor<String> asEditor()
Returns the Editor encapsulated by the view object.
String getDefaultValue()
Gets the default value of the hidden field.
String getID()
Gets the id of the hidden field.
String getName()
Gets the name of the hidden field.
String getValue()
Gets the value of the hidden field.
void setDefaultValue(String defaultValue)
Sets the default value of the hidden field.
void setID(String id)
Sets the id of the hidden field.
void setName(String name)
Sets the name of the hidden field.
void setValue(String value)
Sets the value of the hidden field.
static Hidden wrap(Element element)
Creates a Hidden widget that wraps an existing <input type='hidden'> element.
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.Widget
From class com.google.gwt.user.client.ui.UIObject
From class java.lang.Object
From interface com.google.gwt.editor.client.IsEditor
From interface com.google.gwt.event.logical.shared.HasAttachHandlers
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.user.client.EventListener
From interface com.google.gwt.user.client.TakesValue
From interface com.google.gwt.user.client.ui.HasName
From interface com.google.gwt.user.client.ui.IsWidget

Public Constructors

public Hidden ()

Constructor for Hidden.

public Hidden (String name)

Constructor for Hidden.

Parameters
name name of the hidden field

public Hidden (String name, String value)

Constructor for Hidden.

Parameters
name name of the hidden field
value value of the hidden field

Protected Constructors

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

Public Methods

public LeafValueEditor<String> asEditor ()

Returns the Editor encapsulated by the view object.

Returns

public String getDefaultValue ()

Gets the default value of the hidden field.

Returns
  • the default value

public String getID ()

Gets the id of the hidden field.

Returns
  • the id

public String getName ()

Gets the name of the hidden field.

Returns
  • the name

public String getValue ()

Gets the value of the hidden field.

Returns
  • the value

public void setDefaultValue (String defaultValue)

Sets the default value of the hidden field.

Parameters
defaultValue default value to set

public void setID (String id)

Sets the id of the hidden field.

Parameters
id id to set

public void setName (String name)

Sets the name of the hidden field.

Parameters
name name of the field

public void setValue (String value)

Sets the value of the hidden field.

Parameters
value value to set

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 detachNow(Widget).

Parameters
element the element to be wrapped