public abstract class AbstractCompositeViewControl extends BaseHideablePanel implements PhaseListener, NamingContainer, IPostPageComponentPhaseListener, IScopedVariableComponent, IDynamicComponent
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractCompositeViewControl.BindingExpressionReWriter |
BaseHideablePanel.PropertyKeys
Modifier and Type | Field and Description |
---|---|
protected Map<Serializable,Object> |
_deferredPropertiesMap |
protected static String |
ATTR__VIEW_LOADED |
protected Integer |
fInstanceNumber |
protected String |
fPrototypedPageBeanName |
protected String |
fViewResourcePath |
static String |
PORTLET_VIEW_ID |
ATTR_CENTER, ATTR_DEFAULT_COMMAND, ATTR_DEFAULT_FOCUS, ATTR_DISABLE_WHEN_HIDDEN, ATTR_HIDE_EFFECT, ATTR_HIDE_EFFECT_OPTIONS, ATTR_OPACITY, ATTR_PROGRESS_DELAY, ATTR_PROGRESS_FLASH_ON_COMPLETE, ATTR_PROGRESS_MSG, ATTR_PROGRESS_USE_HIDE_SHOW_EFFECT, ATTR_SHOW_EFFECT, ATTR_SHOW_EFFECT_OPTIONS, m_savedSuppressed, m_savedVisible, TYPE
COMPONENT_FAMILY, COMPONENT_TYPE
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
SEPARATOR_CHAR
Modifier | Constructor and Description |
---|---|
protected |
AbstractCompositeViewControl(String viewResourcePath,
String prototypedPageBeanName) |
Modifier and Type | Method and Description |
---|---|
void |
afterPhase(PhaseEvent event) |
protected void |
applyDeferredProperties()
Apply any changes in the deferred properties map to the underlying controls.
|
protected void |
associateControlWithBean() |
protected void |
associateControlWithBean(Object pageBean) |
void |
beforePhase(PhaseEvent event) |
void |
clearPageBean() |
protected abstract Serializable |
createPageBean() |
void |
encodeBegin(FacesContext context) |
void |
encodeChildren(FacesContext context) |
void |
encodeEnd(FacesContext context) |
void |
ensureEmbeddedViewIsLoaded()
Loads the embedded view as as children of this control, if the view has not
already been loaded.
|
protected Map<Serializable,Object> |
getDeferredPropertiesMap() |
protected Object |
getInternalPageBean() |
protected Object |
getInternalPageBean(boolean createIfMissing) |
protected String |
getInternalPageBeanName()
Deprecated.
|
protected Set<String> |
getPageNamesToReplaceInBindingExpressions()
Return the names of the page beans to replace when the binding
expressions in the .view file are re-written.
|
PhaseId |
getPhaseId() |
PhaseId |
getPostPagePhaseId() |
Object |
getScopedVariable()
Gets the scoped variable object
|
String |
getScopedVariableName()
Get the name of the scoped variable
|
protected void |
importChildrenFromView(UIViewRoot view)
Imports the children from the view to this control
|
protected void |
loadView(String viewResourcePath) |
void |
populateInitialComponents()
Perform the initial programmatic manipulation of the component
tree.
|
void |
postPageAfterPhase(PhaseEvent event) |
void |
postPageBeforePhase(PhaseEvent event) |
void |
processDecodes(FacesContext context) |
void |
processEvent(ComponentSystemEvent event) |
protected void |
processLoadView(String viewResourcePath) |
void |
processRestoreState(FacesContext context,
Object state) |
Object |
processSaveState(FacesContext context) |
void |
processUpdates(FacesContext context) |
void |
processValidators(FacesContext context) |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
boolean |
visitTree(VisitContext context,
VisitCallback callback) |
decode, findSuppressed, getRendersChildren, getSuppressInputs, getTableRowState, isAncestorOrSelf, isDisableWhenHidden, isLazy, isRefreshOnShow, isTwoPass, isVisible, setDisableWhenHidden, setLazy, setRefreshOnShow, setSuppressInputs, setTableRowState, setTwoPass, setVisible
addClientBehavior, addFacesListener, broadcast, clearInitialState, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
protected static final String ATTR__VIEW_LOADED
public static final String PORTLET_VIEW_ID
protected transient Map<Serializable,Object> _deferredPropertiesMap
protected String fPrototypedPageBeanName
protected String fViewResourcePath
protected Integer fInstanceNumber
protected Map<Serializable,Object> getDeferredPropertiesMap()
@Deprecated protected String getInternalPageBeanName()
protected Object getInternalPageBean()
protected Object getInternalPageBean(boolean createIfMissing)
protected Set<String> getPageNamesToReplaceInBindingExpressions()
protected abstract Serializable createPageBean()
public void clearPageBean()
protected void loadView(String viewResourcePath)
protected void processLoadView(String viewResourcePath)
protected void importChildrenFromView(UIViewRoot view)
view
- the imported viewloadView(String)
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
public void ensureEmbeddedViewIsLoaded()
public void beforePhase(PhaseEvent event)
beforePhase
in interface PhaseListener
public void afterPhase(PhaseEvent event)
afterPhase
in interface PhaseListener
public PhaseId getPhaseId()
getPhaseId
in interface PhaseListener
protected void associateControlWithBean()
protected void associateControlWithBean(Object pageBean)
public PhaseId getPostPagePhaseId()
getPostPagePhaseId
in interface IPostPageComponentPhaseListener
public void postPageBeforePhase(PhaseEvent event)
postPageBeforePhase
in interface IPostPageComponentPhaseListener
public void postPageAfterPhase(PhaseEvent event)
postPageAfterPhase
in interface IPostPageComponentPhaseListener
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class BaseHideablePanel
IOException
public void encodeChildren(FacesContext context) throws IOException
encodeChildren
in class BaseHideablePanel
IOException
public void encodeEnd(FacesContext context) throws IOException
encodeEnd
in class BaseHideablePanel
IOException
public void processDecodes(FacesContext context)
processDecodes
in class BaseHideablePanel
public void processRestoreState(FacesContext context, Object state)
processRestoreState
in class UIComponentBase
public Object processSaveState(FacesContext context)
processSaveState
in class UIComponentBase
public void processUpdates(FacesContext context)
processUpdates
in class BaseHideablePanel
public void processValidators(FacesContext context)
processValidators
in class BaseHideablePanel
public boolean visitTree(VisitContext context, VisitCallback callback)
visitTree
in class UIComponent
public String getScopedVariableName()
IScopedVariableComponent
getScopedVariableName
in interface IScopedVariableComponent
public Object getScopedVariable()
IScopedVariableComponent
getScopedVariable
in interface IScopedVariableComponent
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException
processEvent
in interface ComponentSystemEventListener
processEvent
in class UIComponent
AbortProcessingException
public void populateInitialComponents()
IDynamicComponent
populateInitialComponents
in interface IDynamicComponent
protected void applyDeferredProperties()