com.esri.adf.web.tasks.ajax
Class PrintTaskRenderer

java.lang.Object
  extended by com.esri.adf.web.tasks.ajax.PrintTaskRenderer
All Implemented Interfaces:
AJAXRenderer

public class PrintTaskRenderer
extends Object
implements AJAXRenderer

A AJAXRenderer class to render the printing task page.


Constructor Summary
PrintTaskRenderer()
           
 
Method Summary
protected  void generateLegend(PrintTask printTask, Element printTaskTag)
           
 Class<TaskControl> getControlClass()
           Return the class of the control to be passed for processing
 Object getOriginalState(javax.faces.component.UIComponent component)
          Returns the initial state of the task control
 void renderAjaxResponse(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object origState, boolean isEventSource, Element parentElement)
          Rendering the printing task response in a XML format.
protected  void renderPrintTaskXml(Element parentElement, TaskControl taskControl)
          Private method to render XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintTaskRenderer

public PrintTaskRenderer()
Method Detail

getControlClass

public Class<TaskControl> getControlClass()
Description copied from interface: AJAXRenderer

Return the class of the control to be passed for processing

 return MyClassName.class
 

Specified by:
getControlClass in interface AJAXRenderer

getOriginalState

public Object getOriginalState(javax.faces.component.UIComponent component)
Returns the initial state of the task control

Specified by:
getOriginalState in interface AJAXRenderer
Parameters:
component - Component who's class is the same as that returned by getControlClass method

Returns:
component - the task control

renderAjaxResponse

public void renderAjaxResponse(javax.faces.context.FacesContext facesContext,
                               javax.faces.component.UIComponent component,
                               Object origState,
                               boolean isEventSource,
                               Element parentElement)
Rendering the printing task response in a XML format.

Specified by:
renderAjaxResponse in interface AJAXRenderer
Parameters:
facesContext - - FacesContext
origState - - Object (String in this case)
isEventSource - - boolean, true/false
parentElement - - parent node of XML
component - Component who's class is the same as that returned by getControlClass method

renderPrintTaskXml

protected void renderPrintTaskXml(Element parentElement,
                                  TaskControl taskControl)
Private method to render XML.


generateLegend

protected void generateLegend(PrintTask printTask,
                              Element printTaskTag)