org.primefaces.component.treetable
Class TreeTable

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.primefaces.component.api.UITree
              extended by org.primefaces.component.treetable.TreeTable
All Implemented Interfaces:
EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.NamingContainer, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, Widget

public class TreeTable
extends UITree
implements Widget, javax.faces.component.behavior.ClientBehaviorHolder


Nested Class Summary
protected static class TreeTable.PropertyKeys
           
 
Field Summary
static String COLLAPSE_ICON
           
static String COLUMN_CONTENT_WRAPPER
           
static String COLUMN_HEADER_CLASS
           
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String CONTAINER_CLASS
           
static String DATA_CLASS
           
static String EXPAND_ICON
           
static String FOOTER_CLASS
           
static String HEADER_CLASS
           
static String INDENT_CLASS
           
static String RESIZABLE_COLUMN_CLASS
           
static String RESIZABLE_CONTAINER_CLASS
           
static String ROW_CLASS
           
static String SCROLLABLE_BODY_CLASS
           
static String SCROLLABLE_CONTAINER_CLASS
           
static String SCROLLABLE_FOOTER_BOX_CLASS
           
static String SCROLLABLE_FOOTER_CLASS
           
static String SCROLLABLE_HEADER_BOX_CLASS
           
static String SCROLLABLE_HEADER_CLASS
           
static String SELECTABLE_NODE_CLASS
           
static String SELECTED_ROW_CLASS
           
 
Fields inherited from class org.primefaces.component.api.UITree
SEPARATOR
 
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
TreeTable()
           
 
Method Summary
 Column findColumn(String clientId)
           
 int getColumnsCount()
           
 Collection<String> getEventNames()
           
protected  javax.faces.context.FacesContext getFacesContext()
           
 String getFamily()
           
 Object getLocalSelectedNodes()
           
 String getRowStyleClass()
           
 String getScrollHeight()
           
 String getScrollState()
           
 String getScrollWidth()
           
 List<String> getSelectedRowKeys()
           
 String getSelectedRowKeysAsString()
           
 Object getSelection()
           
 String getSelectionMode()
           
 String getStyle()
           
 String getStyleClass()
           
 String getTableStyle()
           
 String getTableStyleClass()
           
 String getWidgetVar()
           
 void handleAttribute(String name, Object value)
           
 boolean hasFooterColumn()
           
 boolean isLiveResize()
           
 boolean isPropagateSelectionDown()
           
 boolean isPropagateSelectionUp()
           
 boolean isResizableColumns()
           
 boolean isResizeRequest(javax.faces.context.FacesContext context)
           
 boolean isScrollable()
           
 void processDecodes(javax.faces.context.FacesContext context)
           
 void processUpdates(javax.faces.context.FacesContext context)
           
 void queueEvent(javax.faces.event.FacesEvent event)
           
 String resolveWidgetVar()
           
 void setLiveResize(boolean _liveResize)
           
 void setPropagateSelectionDown(boolean _propagateSelectionDown)
           
 void setPropagateSelectionUp(boolean _propagateSelectionUp)
           
 void setResizableColumns(boolean _resizableColumns)
           
 void setRowStyleClass(String _rowStyleClass)
           
 void setScrollable(boolean _scrollable)
           
 void setScrollHeight(String _scrollHeight)
           
 void setScrollWidth(String _scrollWidth)
           
 void setSelection(Object _selection)
           
 void setSelectionMode(String _selectionMode)
           
 void setStyle(String _style)
           
 void setStyleClass(String _styleClass)
           
 void setTableStyle(String _tableStyle)
           
 void setTableStyleClass(String _tableStyleClass)
           
 void setWidgetVar(String _widgetVar)
           
 
Methods inherited from class org.primefaces.component.api.UITree
broadcast, doVisitChildren, findTreeNode, getContainerClientId, getRowKey, getRowNode, getValue, getVar, isRTLRendering, processColumnChildren, processColumnFacets, processFacets, processNode, processNodes, processValidators, setRowKey, setRTLRendering, setValue, setVar, visitFacets, visitNode, visitNodes, visitTree
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors, getDefaultEventName
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values

CONTAINER_CLASS

public static final String CONTAINER_CLASS
See Also:
Constant Field Values

RESIZABLE_CONTAINER_CLASS

public static final String RESIZABLE_CONTAINER_CLASS
See Also:
Constant Field Values

HEADER_CLASS

public static final String HEADER_CLASS
See Also:
Constant Field Values

DATA_CLASS

public static final String DATA_CLASS
See Also:
Constant Field Values

FOOTER_CLASS

public static final String FOOTER_CLASS
See Also:
Constant Field Values

COLUMN_HEADER_CLASS

public static final String COLUMN_HEADER_CLASS
See Also:
Constant Field Values

ROW_CLASS

public static final String ROW_CLASS
See Also:
Constant Field Values

SELECTED_ROW_CLASS

public static final String SELECTED_ROW_CLASS
See Also:
Constant Field Values

COLUMN_CONTENT_WRAPPER

public static final String COLUMN_CONTENT_WRAPPER
See Also:
Constant Field Values

EXPAND_ICON

public static final String EXPAND_ICON
See Also:
Constant Field Values

COLLAPSE_ICON

public static final String COLLAPSE_ICON
See Also:
Constant Field Values

SCROLLABLE_CONTAINER_CLASS

public static final String SCROLLABLE_CONTAINER_CLASS
See Also:
Constant Field Values

SCROLLABLE_HEADER_CLASS

public static final String SCROLLABLE_HEADER_CLASS
See Also:
Constant Field Values

SCROLLABLE_HEADER_BOX_CLASS

public static final String SCROLLABLE_HEADER_BOX_CLASS
See Also:
Constant Field Values

SCROLLABLE_BODY_CLASS

public static final String SCROLLABLE_BODY_CLASS
See Also:
Constant Field Values

SCROLLABLE_FOOTER_CLASS

public static final String SCROLLABLE_FOOTER_CLASS
See Also:
Constant Field Values

SCROLLABLE_FOOTER_BOX_CLASS

public static final String SCROLLABLE_FOOTER_BOX_CLASS
See Also:
Constant Field Values

SELECTABLE_NODE_CLASS

public static final String SELECTABLE_NODE_CLASS
See Also:
Constant Field Values

RESIZABLE_COLUMN_CLASS

public static final String RESIZABLE_COLUMN_CLASS
See Also:
Constant Field Values

INDENT_CLASS

public static final String INDENT_CLASS
See Also:
Constant Field Values
Constructor Detail

TreeTable

public TreeTable()
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getWidgetVar

public String getWidgetVar()

setWidgetVar

public void setWidgetVar(String _widgetVar)

getStyle

public String getStyle()

setStyle

public void setStyle(String _style)

getStyleClass

public String getStyleClass()

setStyleClass

public void setStyleClass(String _styleClass)

getSelection

public Object getSelection()

setSelection

public void setSelection(Object _selection)

getSelectionMode

public String getSelectionMode()

setSelectionMode

public void setSelectionMode(String _selectionMode)

isScrollable

public boolean isScrollable()

setScrollable

public void setScrollable(boolean _scrollable)

getScrollHeight

public String getScrollHeight()

setScrollHeight

public void setScrollHeight(String _scrollHeight)

getScrollWidth

public String getScrollWidth()

setScrollWidth

public void setScrollWidth(String _scrollWidth)

getTableStyle

public String getTableStyle()

setTableStyle

public void setTableStyle(String _tableStyle)

getTableStyleClass

public String getTableStyleClass()

setTableStyleClass

public void setTableStyleClass(String _tableStyleClass)

isResizableColumns

public boolean isResizableColumns()

setResizableColumns

public void setResizableColumns(boolean _resizableColumns)

getRowStyleClass

public String getRowStyleClass()

setRowStyleClass

public void setRowStyleClass(String _rowStyleClass)

isLiveResize

public boolean isLiveResize()

setLiveResize

public void setLiveResize(boolean _liveResize)

isPropagateSelectionUp

public boolean isPropagateSelectionUp()

setPropagateSelectionUp

public void setPropagateSelectionUp(boolean _propagateSelectionUp)

isPropagateSelectionDown

public boolean isPropagateSelectionDown()

setPropagateSelectionDown

public void setPropagateSelectionDown(boolean _propagateSelectionDown)

getEventNames

public Collection<String> getEventNames()
Specified by:
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getEventNames in class javax.faces.component.UIComponentBase

queueEvent

public void queueEvent(javax.faces.event.FacesEvent event)
Overrides:
queueEvent in class UITree

processDecodes

public void processDecodes(javax.faces.context.FacesContext context)
Overrides:
processDecodes in class UITree

processUpdates

public void processUpdates(javax.faces.context.FacesContext context)
Overrides:
processUpdates in class UITree

getLocalSelectedNodes

public Object getLocalSelectedNodes()

getSelectedRowKeys

public List<String> getSelectedRowKeys()

getSelectedRowKeysAsString

public String getSelectedRowKeysAsString()

findColumn

public Column findColumn(String clientId)

hasFooterColumn

public boolean hasFooterColumn()

isResizeRequest

public boolean isResizeRequest(javax.faces.context.FacesContext context)

getColumnsCount

public int getColumnsCount()

getScrollState

public String getScrollState()

getFacesContext

protected javax.faces.context.FacesContext getFacesContext()
Overrides:
getFacesContext in class javax.faces.component.UIComponentBase

resolveWidgetVar

public String resolveWidgetVar()
Specified by:
resolveWidgetVar in interface Widget

handleAttribute

public void handleAttribute(String name,
                            Object value)


Copyright © 2013. All Rights Reserved.