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 TreeNode
cloneTreeNode(TreeTable tt, TreeNode node, TreeNode parent)
protected void
collectFilteredRowKeys(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode node, Map<String,FilterMeta> filterBy, Locale filterLocale, List<String> filteredRowKeys)
void
decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void
decodeSelection(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
protected void
decodeSort(javax.faces.context.FacesContext context, TreeTable tt)
void
encodeCellEdit(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
void
encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
void
encodeColumnFooter(javax.faces.context.FacesContext context, TreeTable table, UIColumn column)
void
encodeColumnHeader(javax.faces.context.FacesContext context, TreeTable tt, UIColumn column)
void
encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void
encodeFacet(javax.faces.context.FacesContext context, TreeTable tt, javax.faces.component.UIComponent facet, String styleClass)
protected void
encodeFilter(javax.faces.context.FacesContext context, TreeTable tt, UIColumn column)
protected void
encodeMarkup(javax.faces.context.FacesContext context, TreeTable tt)
protected void
encodeNode(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode)
protected void
encodeNodeChildren(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode)
protected void
encodeNodeChildren(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, TreeNode treeNode, int first, int size)
protected void
encodeRegularMarkup(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
void
encodeRowEdit(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
protected void
encodeScript(javax.faces.context.FacesContext context, TreeTable tt)
protected void
encodeScrollableMarkup(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
protected void
encodeScrollAreaEnd(javax.faces.context.FacesContext context)
protected void
encodeScrollAreaStart(javax.faces.context.FacesContext context, TreeTable tt, String containerClass, String containerBoxClass, String tableStyle, String tableStyleClass, String facet, String facetClass)
protected void
encodeScrollBody(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, String tableStyle, String tableStyleClass)
protected void
encodeSort(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
protected void
encodeTbody(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root, boolean dataOnly)
protected void
encodeTfoot(javax.faces.context.FacesContext context, TreeTable tt)
protected void
encodeThead(javax.faces.context.FacesContext context, TreeTable tt)
void
filter(javax.faces.context.FacesContext context, TreeTable tt, TreeNode root)
boolean
getRendersChildren()
protected void
preRender(javax.faces.context.FacesContext context, TreeTable tt)
protected void
renderNativeCheckbox(javax.faces.context.FacesContext context, TreeTable tt, boolean checked, boolean partialSelected)
protected String
resolveDefaultSortIcon(SortMeta sortMeta)
protected String
resolveSortIcon(SortMeta sortMeta)
void
sort(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:
decode
in 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:
encodeEnd
in 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:
encodeChildren
in classjavax.faces.render.Renderer
- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren
in 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
-
-