Package de.cuioss.test.jsf.mocks
Class CuiMockUIViewRoot
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIViewRoot
-
- de.cuioss.test.jsf.mocks.CuiMockUIViewRoot
-
- All Implemented Interfaces:
EventListener,PartialStateHolder,StateHolder,TransientStateHolder,UniqueIdVendor,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder
public class CuiMockUIViewRoot extends UIViewRoot
Mock variant ofUIViewRootproviding a heloer for adding aUIComponentat runtime- Author:
- Oliver Wolff
-
-
Field Summary
-
Fields inherited from class javax.faces.component.UIViewRoot
COMPONENT_FAMILY, COMPONENT_TYPE, METADATA_FACET_NAME, UNIQUE_ID_PREFIX, VIEW_PARAMETERS_KEY, VIEWROOT_PHASE_LISTENER_QUEUES_EXCEPTIONS_PARAM_NAME
-
Fields inherited from class javax.faces.component.UIComponent
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
-
-
Constructor Summary
Constructors Constructor Description CuiMockUIViewRoot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUiComponent(String expr, UIComponent component)UIComponentfindComponent(String expr)-
Methods inherited from class javax.faces.component.UIViewRoot
addComponentResource, addComponentResource, addPhaseListener, broadcastEvents, createUniqueId, createUniqueId, encodeBegin, encodeChildren, encodeEnd, getAfterPhaseListener, getAttributes, getBeforePhaseListener, getComponentResources, getComponentResources, getFamily, getLocale, getPhaseListeners, getRenderKitId, getRendersChildren, getViewId, getViewListenersForEventClass, getViewMap, getViewMap, isInView, processApplication, processDecodes, processRestoreState, processUpdates, processValidators, queueEvent, removeComponentResource, removeComponentResource, removePhaseListener, resetValues, restoreState, restoreViewScopeState, saveState, setAfterPhaseListener, setBeforePhaseListener, setId, setInView, setLocale, setRendered, setRenderKitId, setViewId, subscribeToViewEvent, unsubscribeFromViewEvent
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeAll, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding, visitTree
-
Methods inherited from class javax.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setValueExpression, subscribeToEvent, unsubscribeFromEvent
-
-
-
-
Constructor Detail
-
CuiMockUIViewRoot
public CuiMockUIViewRoot()
-
-
Method Detail
-
addUiComponent
public void addUiComponent(String expr, UIComponent component)
- Parameters:
expr- must not be nullcomponent- must not be null
-
findComponent
public UIComponent findComponent(String expr)
- Overrides:
findComponentin classUIComponentBase
-
-