📄 uimanager.html
字号:
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="UIManager()"><!-- --></A><H3>UIManager</H3><PRE>public <B>UIManager</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="init(java.lang.Object)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(java.lang.Object data)</PRE><DL><DD>Initialize the UIManager object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/pull/ApplicationTool.html#init(java.lang.Object)">init</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/pull/ApplicationTool.html">ApplicationTool</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - This is null, RunData or User depending upon specified tool scope.</DL></DD></DL><HR><A NAME="refresh()"><!-- --></A><H3>refresh</H3><PRE>public void <B>refresh</B>()</PRE><DL><DD>This lets the tool know that it should be refreshed. The tool can perform whatever actions are necessary to refresh itself. This is necessary for sane development where you probably want the tools to refresh themselves on every request.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/pull/ApplicationTool.html#refresh()">refresh</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/pull/ApplicationTool.html">ApplicationTool</A></CODE></DL></DD></DL><HR><A NAME="get(java.lang.String)"><!-- --></A><H3>get</H3><PRE>public java.lang.String <B>get</B>(java.lang.String key)</PRE><DL><DD>Retrieve a property from the properties held within the properties file for this skin.<DD><DL></DL></DD></DL><HR><A NAME="getSkin()"><!-- --></A><H3>getSkin</H3><PRE>public java.lang.String <B>getSkin</B>()</PRE><DL><DD>Retrieve the skin name.<DD><DL></DL></DD></DL><HR><A NAME="image(java.lang.String, org.apache.turbine.util.RunData)"><!-- --></A><H3>image</H3><PRE>public java.lang.String <B>image</B>(java.lang.String imageId, <A HREF="../../../../../../org/apache/turbine/util/RunData.html">RunData</A> data)</PRE><DL><DD>Retrieve the URL for an image that is part of a skin. The images are stored in the WEBAPP/resources/ui/skins/<SKIN>/images directory. Use this if for some reason your server name, server scheme, or server port change on a per request basis. I'm not sure if this would happend in a load balanced situation. I think in most cases the image(String image) method would probably be enough, but I'm not absolutely positive.<DD><DL></DL></DD></DL><HR><A NAME="image(java.lang.String)"><!-- --></A><H3>image</H3><PRE>public java.lang.String <B>image</B>(java.lang.String imageId)</PRE><DL><DD>Retrieve the URL for an image that is part of a skin. The images are stored in the WEBAPP/resources/ui/skins/<SKIN>/images directory.<DD><DL></DL></DD></DL><HR><A NAME="getStylecss(org.apache.turbine.util.RunData)"><!-- --></A><H3>getStylecss</H3><PRE>public java.lang.String <B>getStylecss</B>(<A HREF="../../../../../../org/apache/turbine/util/RunData.html">RunData</A> data)</PRE><DL><DD>Retrieve the URL for the style sheet that is part of a skin. The style is stored in the WEBAPP/resources/ui/skins/<SKIN> directory with the filename skin.css Use this if for some reason your server name, server scheme, or server port change on a per request basis. I'm not sure if this would happend in a load balanced situation. I think in most cases the style() method would probably be enough, but I'm not absolutely positive.<DD><DL></DL></DD></DL><HR><A NAME="getStylecss()"><!-- --></A><H3>getStylecss</H3><PRE>public java.lang.String <B>getStylecss</B>()</PRE><DL><DD>Retrieve the URL for the style sheet that is part of a skin. The style is stored in the WEBAPP/resources/ui/skins/<SKIN> directory with the filename skin.css<DD><DL></DL></DD></DL><HR><A NAME="setSkin()"><!-- --></A><H3>setSkin</H3><PRE>public void <B>setSkin</B>()</PRE><DL><DD>Set the skin name to the skin from the TR.props file. If the property is not present use the default skin.<DD><DL></DL></DD></DL><HR><A NAME="setSkin(java.lang.String)"><!-- --></A><H3>setSkin</H3><PRE>public void <B>setSkin</B>(java.lang.String skinName)</PRE><DL><DD>Set the skin name to the specified skin.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>skinName</CODE> - the skin name to use.</DL></DD></DL><HR><A NAME="setSkin(org.apache.turbine.util.RunData)"><!-- --></A><H3>setSkin</H3><PRE>protected void <B>setSkin</B>(<A HREF="../../../../../../org/apache/turbine/util/RunData.html">RunData</A> data)</PRE><DL><DD>Set the skin name when the tool is configured to be loaded on a per-request basis. By default it calls getSkin to return the skin specified in TR.properties. Developers can write a subclass of UIManager that overrides this method to determine the skin to use based on information held in the request.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - a RunData instance</DL></DD></DL><HR><A NAME="setSkin(org.apache.turbine.om.security.User)"><!-- --></A><H3>setSkin</H3><PRE>protected void <B>setSkin</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A> user)</PRE><DL><DD>Set the skin name when the tool is configured to be loaded on a per-session basis. It the user's temp hashmap contains a value in the attribute specified by the String constant SKIN_ATTRIBUTE then that is returned. Otherwise it calls getSkin to return the skin specified in TR.properties.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - a User instance</DL></DD></DL><HR><A NAME="setSkin(org.apache.turbine.om.security.User, java.lang.String)"><!-- --></A><H3>setSkin</H3><PRE>public static void <B>setSkin</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A> user, java.lang.String skin)</PRE><DL><DD>Set the skin name user's temp hashmap for the current session.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - a User instance<DD><CODE>skin</CODE> - the skin name for the session</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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="class-use/UIManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="UIManager.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -