📄 uiviewroot.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_14) on Mon Jan 28 05:46:48 PST 2008 --><TITLE>UIViewRoot (Java EE 5)</TITLE><META NAME="keywords" CONTENT="javax.faces.component.UIViewRoot class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="UIViewRoot (Java EE 5)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/faces/component/UISelectOne.html" title="class in javax.faces.component"><B>PREV CLASS</B></A> <A HREF="../../../javax/faces/component/ValueHolder.html" title="interface in javax.faces.component"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/faces/component/UIViewRoot.html" target="_top"><B>FRAMES</B></A> <A HREF="UIViewRoot.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.faces.component</FONT><BR>Class UIViewRoot</H2><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../javax/faces/component/UIComponent.html" title="class in javax.faces.component">javax.faces.component.UIComponent</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../javax/faces/component/UIComponentBase.html" title="class in javax.faces.component">javax.faces.component.UIComponentBase</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>javax.faces.component.UIViewRoot</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../javax/faces/component/StateHolder.html" title="interface in javax.faces.component">StateHolder</A></DD></DL><HR><DL><DT><PRE>public class <B>UIViewRoot</B><DT>extends <A HREF="../../../javax/faces/component/UIComponentBase.html" title="class in javax.faces.component">UIComponentBase</A></DL></PRE><P><p><strong>UIViewRoot</strong> is the UIComponent that represents the root of the UIComponent tree. This component has no rendering, it just serves as the root of the component tree, and as a place to hang per-view <A HREF="../../../javax/faces/event/PhaseListener.html" title="interface in javax.faces.event"><CODE>PhaseListener</CODE></A>s.</p> <p/> <p>For each of the following lifecycle phase methods:</p> <p/> <ul> <p/> <li><p><A HREF="../../../javax/faces/component/UIViewRoot.html#processDecodes(javax.faces.context.FacesContext)"><CODE>processDecodes(javax.faces.context.FacesContext)</CODE></A> </p></li> <p/> <li><p><A HREF="../../../javax/faces/component/UIViewRoot.html#processValidators(javax.faces.context.FacesContext)"><CODE>processValidators(javax.faces.context.FacesContext)</CODE></A> </p></li> <p/> <li><p><A HREF="../../../javax/faces/component/UIViewRoot.html#processUpdates(javax.faces.context.FacesContext)"><CODE>processUpdates(javax.faces.context.FacesContext)</CODE></A> </p></li> <p/> <li><p><A HREF="../../../javax/faces/component/UIViewRoot.html#processApplication(javax.faces.context.FacesContext)"><CODE>processApplication(javax.faces.context.FacesContext)</CODE></A> </p></li> <p/> <li><p>RenderResponse, via <A HREF="../../../javax/faces/component/UIViewRoot.html#encodeBegin(javax.faces.context.FacesContext)"><CODE>encodeBegin(javax.faces.context.FacesContext)</CODE></A> and <A HREF="../../../javax/faces/component/UIViewRoot.html#encodeEnd(javax.faces.context.FacesContext)"><CODE>encodeEnd(javax.faces.context.FacesContext)</CODE></A> </p></li> <p/> </ul> <p/> <p>Take the following action regarding <code>PhaseListener</code>s.</p> <p/> <ul> <p/> <p>Initialize a state flag to <code>false</code>.</p> <p/> <p>If <A HREF="../../../javax/faces/component/UIViewRoot.html#getBeforePhaseListener()"><CODE>getBeforePhaseListener()</CODE></A> returns non-<code>null</code>, invoke the listener, passing in the correct corresponding <A HREF="../../../javax/faces/event/PhaseId.html" title="class in javax.faces.event"><CODE>PhaseId</CODE></A> for this phase.</p> <p/> <p>Upon return from the listener, call <A HREF="../../../javax/faces/context/FacesContext.html#getResponseComplete()"><CODE>FacesContext.getResponseComplete()</CODE></A> and <A HREF="../../../javax/faces/context/FacesContext.html#getRenderResponse()"><CODE>FacesContext.getRenderResponse()</CODE></A>. If either return <code>true</code> set the internal state flag to <code>true</code>. </p> <p/> <p>If or one or more listeners have been added by a call to <A HREF="../../../javax/faces/component/UIViewRoot.html#addPhaseListener(javax.faces.event.PhaseListener)"><CODE>addPhaseListener(javax.faces.event.PhaseListener)</CODE></A>, invoke the <code>beforePhase</code> method on each one whose <A HREF="../../../javax/faces/event/PhaseListener.html#getPhaseId()"><CODE>PhaseListener.getPhaseId()</CODE></A> matches the current phaseId, passing in the same <code>PhaseId</code> as in the previous step.</p> <p/> <p>Upon return from each listener, call <A HREF="../../../javax/faces/context/FacesContext.html#getResponseComplete()"><CODE>FacesContext.getResponseComplete()</CODE></A> and <A HREF="../../../javax/faces/context/FacesContext.html#getRenderResponse()"><CODE>FacesContext.getRenderResponse()</CODE></A>. If either return <code>true</code> set the internal state flag to <code>true</code>. </p> <p/> <p/> <p>Execute any processing for this phase if the internal state flag was not set.</p> <p/> <p>If <A HREF="../../../javax/faces/component/UIViewRoot.html#getAfterPhaseListener()"><CODE>getAfterPhaseListener()</CODE></A> returns non-<code>null</code>, invoke the listener, passing in the correct corresponding <A HREF="../../../javax/faces/event/PhaseId.html" title="class in javax.faces.event"><CODE>PhaseId</CODE></A> for this phase.</p> <p/> <p>If or one or more listeners have been added by a call to <A HREF="../../../javax/faces/component/UIViewRoot.html#addPhaseListener(javax.faces.event.PhaseListener)"><CODE>addPhaseListener(javax.faces.event.PhaseListener)</CODE></A>, invoke the <code>afterPhase</code> method on each one whose <A HREF="../../../javax/faces/event/PhaseListener.html#getPhaseId()"><CODE>PhaseListener.getPhaseId()</CODE></A> matches the current phaseId, passing in the same <code>PhaseId</code> as in the previous step.</p> <p/> <p/> </ul><P><P><HR><P><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/faces/component/UIViewRoot.html#COMPONENT_FAMILY">COMPONENT_FAMILY</A></B></CODE><BR> The standard component family for this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/faces/component/UIViewRoot.html#COMPONENT_TYPE">COMPONENT_TYPE</A></B></CODE><BR> The standard component type for this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/faces/component/UIViewRoot.html#UNIQUE_ID_PREFIX">UNIQUE_ID_PREFIX</A></B></CODE><BR> The prefix that will be used for identifiers generated by the <code>createUniqueId()</code> method.</TD></TR></TABLE> <A NAME="fields_inherited_from_class_javax.faces.component.UIComponent"><!-- --></A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -