public class Hidden extends Widget implements HasName, TakesValue<String>, IsEditor<LeafValueEditor<String>>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
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(String name)
Constructor for
Hidden . |
|
Hidden(String name,
String value)
Constructor for
Hidden . |
Modifier and Type | Method and Description |
---|---|
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.
|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, 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(String name)
Hidden
.name
- name of the hidden fieldpublic Hidden(String name, 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<String> asEditor()
IsEditor
asEditor
in interface IsEditor<LeafValueEditor<String>>
Editor
of type Epublic String getDefaultValue()
public String getID()
public String getName()
public String getValue()
getValue
in interface TakesValue<String>
TakesValue.setValue(V)
public void setDefaultValue(String defaultValue)
defaultValue
- default value to setpublic void setID(String id)
id
- id to setpublic void setName(String name)
public void setValue(String value)
setValue
in interface TakesValue<String>
value
- value to setTakesValue.getValue()
Copyright © 2018. All rights reserved.