Class AbstractUISheet
java.lang.Object
org.apache.myfaces.tobago.internal.component.AbstractUIData
org.apache.myfaces.tobago.internal.component.AbstractUISheet
- All Implemented Interfaces:
EventListener, Visual, SheetStateChangeSource, SortActionSource
- Direct Known Subclasses:
UISheet
public abstract class AbstractUISheet
extends AbstractUIData
implements SheetStateChangeSource, SortActionSource, Visual
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringDeprecated.static final Stringstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final charstatic final Stringstatic final StringFields inherited from class AbstractUIData
SUFFIX_EXPANDED, SUFFIX_MARKED, SUFFIX_SELECTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientBehavior(String arg0, jakarta.faces.component.behavior.ClientBehavior arg1) voidaddClientBehavior(String arg0, jakarta.faces.component.behavior.ClientBehavior arg1) protected voidaddFacesListener(jakarta.faces.event.FacesListener arg0) voidvoidbroadcast(jakarta.faces.event.FacesEvent facesEvent) voidjakarta.faces.component.behavior.AjaxBehaviorcreateUniqueId(jakarta.faces.context.FacesContext arg0, String arg1) voiddecode(jakarta.faces.context.FacesContext arg0) voidencodeAll(jakarta.faces.context.FacesContext facesContext) voidencodeBegin(jakarta.faces.context.FacesContext facesContext) voidencodeChildren(jakarta.faces.context.FacesContext arg0) voidencodeEnd(jakarta.faces.context.FacesContext arg0) intList<jakarta.faces.component.UIComponent> getClientId(jakarta.faces.context.FacesContext arg0) abstract Stringstatic jakarta.faces.component.UIComponentgetCompositeComponentParent(jakarta.faces.component.UIComponent arg0) getContainerClientId(jakarta.faces.context.FacesContext arg0) static jakarta.faces.component.UIComponentgetCurrentComponent(jakarta.faces.context.FacesContext arg0) static jakarta.faces.component.UIComponentgetCurrentCompositeComponent(jakarta.faces.context.FacesContext arg0) intabstract IntegerDeprecated, for removal: This API element is subject to removal in a future version.protected jakarta.faces.context.FacesContextprotected jakarta.faces.event.FacesListener[]getFacesListeners(Class arg0) jakarta.faces.component.UIComponentintIterator<jakarta.faces.component.UIComponent> intgetFirst()intDetermines the beginning of the last page in the model.jakarta.faces.component.UIComponentjakarta.faces.component.UIComponentgetId()intThe rowIndex of the last row on the current page plus one (because of zero based iterating).intintabstract IntegerbooleanList<jakarta.faces.event.SystemEventListener> getListenersForEventClass(Class<? extends jakarta.faces.event.SystemEvent> arg0) abstract Integerjakarta.faces.component.UIComponentintgetPages()The number of pages to render.abstract PaginatorModejakarta.faces.component.UIComponentgetPassThroughAttributes(boolean arg0) List<jakarta.faces.component.UIComponent> getRenderedChildrenOf(jakarta.faces.component.UIColumn column) protected jakarta.faces.render.RenderergetRenderer(jakarta.faces.context.FacesContext arg0) booleanintintintgetRows()getSheetState(jakarta.faces.context.FacesContext facesContext) abstract ShowPositionDeprecated, for removal: This API element is subject to removal in a future version.abstract ShowPositionDeprecated, for removal: This API element is subject to removal in a future version.abstract ShowPositionDeprecated, for removal: This API element is subject to removal in a future version.getState()protected jakarta.faces.component.StateHelperprotected jakarta.faces.component.StateHelpergetStateHelper(boolean arg0) jakarta.faces.component.TransientStateHelperjakarta.faces.component.TransientStateHelpergetTransientStateHelper(boolean arg0) getValue()jakarta.el.ValueExpressiongetValueExpression(String arg0) getVar()booleanvoidinit(jakarta.faces.context.FacesContext facesContext) booleanbooleanbooleanisAtEnd()booleanstatic booleanisCompositeComponent(jakarta.faces.component.UIComponent arg0) booleanisInView()abstract booleanisLazy()booleanisLazyUpdate(jakarta.faces.context.FacesContext facesContext) booleanabstract booleanbooleanbooleanThe value describes, if the UIData renderer creates container elements to hold the row information.booleanbooleanabstract booleanDeprecated, for removal: This API element is subject to removal in a future version.abstract booleanabstract booleanDeprecated, for removal: This API element is subject to removal in a future version.abstract booleanbooleanprotected booleanisVisitable(jakarta.faces.component.visit.VisitContext arg0) voidbooleanvoidperformPaging(PageActionEvent pageEvent) voidpopComponentFromEL(jakarta.faces.context.FacesContext arg0) voidprocessDecodes(jakarta.faces.context.FacesContext context) voidprocessEvent(jakarta.faces.event.ComponentSystemEvent event) voidprocessRestoreState(jakarta.faces.context.FacesContext arg0, Object arg1) processSaveState(jakarta.faces.context.FacesContext arg0) voidprocessUpdates(jakarta.faces.context.FacesContext context) voidprocessValidators(jakarta.faces.context.FacesContext context) voidpushComponentToEL(jakarta.faces.context.FacesContext arg0, jakarta.faces.component.UIComponent arg1) voidqueueEvent(jakarta.faces.event.FacesEvent facesEvent) protected voidremoveFacesListener(jakarta.faces.event.FacesListener arg0) voidstatic ObjectrestoreAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) voidrestoreState(jakarta.faces.context.FacesContext context, Object savedState) voidrestoreTransientState(jakarta.faces.context.FacesContext arg0, Object arg1) static ObjectsaveAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) saveState(jakarta.faces.context.FacesContext context) saveTransientState(jakarta.faces.context.FacesContext arg0) protected voidsetDataModel(jakarta.faces.model.DataModel arg0) voidsetFirst(int arg0) voidsetFooter(jakarta.faces.component.UIComponent arg0) voidsetHeader(jakarta.faces.component.UIComponent arg0) voidsetHeaderGrid(Grid headerGrid) voidvoidsetInView(boolean arg0) voidsetLazyFirstRow(int lazyFirstRow) voidsetLazyLastRow(int lazyLastRow) voidsetLazyUpdate(boolean lazyUpdate) voidsetParent(jakarta.faces.component.UIComponent arg0) voidsetRendered(boolean arg0) voidsetRendererType(String arg0) voidsetRowIndex(int arg0) voidsetRows(int arg0) voidsetRowStatePreserved(boolean arg0) voidsetState(SheetState state) voidsetTransient(boolean arg0) voidvoidsetValueExpression(String arg0, jakarta.el.ValueExpression arg1) voidprotected voidsort(jakarta.faces.context.FacesContext facesContext, SortActionEvent event) voidsubscribeToEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) voidunsubscribeFromEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) booleanvisitTree(jakarta.faces.component.visit.VisitContext context, jakarta.faces.component.visit.VisitCallback callback) Methods inherited from class AbstractUIData
createTreeDataModel, findComponent, getDataModel, getPath, getRowClientId, getRowIndicesOfChildren, getRowParentClientId, getSelectable, getSelectableAsEnum, getTreeDataModel, invokeOnComponent, isFolder, isRowsUnlimited, isRowVisible, isShowRoot, isShowRootJunction, isTreeModel, stripRowIndexMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SheetStateChangeSource
getStateChangeListenerExpression, setStateChangeListenerExpressionMethods inherited from interface SortActionSource
getSortActionListenerExpression, setSortActionListenerExpressionMethods inherited from interface Visual
getCustomClass, getMarkup, getRendererType, isPlain, setCustomClass, setMarkup
-
Field Details
-
COMPONENT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
SORTER_ID
- See Also:
-
NOT_SORTABLE_COL_MESSAGE_ID
- See Also:
-
NOT_SORTABLE_MESSAGE_ID
- See Also:
-
COMPONENT_FAMILY
- See Also:
-
SEPARATOR_CHAR
static final char SEPARATOR_CHAR- See Also:
-
BEANINFO_KEY
- See Also:
-
COMPOSITE_COMPONENT_TYPE_KEY
- See Also:
-
COMPOSITE_FACET_NAME
- See Also:
-
FACETS_KEY
- See Also:
-
VIEW_LOCATION_KEY
- See Also:
-
ATTRS_WITH_DECLARED_DEFAULT_VALUES
- See Also:
-
bindings
Deprecated.
-
-
Constructor Details
-
AbstractUISheet
public AbstractUISheet()
-
-
Method Details
-
encodeAll
- Throws:
IOException
-
encodeBegin
- Overrides:
encodeBeginin classAbstractUIData- Throws:
IOException
-
setState
-
getState
-
getSheetState
-
getColumns
-
processEvent
public void processEvent(jakarta.faces.event.ComponentSystemEvent event) throws jakarta.faces.event.AbortProcessingException - Throws:
jakarta.faces.event.AbortProcessingException
-
getColumnLayout
-
isAutoLayout
public boolean isAutoLayout() -
getLastRowIndexOfCurrentPage
public int getLastRowIndexOfCurrentPage()The rowIndex of the last row on the current page plus one (because of zero based iterating).- Throws:
IllegalArgumentException- If the number of rows in the model returned bygetRowCount()is -1 (undefined).
-
getCurrentPage
public int getCurrentPage()- Returns:
- returns the current page (based by 0).
-
getPages
public int getPages()The number of pages to render.- Throws:
IllegalArgumentException- If the number of rows in the model returned bygetRowCount()is -1 (undefined).
-
getRenderedChildrenOf
public List<jakarta.faces.component.UIComponent> getRenderedChildrenOf(jakarta.faces.component.UIColumn column) -
isAtBeginning
public boolean isAtBeginning()- Returns:
- Is the interval to display starting with the first row?
-
hasRowCount
public boolean hasRowCount()- Returns:
- Does the data model knows the number of rows?
-
isPagingVisible
public boolean isPagingVisible()- Returns:
- Should the paging controls be rendered? Either because of the need of paging or because the show is
enforced by
isShowPagingAlways()
-
needMoreThanOnePage
public boolean needMoreThanOnePage()- Returns:
- Is panging needed to display all rows? If the number of rows is unknown this method returns true.
-
isShowPagingAlways
public abstract boolean isShowPagingAlways() -
isAtEnd
public boolean isAtEnd() -
getFirstRowIndexOfLastPage
public int getFirstRowIndexOfLastPage()Determines the beginning of the last page in the model. If the number of rows to display on one page is unlimited, the value is 0 (there is only one page).- Returns:
- The index of the first row of the last paging page.
- Throws:
IllegalArgumentException- If the number of rows in the model returned bygetRowCount()is -1 (undefined).
-
processDecodes
public void processDecodes(jakarta.faces.context.FacesContext context) -
processValidators
public void processValidators(jakarta.faces.context.FacesContext context) -
processUpdates
public void processUpdates(jakarta.faces.context.FacesContext context) -
saveState
-
restoreState
-
getAllColumns
-
queueEvent
public void queueEvent(jakarta.faces.event.FacesEvent facesEvent) -
broadcast
public void broadcast(jakarta.faces.event.FacesEvent facesEvent) throws jakarta.faces.event.AbortProcessingException - Throws:
jakarta.faces.event.AbortProcessingException
-
visitTree
public boolean visitTree(jakarta.faces.component.visit.VisitContext context, jakarta.faces.component.visit.VisitCallback callback) -
isLazyUpdate
public boolean isLazyUpdate(jakarta.faces.context.FacesContext facesContext) -
init
public void init(jakarta.faces.context.FacesContext facesContext) -
sort
-
addStateChangeListener
- Specified by:
addStateChangeListenerin interfaceSheetStateChangeSource
-
getStateChangeListeners
- Specified by:
getStateChangeListenersin interfaceSheetStateChangeSource
-
removeStateChangeListener
- Specified by:
removeStateChangeListenerin interfaceSheetStateChangeSource
-
performPaging
-
getLazyUpdate
public boolean getLazyUpdate() -
setLazyUpdate
public void setLazyUpdate(boolean lazyUpdate) -
getLazyFirstRow
public int getLazyFirstRow() -
setLazyFirstRow
public void setLazyFirstRow(int lazyFirstRow) -
getLazyLastRow
public int getLazyLastRow() -
setLazyLastRow
public void setLazyLastRow(int lazyLastRow) -
createReloadBehavior
-
getColumnSelector
-
getColumnPanel
-
isRendersRowContainer
public boolean isRendersRowContainer()Description copied from class:AbstractUIDataThe value describes, if the UIData renderer creates container elements to hold the row information. This information is important for the TreeNodeRenderer to set the visible state in the output or not. Typically the Sheet returns true and a Tree returns false, because the sheet renders the HTML TR tags, the the sheet also is responsible for the visible state.- Overrides:
isRendersRowContainerin classAbstractUIData
-
isShowHeader
public abstract boolean isShowHeader() -
getExpandedState
- Specified by:
getExpandedStatein classAbstractUIData
-
getSelectedState
- Specified by:
getSelectedStatein classAbstractUIData
-
getHeaderGrid
-
setHeaderGrid
-
isShowDirectLinksArrows
@Deprecated(since="5.15.0, 6.7.0", forRemoval=true) public abstract boolean isShowDirectLinksArrows()Deprecated, for removal: This API element is subject to removal in a future version. -
isShowPageRangeArrows
Deprecated, for removal: This API element is subject to removal in a future version. -
getShowRowRange
Deprecated, for removal: This API element is subject to removal in a future version. -
getShowPageRange
Deprecated, for removal: This API element is subject to removal in a future version. -
getShowDirectLinks
@Deprecated(since="5.15.0, 6.7.0", forRemoval=true) public abstract ShowPosition getShowDirectLinks()Deprecated, for removal: This API element is subject to removal in a future version. -
getDirectLinkCount
Deprecated, for removal: This API element is subject to removal in a future version. -
isLazy
public abstract boolean isLazy() -
getMaxSortColumns
-
getLazyRows
-
getPaginator
-
isReadonlyRows
public abstract boolean isReadonlyRows() -
addClientBehavior
-
getClientBehaviors
-
getDefaultEventName
String getDefaultEventName() -
getEventNames
Collection<String> getEventNames() -
setHeader
public void setHeader(jakarta.faces.component.UIComponent arg0) -
getHeader
public jakarta.faces.component.UIComponent getHeader() -
isRowAvailable
public boolean isRowAvailable() -
getRowCount
public int getRowCount() -
getRowData
-
getRowIndex
public int getRowIndex() -
setRowIndex
public void setRowIndex(int arg0) -
markInitialState
public void markInitialState() -
setValueExpression
-
getContainerClientId
-
createUniqueId
-
encodeEnd
- Throws:
IOException
-
setDataModel
protected void setDataModel(jakarta.faces.model.DataModel arg0) -
getValue
-
setValue
-
getFirst
public int getFirst() -
setFirst
public void setFirst(int arg0) -
getRows
public int getRows() -
setRows
public void setRows(int arg0) -
getVar
-
setVar
-
isRowStatePreserved
public boolean isRowStatePreserved() -
setRowStatePreserved
public void setRowStatePreserved(boolean arg0) -
getFamily
-
setId
-
setParent
public void setParent(jakarta.faces.component.UIComponent arg0) -
addClientBehavior
-
clearInitialState
public void clearInitialState() -
decode
public void decode(jakarta.faces.context.FacesContext arg0) -
encodeChildren
- Throws:
IOException
-
getAttributes
-
getPassThroughAttributes
-
getChildCount
public int getChildCount() -
getChildren
-
getClientBehaviors
-
getClientId
-
getDefaultEventName
-
getEventNames
-
getFacet
-
getFacetCount
public int getFacetCount() -
getFacets
-
getFacetsAndChildren
-
getId
-
getParent
public jakarta.faces.component.UIComponent getParent() -
getRendererType
-
getRendersChildren
public boolean getRendersChildren() -
isRendered
public boolean isRendered() -
isTransient
public boolean isTransient() -
addFacesListener
protected void addFacesListener(jakarta.faces.event.FacesListener arg0) -
getFacesContext
protected jakarta.faces.context.FacesContext getFacesContext() -
getFacesListeners
-
getRenderer
protected jakarta.faces.render.Renderer getRenderer(jakarta.faces.context.FacesContext arg0) -
removeFacesListener
protected void removeFacesListener(jakarta.faces.event.FacesListener arg0) -
processSaveState
-
processRestoreState
-
setTransient
public void setTransient(boolean arg0) -
saveAttachedState
-
restoreAttachedState
public static Object restoreAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) throws IllegalStateException - Throws:
IllegalStateException
-
setRendered
public void setRendered(boolean arg0) -
setRendererType
-
getPassThroughAttributes
-
initialStateMarked
public boolean initialStateMarked() -
isCompositeComponent
public static boolean isCompositeComponent(jakarta.faces.component.UIComponent arg0) -
isInView
public boolean isInView() -
isVisitable
protected boolean isVisitable(jakarta.faces.component.visit.VisitContext arg0) -
getClientId
-
getCompositeComponentParent
public static jakarta.faces.component.UIComponent getCompositeComponentParent(jakarta.faces.component.UIComponent arg0) -
getCurrentComponent
public static jakarta.faces.component.UIComponent getCurrentComponent(jakarta.faces.context.FacesContext arg0) -
getCurrentCompositeComponent
public static jakarta.faces.component.UIComponent getCurrentCompositeComponent(jakarta.faces.context.FacesContext arg0) -
getListenersForEventClass
-
getNamingContainer
public jakarta.faces.component.UIComponent getNamingContainer() -
setInView
public void setInView(boolean arg0) -
getResourceBundleMap
-
getValueExpression
-
subscribeToEvent
public void subscribeToEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) -
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) -
getStateHelper
protected jakarta.faces.component.StateHelper getStateHelper() -
getStateHelper
protected jakarta.faces.component.StateHelper getStateHelper(boolean arg0) -
getTransientStateHelper
public jakarta.faces.component.TransientStateHelper getTransientStateHelper() -
getTransientStateHelper
public jakarta.faces.component.TransientStateHelper getTransientStateHelper(boolean arg0) -
restoreTransientState
-
saveTransientState
-
popComponentFromEL
public void popComponentFromEL(jakarta.faces.context.FacesContext arg0) -
pushComponentToEL
public void pushComponentToEL(jakarta.faces.context.FacesContext arg0, jakarta.faces.component.UIComponent arg1)
-