public class Hidden extends Widget implements HasName, TakesValue<java.lang.String>, IsEditor<LeafValueEditor<java.lang.String>>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
eventsToSink
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
Modifier | Constructor and Description |
---|---|
|
Hidden()
Constructor for
Hidden . |
protected |
Hidden(Element element)
This constructor may be used by subclasses to explicitly use an existing
element.
|
|
Hidden(java.lang.String name)
Constructor for
Hidden . |
|
Hidden(java.lang.String name,
java.lang.String value)
Constructor for
Hidden . |
Modifier and Type | Method and Description |
---|---|
LeafValueEditor<java.lang.String> |
asEditor()
Returns the Editor encapsulated by the view object.
|
java.lang.String |
getDefaultValue()
Gets the default value of the hidden field.
|
java.lang.String |
getID()
Gets the id of the hidden field.
|
java.lang.String |
getName()
Gets the name of the hidden field.
|
java.lang.String |
getValue()
Gets the value of the hidden field.
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value of the hidden field.
|
void |
setID(java.lang.String id)
Sets the id of the hidden field.
|
void |
setName(java.lang.String name)
Sets the name of the hidden field.
|
void |
setValue(java.lang.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.
|
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
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
public Hidden()
Hidden
.public Hidden(java.lang.String name)
Hidden
.name
- name of the hidden fieldpublic Hidden(java.lang.String name, java.lang.String value)
Hidden
.name
- name of the hidden fieldvalue
- value of the hidden fieldprotected Hidden(Element element)
element
- the element to be usedpublic static Hidden wrap(Element element)
RootPanel.detachNow(Widget)
.element
- the element to be wrappedpublic LeafValueEditor<java.lang.String> asEditor()
IsEditor
asEditor
in interface IsEditor<LeafValueEditor<java.lang.String>>
Editor
of type Epublic java.lang.String getDefaultValue()
public java.lang.String getID()
public java.lang.String getName()
public java.lang.String getValue()
getValue
in interface TakesValue<java.lang.String>
TakesValue.setValue(V)
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- default value to setpublic void setID(java.lang.String id)
id
- id to setpublic void setName(java.lang.String name)
public void setValue(java.lang.String value)
setValue
in interface TakesValue<java.lang.String>
value
- value to setTakesValue.getValue()