public abstract class AbstractCollapsibleSubTable extends UIDataTableBase implements Column, Expandable, EventsRowProps, RowsProps, StyleProps, SequenceProps, IterationProps, TableStyleProps
The <rich:collapsibleSubTable> component acts as a child element to a <rich:dataTable> component. The <rich:collapsibleSubTable> component iterates through the child collections in the currently iterated object to create master-detail tables.
UIDataAdaptor.ComponentVisitor
Modifier and Type | Field and Description |
---|---|
static int |
COLLAPSED_STATE |
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static int |
EXPANDED_STATE |
static String |
MODE_AJAX |
static String |
MODE_CLIENT |
static String |
MODE_SERVER |
BODY, FOOTER, FOOTER_FACET_NAME, HEADER, HEADER_FACET_NAME, NODATA_FACET_NAME
decodeVisitor, updateVisitor, validateVisitor
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
META_COMPONENT_SEPARATOR_CHAR
Constructor and Description |
---|
AbstractCollapsibleSubTable() |
Modifier and Type | Method and Description |
---|---|
void |
addCollapsibleSubTableToggleListener(CollapsibleSubTableToggleListener listener) |
void |
broadcast(javax.faces.event.FacesEvent event) |
CollapsibleSubTableToggleListener[] |
getCollapsibleSubTableToggleListener() |
abstract String |
getExpandMode()
Specifies what mode will be used to expand the sub table: client (default), ajax, server, none (can't be expanded)
|
Object |
getIterationState()
Get component state for a current iteration.
|
String |
getSortExpression() |
String |
getSortingAndFilteringRenderTargetId(javax.faces.context.FacesContext facesContext) |
boolean |
isBreakBefore() |
boolean |
isExpanded()
Determines the state of sub table: true (expanded), false (collapsed)
|
void |
removeCollapsibleSubTableToggleListener(CollapsibleSubTableToggleListener listener) |
void |
setBreakBefore(boolean newBreakBefore) |
void |
setExpanded(boolean expanded) |
void |
setIterationState(Object stateObject)
Set component state for the next iteration.
|
void |
setSortExpression(String sortExpression) |
addFilteringListener, addSortingListener, columns, createExtendedDataModel, dataChildren, encodeMetaComponent, fixedChildren, getFilteringListeners, getFilterVar, getFooter, getHeader, getNoData, getNoDataLabel, getRendersChildren, getRowClass, getSortingListeners, getSortMode, getSortPriority, getSupportedMetaComponents, hasRowChildren, isColumnFacetPresent, queueEvent, removeFilteringListener, removeSortingListener, resolveClientId, restoreChildState, substituteUnresolvedClientId, visitDataChildren, visitFixedChildren, walk
captureOrigValue, createComponentState, createFacesModel, getActualFirst, getActualRows, getFirst, getIterationStatusVar, getRelativeClientId, getRowIndex, getRowKeyConverter, getRows, getValue, invokeOnRow, preEncodeBegin, restoreOrigValue, setFirst, setIterationStatusVar, setRows, setupVariable, setValue, setValueBinding, setValueExpression, updateState, updateState
allFixedChildren, clearExtendedDataModel, clearInitialState, createUniqueId, doUpdate, extractKeySegment, getComponentState, getContainerClientId, getContainerClientId, getExtendedDataModel, getFamily, getLocalComponentState, getRowCount, getRowData, getRowKey, getRowKeyVar, getStateVar, getVar, getVariablesMap, invokeOnComponent, isKeepSaved, isListenerForSource, isRowAvailable, iterate, keepSaved, markInitialState, matchesBaseId, preDecode, preUpdate, preValidate, processDecodes, processDecodesChildren, processEvent, processEvent, processUpdates, processUpdatesChildren, processValidatesChildren, processValidators, resetChildState, resetDataModel, restoreChildState, restoreState, saveChildState, saveChildState, saveState, setExtendedDataModel, setId, setKeepSaved, setRowKey, setRowKey, setRowKeyConverter, setRowKeyVar, setStateVar, setVar, visitDataChildrenMetaComponents, visitTree, walk, wrapEvent
addClientBehavior, addFacesListener, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient
getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOnrowclick, getOnrowdblclick, getOnrowkeydown, getOnrowkeypress, getOnrowkeyup, getOnrowmousedown, getOnrowmousemove, getOnrowmouseout, getOnrowmouseover, getOnrowmouseup
getStyle
getRowKeyConverter
getFirst, getIterationStatusVar, getRowKeyVar, getStateVar, getValue, getVar, isKeepSaved
getCellClass, getColumnFooterCellClass, getColumnFooterClass, getColumnHeaderCellClass, getColumnHeaderClass, getColumnHeaderFirstClass, getFirstColumnFooterClass, getFirstRowClass, getFooterCellClass, getFooterFirstClass, getHeaderCellClass, getHeaderFirstClass
getFooterClass, getHeaderClass
getColumnClasses, getRowClasses
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String MODE_AJAX
public static final String MODE_SERVER
public static final String MODE_CLIENT
public static final int EXPANDED_STATE
public static final int COLLAPSED_STATE
public boolean isExpanded()
isExpanded
in interface Expandable
public void setExpanded(boolean expanded)
setExpanded
in interface Expandable
public abstract String getExpandMode()
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
broadcast
in class UIDataAdaptor
javax.faces.event.AbortProcessingException
public boolean isBreakBefore()
public void setBreakBefore(boolean newBreakBefore)
public String getSortExpression()
public void setSortExpression(String sortExpression)
public void addCollapsibleSubTableToggleListener(CollapsibleSubTableToggleListener listener)
addCollapsibleSubTableToggleListener
in interface Expandable
public void removeCollapsibleSubTableToggleListener(CollapsibleSubTableToggleListener listener)
removeCollapsibleSubTableToggleListener
in interface Expandable
public CollapsibleSubTableToggleListener[] getCollapsibleSubTableToggleListener()
getCollapsibleSubTableToggleListener
in interface Expandable
public void setIterationState(Object stateObject)
IterationStateHolder
null
value. In the second case component should reset its state to the initial.setIterationState
in interface IterationStateHolder
setIterationState
in class UIDataAdaptor
stateObject
- request-scope component state or null
. Details are subject for a component implementationpublic Object getIterationState()
IterationStateHolder
getIterationState
in interface IterationStateHolder
getIterationState
in class UIDataAdaptor
public String getSortingAndFilteringRenderTargetId(javax.faces.context.FacesContext facesContext)
getSortingAndFilteringRenderTargetId
in class UIDataTableBase
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.