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(Sheet sheet,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String clientId)
Decodes the filter values
|
protected void |
encodeColHeaders(Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encode the column headers
|
protected void |
encodeColOptions(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.
|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Encodes the Sheet component
|
protected void |
encodeFilterValues(javax.faces.context.ResponseWriter responseWriter,
Sheet sheet,
java.lang.String clientId)
Encodes the filter values.
|
protected void |
encodeFilterVar(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(Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encodes the necessary JS to render invalid data.
|
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 JavascriptVarBuilder |
encodeRow(javax.faces.context.FacesContext context,
java.lang.String rowKey,
JavascriptVarBuilder jsData,
JavascriptVarBuilder jsRowStyle,
JavascriptVarBuilder jsStyle,
JavascriptVarBuilder jsReadOnly,
Sheet sheet,
int rowIndex)
Encode a single row.
|
protected void |
encodeScript(javax.faces.context.FacesContext context,
Sheet sheet)
Encodes the Javascript for the sheet.
|
protected void |
encodeSortVar(Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
Encodes a javascript sort var that informs the col header event of the column's sorting options.
|
boolean |
getRendersChildren()
We render the columns (the children).
|
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, encodeClientBehaviors, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteIdpublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeEnd 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
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.IOException - if any IO error occursprotected 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.IOException - if any IO error occursprotected void encodeScript(javax.faces.context.FacesContext context,
Sheet sheet)
throws java.io.IOException
context - the FacesContextsheet - the Sheetjava.io.IOException - if any IO error occursprotected void encodeInvalidData(Sheet sheet, org.primefaces.util.WidgetBuilder wb) throws java.io.IOException
java.io.IOException - if any IO error occursprotected void encodeColHeaders(Sheet sheet, org.primefaces.util.WidgetBuilder wb) throws java.io.IOException
java.io.IOException - if any IO error occursprotected void encodeColOptions(Sheet sheet, org.primefaces.util.WidgetBuilder wb) throws java.io.IOException
java.io.IOException - if any IO error occursprotected void encodeData(javax.faces.context.FacesContext context,
Sheet sheet,
org.primefaces.util.WidgetBuilder wb)
throws java.io.IOException
java.io.IOExceptionprotected JavascriptVarBuilder encodeRow(javax.faces.context.FacesContext context, java.lang.String rowKey, JavascriptVarBuilder jsData, JavascriptVarBuilder jsRowStyle, JavascriptVarBuilder jsStyle, JavascriptVarBuilder jsReadOnly, Sheet sheet, int rowIndex)
protected void encodeFilterValues(javax.faces.context.ResponseWriter responseWriter,
Sheet sheet,
java.lang.String clientId)
throws java.io.IOException
java.io.IOExceptionprotected void encodeFilterVar(Sheet sheet, org.primefaces.util.WidgetBuilder wb) throws java.io.IOException
java.io.IOExceptionprotected void encodeSortVar(Sheet sheet, org.primefaces.util.WidgetBuilder wb) throws java.io.IOException
java.io.IOExceptionpublic void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Rendererprotected void decodeFilters(Sheet sheet, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String 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 decodespublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.RendererCopyright © 2011–2021. All rights reserved.