|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.faces.renderkit.xml.ajax.TaskRenderer
public class TaskRenderer
A renderer for the TaskControl. Generates an XML representation of the control which is processed by the
AJAX handler to update the control in the rendered page.
Renders <task> xml tag fragment as part of AJAX response.
| Constructor Summary | |
|---|---|
TaskRenderer()
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
java.lang.Class |
getControlClass()
Return the class of the control to be passed for processing |
java.lang.Object |
getOriginalState(javax.faces.component.UIComponent component)
Returns the state of the argument component. |
void |
renderAjaxResponse(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object originalState,
boolean isEventSource,
org.w3c.dom.Element parentElement)
Render AJAX xml response for this control. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskRenderer()
| Method Detail |
|---|
public java.lang.Class getControlClass()
AJAXRendererReturn the class of the control to be passed for processing
return MyClassName.class
getControlClass in interface AJAXRendererpublic java.lang.Object getOriginalState(javax.faces.component.UIComponent component)
AJAXRendererReturns the state of the argument component. The returned state can be null.
getOriginalState in interface AJAXRenderercomponent - Component who's class is the same as that returned by getControlClass method
public void renderAjaxResponse(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object originalState,
boolean isEventSource,
org.w3c.dom.Element parentElement)
AJAXRendererRender AJAX xml response for this control. The response is contained within the argument Document.
if (state != null && state.equals(currentState))
return;
org.w3c.dom.Element myTag = com.esri.adf.web.util.XMLUtil.createElement("my-tag", null, parentElement);
com.esri.adf.web.util.XMLUtil.createElement("id", component.getId(), myTag);
...
renderAjaxResponse in interface AJAXRenderercontext - Current FacesContext instancecomponent - Component who's class is the same as that returned by getControlClass methodoriginalState - Object returned by getOriginalState method. May be null.isEventSource - True if component handled request from client to perform operation on serverparentElement - Root level XML response node. All content must be rendered within a unique tag which is
created as a child for this parentElement
public org.w3c.dom.Document encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||