Class AbstractUITree
- java.lang.Object
-
- jakarta.faces.component.UIComponent
-
- jakarta.faces.component.UIComponentBase
-
- jakarta.faces.component.UIData
-
- org.apache.myfaces.tobago.internal.component.AbstractUIData
-
- org.apache.myfaces.tobago.internal.component.AbstractUITree
-
- All Implemented Interfaces:
jakarta.faces.component.NamingContainer,jakarta.faces.component.PartialStateHolder,jakarta.faces.component.StateHolder,jakarta.faces.component.TransientStateHolder,jakarta.faces.component.UniqueIdVendor,jakarta.faces.event.ComponentSystemEventListener,jakarta.faces.event.FacesListener,jakarta.faces.event.SystemEventListenerHolder,EventListener,Visual
- Direct Known Subclasses:
AbstractUITreeListbox,UITree
public abstract class AbstractUITree extends AbstractUIData implements jakarta.faces.component.NamingContainer, Visual
-
-
Field Summary
Fields Modifier and Type Field Description static StringSUFFIX_PARENT-
Fields inherited from class org.apache.myfaces.tobago.internal.component.AbstractUIData
SUFFIX_EXPANDED, SUFFIX_MARKED, SUFFIX_SELECTED
-
-
Constructor Summary
Constructors Constructor Description AbstractUITree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseClientId(jakarta.faces.context.FacesContext facesContext)Workaround for mojarra: UIData.getClientId() returns the clientId + row index if an index is set.ExpandedStategetExpandedState()booleangetRendersChildren()SelectedStategetSelectedState()TreeStategetState()voidprocessDecodes(jakarta.faces.context.FacesContext facesContext)voidprocessUpdates(jakarta.faces.context.FacesContext facesContext)voidprocessValidators(jakarta.faces.context.FacesContext facesContext)voidrestoreState(jakarta.faces.context.FacesContext context, Object componentState)ObjectsaveState(jakarta.faces.context.FacesContext context)voidsetState(TreeState state)-
Methods inherited from class org.apache.myfaces.tobago.internal.component.AbstractUIData
createTreeDataModel, encodeBegin, findComponent, getDataModel, getPath, getRowClientId, getRowIndicesOfChildren, getRowParentClientId, getSelectable, getSelectableAsEnum, getTreeDataModel, invokeOnComponent, isFolder, isRendersRowContainer, isRowsUnlimited, isRowVisible, isShowRoot, isShowRootJunction, isTreeModel, stripRowIndex, visitTree
-
Methods inherited from class jakarta.faces.component.UIData
broadcast, createUniqueId, encodeEnd, getContainerClientId, getFamily, getFirst, getFooter, getHeader, getRowCount, getRowData, getRowIndex, getRows, getValue, getVar, isRowAvailable, isRowStatePreserved, markInitialState, queueEvent, setDataModel, setFirst, setFooter, setHeader, setRowIndex, setRows, setRowStatePreserved, setValue, setValueExpression, setVar
-
Methods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeAll, encodeChildren, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
-
Methods inherited from class jakarta.faces.component.UIComponent
getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.myfaces.tobago.component.Visual
getCustomClass, getMarkup, getRendererType, isPlain, setCustomClass, setMarkup
-
-
-
-
Field Detail
-
SUFFIX_PARENT
public static final String SUFFIX_PARENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseClientId
public String getBaseClientId(jakarta.faces.context.FacesContext facesContext)
Workaround for mojarra: UIData.getClientId() returns the clientId + row index if an index is set.- Returns:
- clientId without row index
-
processValidators
public void processValidators(jakarta.faces.context.FacesContext facesContext)
- Overrides:
processValidatorsin classjakarta.faces.component.UIData
-
processUpdates
public void processUpdates(jakarta.faces.context.FacesContext facesContext)
- Overrides:
processUpdatesin classjakarta.faces.component.UIData
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildrenin classjakarta.faces.component.UIComponentBase
-
processDecodes
public void processDecodes(jakarta.faces.context.FacesContext facesContext)
- Overrides:
processDecodesin classjakarta.faces.component.UIData
-
setState
public void setState(TreeState state)
-
getState
public TreeState getState()
-
getSelectedState
public SelectedState getSelectedState()
- Specified by:
getSelectedStatein classAbstractUIData
-
getExpandedState
public ExpandedState getExpandedState()
- Specified by:
getExpandedStatein classAbstractUIData
-
restoreState
public void restoreState(jakarta.faces.context.FacesContext context, Object componentState)- Specified by:
restoreStatein interfacejakarta.faces.component.StateHolder- Overrides:
restoreStatein classjakarta.faces.component.UIData
-
saveState
public Object saveState(jakarta.faces.context.FacesContext context)
- Specified by:
saveStatein interfacejakarta.faces.component.StateHolder- Overrides:
saveStatein classjakarta.faces.component.UIData
-
-