Package com.google.gwt.user.client.ui
Class Hidden
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Hidden
- All Implemented Interfaces:
IsEditor<LeafValueEditor<String>>
,HasAttachHandlers
,HasHandlers
,EventListener
,TakesValue<String>
,HasName
,HasVisibility
,IsWidget
public class Hidden
extends Widget
implements HasName, TakesValue<String>, IsEditor<LeafValueEditor<String>>
Represents a hidden field in an HTML form.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
-
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.Widget
eventsToSink
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasEditor()
Returns the Editor encapsulated by the view object.Gets the default value of the hidden field.getID()
Gets the id of the hidden field.getName()
Gets the name of the hidden field.getValue()
Gets the value of the hidden field.void
setDefaultValue
(String defaultValue) Sets the default value of the hidden field.void
Sets the id of the hidden field.void
Sets the name of the hidden field.void
Sets the value of the hidden field.static Hidden
Creates a Hidden widget that wraps an existing <input type='hidden'> element.Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Constructor Details
-
Hidden
public Hidden()Constructor forHidden
. -
Hidden
Constructor forHidden
.- Parameters:
name
- name of the hidden field
-
Hidden
Constructor forHidden
.- Parameters:
name
- name of the hidden fieldvalue
- value of the hidden field
-
Hidden
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 Details
-
wrap
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 callWidget.removeFromParent()
.- Parameters:
element
- the element to be wrapped
-
asEditor
Description copied from interface:IsEditor
Returns the Editor encapsulated by the view object.- Specified by:
asEditor
in interfaceIsEditor<LeafValueEditor<String>>
- Returns:
- an
Editor
of type E
-
getDefaultValue
Gets the default value of the hidden field.- Returns:
- the default value
-
getID
Gets the id of the hidden field.- Returns:
- the id
-
getName
Gets the name of the hidden field. -
getValue
Gets the value of the hidden field.- Specified by:
getValue
in interfaceTakesValue<String>
- Returns:
- the value
- See Also:
-
setDefaultValue
Sets the default value of the hidden field.- Parameters:
defaultValue
- default value to set
-
setID
Sets the id of the hidden field.- Parameters:
id
- id to set
-
setName
Sets the name of the hidden field. -
setValue
Sets the value of the hidden field.- Specified by:
setValue
in interfaceTakesValue<String>
- Parameters:
value
- value to set- See Also:
-