Class TreeTableRenderer
- java.lang.Object
-
- javax.faces.render.Renderer
-
- org.primefaces.renderkit.CoreRenderer
-
- org.primefaces.renderkit.DataRenderer
-
- org.primefaces.component.treetable.TreeTableRenderer
-
public class TreeTableRenderer extends DataRenderer
-
-
Constructor Summary
Constructors Constructor Description TreeTableRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TreeNodecloneTreeNode(TreeTable tt, TreeNode node, TreeNode parent)protected voidcollectFilteredRowKeys(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode node, Map<String,FilterMeta> filterBy, Locale filterLocale, List<String> filteredRowKeys)voiddecode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)protected voiddecodeSelection(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)protected voiddecodeSort(javax.faces.context.FacesContext context, TreeTable tt)voidencodeCellEdit(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)voidencodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)voidencodeColumnFooter(javax.faces.context.FacesContext context, TreeTable table, UIColumn column)voidencodeColumnHeader(javax.faces.context.FacesContext context, TreeTable tt, UIColumn column)voidencodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)protected voidencodeFacet(javax.faces.context.FacesContext context, TreeTable tt, javax.faces.component.UIComponent facet, String styleClass)protected voidencodeFilter(javax.faces.context.FacesContext context, TreeTable tt, UIColumn column)protected voidencodeMarkup(javax.faces.context.FacesContext context, TreeTable tt)protected voidencodeNode(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode)protected voidencodeNodeChildren(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode)protected voidencodeNodeChildren(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode, int first, int size)protected voidencodeRegularMarkup(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)voidencodeRowEdit(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)protected voidencodeScript(javax.faces.context.FacesContext context, TreeTable tt)protected voidencodeScrollableMarkup(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)protected voidencodeScrollAreaEnd(javax.faces.context.FacesContext context)protected voidencodeScrollAreaStart(javax.faces.context.FacesContext context, TreeTable tt, String containerClass, String containerBoxClass, String tableStyle, String tableStyleClass, String facet, String facetClass)protected voidencodeScrollBody(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, String tableStyle, String tableStyleClass)protected voidencodeSort(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)protected voidencodeTbody(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, boolean dataOnly)protected voidencodeTfoot(javax.faces.context.FacesContext context, TreeTable tt)protected voidencodeThead(javax.faces.context.FacesContext context, TreeTable tt)voidfilter(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)booleangetRendersChildren()protected voidpreRender(javax.faces.context.FacesContext context, TreeTable tt)protected voidrenderNativeCheckbox(javax.faces.context.FacesContext context, TreeTable tt, boolean checked, boolean partialSelected)protected StringresolveDefaultSortIcon(SortMeta sortMeta)protected StringresolveSortIcon(SortMeta sortMeta)voidsort(TreeTable tt)-
Methods inherited from class org.primefaces.renderkit.DataRenderer
addPaginatorElement, encodeFacet, encodePaginatorConfig, encodePaginatorMarkup, getHeaderLabel, removePaginatorElement
-
Methods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
-
-
-
-
Method Detail
-
decode
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)- Overrides:
decodein classjavax.faces.render.Renderer
-
decodeSelection
protected void decodeSelection(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException- Overrides:
encodeEndin classjavax.faces.render.Renderer- Throws:
IOException
-
preRender
protected void preRender(javax.faces.context.FacesContext context, TreeTable tt)
-
encodeScript
protected void encodeScript(javax.faces.context.FacesContext context, TreeTable tt) throws IOException- Throws:
IOException
-
encodeMarkup
protected void encodeMarkup(javax.faces.context.FacesContext context, TreeTable tt) throws IOException- Throws:
IOException
-
encodeScrollableMarkup
protected void encodeScrollableMarkup(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root) throws IOException- Throws:
IOException
-
encodeScrollBody
protected void encodeScrollBody(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, String tableStyle, String tableStyleClass) throws IOException- Throws:
IOException
-
encodeScrollAreaStart
protected void encodeScrollAreaStart(javax.faces.context.FacesContext context, TreeTable tt, String containerClass, String containerBoxClass, String tableStyle, String tableStyleClass, String facet, String facetClass) throws IOException- Throws:
IOException
-
encodeScrollAreaEnd
protected void encodeScrollAreaEnd(javax.faces.context.FacesContext context) throws IOException- Throws:
IOException
-
encodeRegularMarkup
protected void encodeRegularMarkup(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root) throws IOException- Throws:
IOException
-
encodeThead
protected void encodeThead(javax.faces.context.FacesContext context, TreeTable tt) throws IOException- Throws:
IOException
-
encodeTbody
protected void encodeTbody(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, boolean dataOnly) throws IOException- Throws:
IOException
-
encodeNode
protected void encodeNode(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode) throws IOException- Throws:
IOException
-
encodeColumnHeader
public void encodeColumnHeader(javax.faces.context.FacesContext context, TreeTable tt, UIColumn column) throws IOException- Throws:
IOException
-
encodeFilter
protected void encodeFilter(javax.faces.context.FacesContext context, TreeTable tt, UIColumn column) throws IOException- Throws:
IOException
-
encodeNodeChildren
protected void encodeNodeChildren(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode) throws IOException- Throws:
IOException
-
encodeNodeChildren
protected void encodeNodeChildren(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode, int first, int size) throws IOException- Throws:
IOException
-
encodeFacet
protected void encodeFacet(javax.faces.context.FacesContext context, TreeTable tt, javax.faces.component.UIComponent facet, String styleClass) throws IOException- Throws:
IOException
-
encodeTfoot
protected void encodeTfoot(javax.faces.context.FacesContext context, TreeTable tt) throws IOException- Throws:
IOException
-
encodeColumnFooter
public void encodeColumnFooter(javax.faces.context.FacesContext context, TreeTable table, UIColumn column) throws IOException- Throws:
IOException
-
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws IOException- Overrides:
encodeChildrenin classjavax.faces.render.Renderer- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildrenin classjavax.faces.render.Renderer
-
decodeSort
protected void decodeSort(javax.faces.context.FacesContext context, TreeTable tt)
-
encodeSort
protected void encodeSort(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root) throws IOException- Throws:
IOException
-
sort
public void sort(TreeTable tt)
-
renderNativeCheckbox
protected void renderNativeCheckbox(javax.faces.context.FacesContext context, TreeTable tt, boolean checked, boolean partialSelected) throws IOException- Throws:
IOException
-
encodeRowEdit
public void encodeRowEdit(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root) throws IOException- Throws:
IOException
-
encodeCellEdit
public void encodeCellEdit(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root) throws IOException- Throws:
IOException
-
filter
public void filter(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root) throws IOException- Throws:
IOException
-
collectFilteredRowKeys
protected void collectFilteredRowKeys(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode node, Map<String,FilterMeta> filterBy, Locale filterLocale, List<String> filteredRowKeys) throws IOException- Throws:
IOException
-
-