Class AbstractUIData
java.lang.Object
org.apache.myfaces.tobago.internal.component.AbstractUIData
- All Implemented Interfaces:
EventListener, Visual
- Direct Known Subclasses:
AbstractUISheet, AbstractUITree
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringDeprecated.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final charstatic final Stringstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.The marked concept has been replaced by "selected".static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientBehavior(String arg0, jakarta.faces.component.behavior.ClientBehavior arg1) protected voidaddFacesListener(jakarta.faces.event.FacesListener arg0) voidbroadcast(jakarta.faces.event.FacesEvent arg0) voidprotected voidcreateTreeDataModel(Object value, boolean showRoot) Creates the TreeDataModel which should be used.createUniqueId(jakarta.faces.context.FacesContext arg0, String arg1) voiddecode(jakarta.faces.context.FacesContext arg0) voidencodeAll(jakarta.faces.context.FacesContext arg0) voidencodeBegin(jakarta.faces.context.FacesContext context) voidencodeChildren(jakarta.faces.context.FacesContext arg0) voidencodeEnd(jakarta.faces.context.FacesContext arg0) jakarta.faces.component.UIComponentfindComponent(String searchId) intList<jakarta.faces.component.UIComponent> getClientId(jakarta.faces.context.FacesContext arg0) static 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) protected jakarta.faces.model.DataModelabstract ExpandedStateprotected jakarta.faces.context.FacesContextprotected jakarta.faces.event.FacesListener[]getFacesListeners(Class arg0) jakarta.faces.component.UIComponentintIterator<jakarta.faces.component.UIComponent> intgetFirst()jakarta.faces.component.UIComponentjakarta.faces.component.UIComponentgetId()List<jakarta.faces.event.SystemEventListener> getListenersForEventClass(Class<? extends jakarta.faces.event.SystemEvent> arg0) jakarta.faces.component.UIComponentjakarta.faces.component.UIComponentgetPassThroughAttributes(boolean arg0) getPath()protected jakarta.faces.render.RenderergetRenderer(jakarta.faces.context.FacesContext arg0) booleanintintintgetRows()abstract SelectableDeprecated, for removal: This API element is subject to removal in a future version.Please usegetSelectable()abstract SelectedStateprotected 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()booleanbooleaninvokeOnComponent(jakarta.faces.context.FacesContext facesContext, String clientId, jakarta.faces.component.ContextCallback callback) static booleanisCompositeComponent(jakarta.faces.component.UIComponent arg0) booleanisFolder()booleanisInView()booleanbooleanThe value describes, if the UIData renderer creates container elements to hold the row information.booleanbooleanbooleanbooleanabstract booleanbooleanbooleanbooleanprotected booleanisVisitable(jakarta.faces.component.visit.VisitContext arg0) voidvoidpopComponentFromEL(jakarta.faces.context.FacesContext arg0) voidprocessDecodes(jakarta.faces.context.FacesContext arg0) voidprocessEvent(jakarta.faces.event.ComponentSystemEvent arg0) voidprocessRestoreState(jakarta.faces.context.FacesContext arg0, Object arg1) processSaveState(jakarta.faces.context.FacesContext arg0) voidprocessUpdates(jakarta.faces.context.FacesContext arg0) voidprocessValidators(jakarta.faces.context.FacesContext arg0) voidpushComponentToEL(jakarta.faces.context.FacesContext arg0, jakarta.faces.component.UIComponent arg1) voidqueueEvent(jakarta.faces.event.FacesEvent arg0) protected voidremoveFacesListener(jakarta.faces.event.FacesListener arg0) static ObjectrestoreAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) voidrestoreState(jakarta.faces.context.FacesContext arg0, Object arg1) voidrestoreTransientState(jakarta.faces.context.FacesContext arg0, Object arg1) static ObjectsaveAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) saveState(jakarta.faces.context.FacesContext arg0) 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) voidvoidsetInView(boolean arg0) voidsetParent(jakarta.faces.component.UIComponent arg0) voidsetRendered(boolean arg0) voidsetRendererType(String arg0) voidsetRowIndex(int arg0) voidsetRows(int arg0) voidsetRowStatePreserved(boolean arg0) voidsetTransient(boolean arg0) voidvoidsetValueExpression(String arg0, jakarta.el.ValueExpression arg1) voidstripRowIndex(String initialSearchId) 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 arg0, jakarta.faces.component.visit.VisitCallback arg1) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Visual
getCustomClass, getMarkup, getRendererType, isPlain, setCustomClass, setMarkup
-
Field Details
-
SUFFIX_MARKED
Deprecated, for removal: This API element is subject to removal in a future version.The marked concept has been replaced by "selected".- See Also:
-
SUFFIX_SELECTED
- See Also:
-
SUFFIX_EXPANDED
- See Also:
-
COMPONENT_FAMILY
- See Also:
-
COMPONENT_TYPE
- 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
-
AbstractUIData
public AbstractUIData()
-
-
Method Details
-
isTreeModel
public boolean isTreeModel() -
getTreeDataModel
-
getDataModel
protected jakarta.faces.model.DataModel getDataModel() -
getSelectableAsEnum
Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSelectable() -
getSelectable
-
createTreeDataModel
Creates the TreeDataModel which should be used. Override this method to use a custom model for an unsupported tree model. (Currently Tobago supportsTreeNodeout of the box.- Parameters:
value- The reference to the data model (comes from the value attribute of theUIData)showRoot- comes from the showRoot attribute.
-
encodeBegin
- Throws:
IOException
-
getExpandedState
-
getSelectedState
-
isRowVisible
public boolean isRowVisible() -
getRowClientId
-
getRowParentClientId
-
isShowRoot
public abstract boolean isShowRoot() -
isShowRootJunction
public boolean isShowRootJunction() -
isRowsUnlimited
public boolean isRowsUnlimited()- Returns:
- Is the (maximum) number of rows to display set to zero?
-
isRendersRowContainer
public boolean isRendersRowContainer()The 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. -
findComponent
-
stripRowIndex
-
invokeOnComponent
public boolean invokeOnComponent(jakarta.faces.context.FacesContext facesContext, String clientId, jakarta.faces.component.ContextCallback callback) throws jakarta.faces.FacesException - Throws:
jakarta.faces.FacesException
-
getPath
- Returns:
- The TreePath of the current row index.
-
isFolder
public boolean isFolder()- Returns:
- Is the current row index representing a folder.
-
getRowIndicesOfChildren
-
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() -
restoreState
-
saveState
-
setValueExpression
-
getContainerClientId
-
queueEvent
public void queueEvent(jakarta.faces.event.FacesEvent arg0) -
broadcast
public void broadcast(jakarta.faces.event.FacesEvent arg0) throws jakarta.faces.event.AbortProcessingException - Throws:
jakarta.faces.event.AbortProcessingException
-
createUniqueId
-
encodeEnd
- Throws:
IOException
-
processDecodes
public void processDecodes(jakarta.faces.context.FacesContext arg0) -
processValidators
public void processValidators(jakarta.faces.context.FacesContext arg0) -
processUpdates
public void processUpdates(jakarta.faces.context.FacesContext arg0) -
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
-
visitTree
public boolean visitTree(jakarta.faces.component.visit.VisitContext arg0, jakarta.faces.component.visit.VisitCallback arg1) -
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) -
encodeAll
- Throws:
IOException
-
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
-
processEvent
public void processEvent(jakarta.faces.event.ComponentSystemEvent arg0) throws jakarta.faces.event.AbortProcessingException - Throws:
jakarta.faces.event.AbortProcessingException
-
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)
-