Package org.primefaces.component.api
Interface ColumnAware
-
- All Known Subinterfaces:
UITable<T>
- All Known Implementing Classes:
DataTable
,DataTableBase
,SubTable
,TreeTable
,TreeTableBase
public interface ColumnAware
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<UIColumn>
collectColumns()
default UIColumn
findColumn(String columnKey)
default UIColumn
findColumnInGroup(String columnKey, ColumnGroup group)
default void
forEachColumn(boolean unwrapDynamicColumns, boolean skipUnrendered, boolean skipColumnGroups, Predicate<UIColumn> callback)
default void
forEachColumn(Predicate<UIColumn> callback)
default boolean
forEachColumn(javax.faces.context.FacesContext context, javax.faces.component.UIComponent root, boolean unwrapDynamicColumns, boolean skipUnrendered, boolean skipColumnGroups, Predicate<UIColumn> callback)
NOTE: this is for internal usage only!default ColumnGroup
getColumnGroup(String type)
Map<String,ColumnMeta>
getColumnMeta()
List<UIColumn>
getColumns()
default int
getColumnsCount()
default int
getColumnsCount(boolean visibleOnly)
default int
getColumnsCountWithSpan()
default int
getColumnsCountWithSpan(boolean visibleOnly)
default int
getFrozenColumnsCount()
default String
getOrderedColumnKeys()
default void
invokeOnColumn(String columnKey, int rowIndex, Consumer<UIColumn> callback)
default void
invokeOnColumn(String columnKey, Consumer<UIColumn> callback)
default void
resetDynamicColumns()
void
setColumnMeta(Map<String,ColumnMeta> columnMeta)
void
setColumns(List<UIColumn> columns)
-
-
-
Method Detail
-
forEachColumn
default void forEachColumn(boolean unwrapDynamicColumns, boolean skipUnrendered, boolean skipColumnGroups, Predicate<UIColumn> callback)
-
forEachColumn
default boolean forEachColumn(javax.faces.context.FacesContext context, javax.faces.component.UIComponent root, boolean unwrapDynamicColumns, boolean skipUnrendered, boolean skipColumnGroups, Predicate<UIColumn> callback)
NOTE: this is for internal usage only!- Parameters:
context
- theFacesContext
root
- theUIComponent
where the search starts fromunwrapDynamicColumns
- if the callback should be called for each item of p:columns withDynamicColumn
, or just once withColumns
skipUnrendered
- If unrendered components should be skippedskipColumnGroups
- IfColumnGroup
components should be skippedcallback
- The callback, which will be invoked for each column. If it returns false, the algorithm will be cancelled- Returns:
- false when the algorithm was cancelled
-
invokeOnColumn
default void invokeOnColumn(String columnKey, int rowIndex, Consumer<UIColumn> callback)
-
getFrozenColumnsCount
default int getFrozenColumnsCount()
-
findColumnInGroup
default UIColumn findColumnInGroup(String columnKey, ColumnGroup group)
-
getColumnGroup
default ColumnGroup getColumnGroup(String type)
-
getColumnsCount
default int getColumnsCount()
-
getColumnsCount
default int getColumnsCount(boolean visibleOnly)
-
getColumnsCountWithSpan
default int getColumnsCountWithSpan()
-
getColumnsCountWithSpan
default int getColumnsCountWithSpan(boolean visibleOnly)
-
resetDynamicColumns
default void resetDynamicColumns()
-
getColumnMeta
Map<String,ColumnMeta> getColumnMeta()
-
setColumnMeta
void setColumnMeta(Map<String,ColumnMeta> columnMeta)
-
getOrderedColumnKeys
default String getOrderedColumnKeys()
-
-