|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.xwiki.gwt.user.client.ui.HiddenConfig
public class HiddenConfig
A group of Hidden widgets that can be used to send data to the server when the HTML form is submitted. An
Hidden widget can serve two roles. It's either a flag or a parameter.
Flags are global with respect to the host page. Another HiddenConfig can have the same flag. As a consequence
the request will have a parameter with the name of the flag. The value of this request parameter will be the list of
nameSpace of HiddenConfig that had the flag set when the form was submitted.
Parameters are local with respect to a HiddenConfig. Their names are prefixed by the nameSpace. For
each parameter set on a HiddenConfig there will be a request parameter with the same name and the same value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
HiddenConfig()
Creates a new group of Hidden widgets without specifying the nameSpace. |
|
HiddenConfig(String nameSpace)
Creates a new group of Hidden widgets. |
|
| Method Summary | |
|---|---|
void |
addFlag(String flagName)
Sets the specified flag. |
Set<String> |
getFlagNames()
|
String |
getNameSpace()
|
String |
getParameter(String paramName)
Returns the value of the specified parameter, defaulting to null if the parameter doesn't exist. |
String |
getParameter(String paramName,
String defaultValue)
Returns the value of the specified parameter, defaulting to the given value if the parameter doesn't exist. |
Set<String> |
getParameterNames()
|
String |
getQualifiedName(String paramName)
The qualified form of a parameter's name is obtained by prefixing the name of the parameter with nameSpace. |
boolean |
hasFlag(String flagName)
Tests of the specified flag has been set. |
void |
removeFlag(String flagName)
Removes the specified flag. |
void |
removeParameter(String paramName)
Removes the specified parameter. |
void |
setNameSpace(String nameSpace)
Sets the name of this group of Hidden. |
String |
setParameter(String paramName,
String paramValue)
Sets the value of the specified parameter. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HiddenConfig()
Hidden widgets without specifying the nameSpace.
public HiddenConfig(String nameSpace)
Hidden widgets.
nameSpace - The name of this group.| Method Detail |
|---|
public String getParameter(String paramName)
null if the parameter doesn't exist.
getParameter in interface ConfigparamName - The name of the parameter.
null if there's no such parameter.Config.getParameter(String)
public String getParameter(String paramName,
String defaultValue)
getParameter in interface ConfigparamName - The name of the parameter.defaultValue - The default value if the parameter doesn't exist.
Config.getParameter(String, String)public Set<String> getParameterNames()
getParameterNames in interface ConfigConfig.getParameterNames()
public String setParameter(String paramName,
String paramValue)
paramName - The name of the parameter.paramValue - The value of the parameter.
public void removeParameter(String paramName)
paramName - The name of the parameter to be removed.public void addFlag(String flagName)
flagName - The name of the flag to be set.public boolean hasFlag(String flagName)
flagName - The name of the flag to test.
public void removeFlag(String flagName)
flagName - The name of the flag to be removed.public Set<String> getFlagNames()
public String getQualifiedName(String paramName)
nameSpace.
paramName - The name of a parameter.
public String getNameSpace()
Hidden.nameSpacepublic void setNameSpace(String nameSpace)
Hidden. As a consequence all flags and parameters are updated.
nameSpace - The new name for this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||