public class SheetRenderer
extends org.primefaces.renderkit.CoreRenderer
| Constructor and Description |
|---|
SheetRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Overrides decode and to parse the request parameters for the two hidden input fields:
clientid_input: any new changes provided by the user
clientid_selection: the user's cell selections
These are JSON values and are parsed into our submitted values data on the Sheet component.
|
protected void |
decodeBehaviors(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Decodes client behaviors (ajax events).
|
protected void |
decodeFilters(javax.faces.context.FacesContext context,
Sheet sheet,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String clientId)
Decodes the filter values
|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Encodes the Sheet component
|
protected void |
encodeColHeaders(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encode the column headers
|
protected void |
encodeColOptions(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encode the column options
|
protected void |
encodeData(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encode the row data.
|
protected void |
encodeFilterValues(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter responseWriter,
Sheet sheet,
java.lang.String clientId)
Encodes the filter values.
|
protected void |
encodeFilterVar(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encodes a javascript filter var that informs the col header event of the column's filtering options.
|
protected void |
encodeInvalidData(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encodes the necessary JS to render invalid data.
|
protected void |
encodeJavascript(javax.faces.context.FacesContext context,
Sheet sheet,
javax.faces.context.ResponseWriter responseWriter)
Encodes the Javascript for the sheet.
|
protected void |
encodeMarkup(javax.faces.context.FacesContext context,
Sheet sheet,
javax.faces.context.ResponseWriter responseWriter)
Encodes the HTML markup for the sheet.
|
protected void |
encodeOptionalAttr(org.primefaces.util.WidgetBuilder wb,
java.lang.String attrName,
java.lang.String value)
Encodes an optional attribute to the widget builder specified.
|
protected void |
encodeOptionalNativeAttr(org.primefaces.util.WidgetBuilder wb,
java.lang.String attrName,
java.lang.Object value)
Encodes an optional native attribute (unquoted).
|
protected void |
encodeRow(javax.faces.context.FacesContext context,
java.lang.String rowKey,
JavascriptVarBuilder vbData,
JavascriptVarBuilder vbRowStyle,
JavascriptVarBuilder vbStyle,
JavascriptVarBuilder vbReadOnly,
Sheet sheet,
java.lang.Object data,
int rowIndex)
Encode a single row.
|
protected void |
encodeSortVar(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encodes a javascript sort var that informs the col header event of the column's sorting options.
|
protected void |
endScript(javax.faces.context.ResponseWriter writer)
Stop script element.
|
boolean |
getRendersChildren()
We render the columns (the children).
|
protected void |
startScript(javax.faces.context.ResponseWriter writer,
java.lang.String clientId)
Start script element.
|
buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, encodeClientBehaviors, escapeText, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getWidgetBuilder, isGrouped, isValueBlank, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDynamicPassThruAttributes, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteIdpublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeBegin in class javax.faces.render.Rendererjava.io.IOExceptionprotected void encodeMarkup(javax.faces.context.FacesContext context,
Sheet sheet,
javax.faces.context.ResponseWriter responseWriter)
throws java.io.IOException
context - sheet - java.io.IOExceptionprotected void encodeOptionalAttr(org.primefaces.util.WidgetBuilder wb,
java.lang.String attrName,
java.lang.String value)
throws java.io.IOException
wb - the WidgetBuilder to append toattrName - the attribute namevalue - the valuejava.io.IOExceptionprotected void encodeOptionalNativeAttr(org.primefaces.util.WidgetBuilder wb,
java.lang.String attrName,
java.lang.Object value)
throws java.io.IOException
wb - the WidgetBuilder to append toattrName - the attribute namevalue - the valuejava.io.IOExceptionprotected void encodeJavascript(javax.faces.context.FacesContext context,
Sheet sheet,
javax.faces.context.ResponseWriter responseWriter)
throws java.io.IOException
context - sheet - java.io.IOExceptionprotected void encodeInvalidData(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
throws java.io.IOException
java.io.IOExceptionprotected void encodeColHeaders(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
throws java.io.IOException
context - sheet - wb - java.io.IOExceptionprotected void encodeColOptions(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
throws java.io.IOException
context - sheet - wb - java.io.IOExceptionprotected void encodeData(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
throws java.io.IOException
context - sheet - wb - java.io.IOExceptionprotected void encodeRow(javax.faces.context.FacesContext context,
java.lang.String rowKey,
JavascriptVarBuilder vbData,
JavascriptVarBuilder vbRowStyle,
JavascriptVarBuilder vbStyle,
JavascriptVarBuilder vbReadOnly,
Sheet sheet,
java.lang.Object data,
int rowIndex)
throws java.io.IOException
context - vbData - vbRowStyle - vbStyle - vbReadOnly - sheet - data - rowIndex - java.io.IOExceptionprotected void encodeFilterValues(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter responseWriter,
Sheet sheet,
java.lang.String clientId)
throws java.io.IOException
context - responseWriter - sheet - java.io.IOExceptionprotected void encodeFilterVar(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
throws java.io.IOException
["false","true",["option 1", "option 2"]]False indicates no filtering for the column. True indicates simple input text filter. Array of values indicates a drop down filter with the listed options.
context - sheet - wb - java.io.IOExceptionprotected void encodeSortVar(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
throws java.io.IOException
context - sheet - wb - java.io.IOExceptionpublic void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Renderercontext - protected void decodeFilters(javax.faces.context.FacesContext context,
Sheet sheet,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String clientId)
context - sheet - params - clientId - protected void decodeBehaviors(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decodeBehaviors in class org.primefaces.renderkit.CoreRenderercontext - the FacesContextcomponent - the Component being decodesprotected void startScript(javax.faces.context.ResponseWriter writer,
java.lang.String clientId)
throws java.io.IOException
startScript in class org.primefaces.renderkit.CoreRendererwriter - clientId - java.io.IOExceptionprotected void endScript(javax.faces.context.ResponseWriter writer)
throws java.io.IOException
endScript in class org.primefaces.renderkit.CoreRendererwriter - java.io.IOExceptionpublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.RendererCopyright © 2011–2018. All rights reserved.