|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Hidden
public class Hidden
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 | |
---|---|
|
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 . |
Method Summary | |
---|---|
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. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 usedMethod Detail |
---|
public 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()
getName
in interface HasName
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)
setName
in interface HasName
name
- name of the fieldpublic void setValue(java.lang.String value)
setValue
in interface TakesValue<java.lang.String>
value
- value to setTakesValue.getValue()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |