|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.primefaces.context.RequestContext
org.primefaces.context.DefaultRequestContext
public class DefaultRequestContext
Constructor Summary | |
---|---|
DefaultRequestContext()
|
Method Summary | |
---|---|
void |
addCallbackParam(String name,
Object value)
Add a parameter for ajax oncomplete client side callbacks. |
void |
execute(String script)
Execute a javascript after current ajax request is completed. |
Map<String,Object> |
getCallbackParams()
|
List<String> |
getScriptsToExecute()
|
WidgetBuilder |
getWidgetBuilder()
|
boolean |
isAjaxRequest()
|
void |
reset(Collection<String> ids)
Reset a collection of editableValueHolders. |
void |
reset(String id)
Reset an editableValueHolder. |
void |
scrollTo(String clientId)
Scroll to a component after ajax request is completed. |
void |
update(Collection<String> collection)
Update components with ajax. |
void |
update(String clientId)
Update a component with ajax. |
Methods inherited from class org.primefaces.context.RequestContext |
---|
getCurrentInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRequestContext()
Method Detail |
---|
public boolean isAjaxRequest()
isAjaxRequest
in class RequestContext
public void addCallbackParam(String name, Object value)
RequestContext
addCallbackParam
in class RequestContext
name
- name of the parameter.public void execute(String script)
RequestContext
execute
in class RequestContext
script
- Javascript statement to execute.public Map<String,Object> getCallbackParams()
getCallbackParams
in class RequestContext
public List<String> getScriptsToExecute()
getScriptsToExecute
in class RequestContext
public WidgetBuilder getWidgetBuilder()
getWidgetBuilder
in class RequestContext
public void scrollTo(String clientId)
RequestContext
scrollTo
in class RequestContext
clientId
- Client side identifier of the component.public void update(String clientId)
RequestContext
update
in class RequestContext
clientId
- Client side identifier of the component.public void update(Collection<String> collection)
RequestContext
update
in class RequestContext
collection
- Client side identifiers of the components.public void reset(Collection<String> ids)
RequestContext
reset
in class RequestContext
ids
- Client side identifiers of the components.public void reset(String id)
RequestContext
reset
in class RequestContext
id
- Client side identifier of the component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |