📄 componentdefinition.html
字号:
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#getName()">getName</A></B>()</CODE>
<BR>
Access method for the name property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../org/apache/struts/tiles/Controller.html">Controller</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#getOrCreateController()">getOrCreateController</A></B>()</CODE>
<BR>
Get or create controller.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#getPage()">getPage</A></B>()</CODE>
<BR>
Access method for the path property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#getPath()">getPath</A></B>()</CODE>
<BR>
Access method for the path property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#getRole()">getRole</A></B>()</CODE>
<BR>
Access method for the role property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#getTemplate()">getTemplate</A></B>()</CODE>
<BR>
Access method for the template property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#put(java.lang.String, java.lang.Object)">put</A></B>(java.lang.String name, java.lang.Object content)</CODE>
<BR>
Put an attribute in component / template definition.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#put(java.lang.String, java.lang.Object, boolean)">put</A></B>(java.lang.String name, java.lang.Object content, boolean direct)</CODE>
<BR>
Put an attribute in template definition.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#put(java.lang.String, java.lang.Object, boolean, java.lang.String)">put</A></B>(java.lang.String name, java.lang.Object content, boolean direct, java.lang.String role)</CODE>
<BR>
Put an attribute in template definition.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#put(java.lang.String, java.lang.Object, java.lang.String, java.lang.String)">put</A></B>(java.lang.String name, java.lang.Object content, java.lang.String type, java.lang.String role)</CODE>
<BR>
Put an attribute in template definition.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#putAttribute(java.lang.String, java.lang.Object)">putAttribute</A></B>(java.lang.String key, java.lang.Object value)</CODE>
<BR>
Put a new attribute in this component</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setController(java.lang.String)">setController</A></B>(java.lang.String url)</CODE>
<BR>
Set associated controller URL.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setControllerClass(java.lang.String)">setControllerClass</A></B>(java.lang.String controller)</CODE>
<BR>
Set associated controller name as a classtype, and controller type as "classname".</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setControllerInstance(org.apache.struts.tiles.Controller)">setControllerInstance</A></B>(<A HREF="../../../../org/apache/struts/tiles/Controller.html">Controller</A> controller)</CODE>
<BR>
Set controller.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setControllerType(java.lang.String)">setControllerType</A></B>(java.lang.String controllerType)</CODE>
<BR>
Set associated controller type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setControllerUrl(java.lang.String)">setControllerUrl</A></B>(java.lang.String controller)</CODE>
<BR>
Set associated controller name as an url, and controller type as "url".</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setName(java.lang.String)">setName</A></B>(java.lang.String aName)</CODE>
<BR>
Sets the value of the name property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setPage(java.lang.String)">setPage</A></B>(java.lang.String page)</CODE>
<BR>
Sets the value of the path property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setPath(java.lang.String)">setPath</A></B>(java.lang.String aPath)</CODE>
<BR>
Sets the value of the path property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setRole(java.lang.String)">setRole</A></B>(java.lang.String role)</CODE>
<BR>
Sets the value of the role property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#setTemplate(java.lang.String)">setTemplate</A></B>(java.lang.String template)</CODE>
<BR>
Sets the value of the template property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html#toString()">toString</A></B>()</CODE>
<BR>
Returns a description of the attributes.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
protected static org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD>Commons Logging instance.</DL>
<HR>
<A NAME="name"><!-- --></A><H3>
name</H3>
<PRE>
protected java.lang.String <B>name</B></PRE>
<DL>
<DD>Definition name</DL>
<HR>
<A NAME="path"><!-- --></A><H3>
path</H3>
<PRE>
protected java.lang.String <B>path</B></PRE>
<DL>
<DD>Component / template path (URL).</DL>
<HR>
<A NAME="attributes"><!-- --></A><H3>
attributes</H3>
<PRE>
protected java.util.Map <B>attributes</B></PRE>
<DL>
<DD>Attributes defined for the component.</DL>
<HR>
<A NAME="role"><!-- --></A><H3>
role</H3>
<PRE>
protected java.lang.String <B>role</B></PRE>
<DL>
<DD>Role associated to definition.</DL>
<HR>
<A NAME="controller"><!-- --></A><H3>
controller</H3>
<PRE>
protected java.lang.String <B>controller</B></PRE>
<DL>
<DD>Associated Controller URL or classname, if defined</DL>
<HR>
<A NAME="controllerType"><!-- --></A><H3>
controllerType</H3>
<PRE>
protected java.lang.String <B>controllerType</B></PRE>
<DL>
<DD>Associated Controller typename, if controllerName defined. Can be CONTROLLER, ACTION or URL, or null.</DL>
<HR>
<A NAME="URL"><!-- --></A><H3>
URL</H3>
<PRE>
public static final java.lang.String <B>URL</B></PRE>
<DL>
<DD>Controller name type.</DL>
<HR>
<A NAME="CONTROLLER"><!-- --></A><H3>
CONTROLLER</H3>
<PRE>
public static final java.lang.String <B>CONTROLLER</B></PRE>
<DL>
<DD>Controller name type.</DL>
<HR>
<A NAME="ACTION"><!-- --></A><H3>
ACTION</H3>
<PRE>
public static final java.lang.String <B>ACTION</B></PRE>
<DL>
<DD>Controller name type.</DL>
<HR>
<A NAME="controllerInstance"><!-- --></A><H3>
controllerInstance</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -