templatizedaction.html
来自「A Facebook API client implemented in Jav」· HTML 代码 · 共 856 行 · 第 1/3 页
HTML
856 行
</DD></DL><HR><A NAME="addBodyParam(java.lang.String, java.lang.String)"><!-- --></A><H3>addBodyParam</H3><PRE>public void <B>addBodyParam</B>(java.lang.String key, java.lang.String value)</PRE><DL><DD>Add a parameter value for the body template. It will be used to replace the corresponding token when the feed entry is rendered.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the name of the parameter/token.<DD><CODE>value</CODE> - the value to set it to.</DL></DD></DL><HR><A NAME="getTitleParams()"><!-- --></A><H3>getTitleParams</H3><PRE>public java.lang.String <B>getTitleParams</B>()</PRE><DL><DD>Get the title params as a JSON-formatted string.<P><DD><DL><DT><B>Returns:</B><DD>the parameters for the templatized title tokens.</DL></DD></DL><HR><A NAME="getBodyParams()"><!-- --></A><H3>getBodyParams</H3><PRE>public java.lang.String <B>getBodyParams</B>()</PRE><DL><DD>Get the body params as a JSON-formatted string.<P><DD><DL><DT><B>Returns:</B><DD>the parameters for the templatized body tokens.</DL></DD></DL><HR><A NAME="getBodyGeneral()"><!-- --></A><H3>getBodyGeneral</H3><PRE>public java.lang.String <B>getBodyGeneral</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the bodyGeneral</DL></DD></DL><HR><A NAME="setBodyGeneral(java.lang.String)"><!-- --></A><H3>setBodyGeneral</H3><PRE>public void <B>setBodyGeneral</B>(java.lang.String bodyGeneral)</PRE><DL><DD>Set the general body content for this feed entry. This is optional, non-templatized markup, and is distinct from and unrelated to bodyTemplate. A feed entry can have both at once, either or, or neither.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bodyGeneral</CODE> - non-templatized markup that will be displayed in this feed entry. When multiple entries are aggregated, only the bodyGeneral from (an arbitrarily chosen) one of them will appear in the aggregate entry, meaning that any markup specified here must be generic enough that it can make sense in any context.</DL></DD></DL><HR><A NAME="getBodyTemplate()"><!-- --></A><H3>getBodyTemplate</H3><PRE>public java.lang.String <B>getBodyTemplate</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the bodyTemplate</DL></DD></DL><HR><A NAME="setBodyTemplate(java.lang.String)"><!-- --></A><H3>setBodyTemplate</H3><PRE>public void <B>setBodyTemplate</B>(java.lang.String bodyTemplate)</PRE><DL><DD>Set the body template for this feed entry. The body template is optinal.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bodyTemplate</CODE> - templatized markup that will be used to compute the body section of this feed entry. Unlike titleTemplate, this markup *is not* required to utilize the "{actor}" token, although you may choose to use any desired tokens in this section if you wish.</DL></DD></DL><HR><A NAME="getTargetIds()"><!-- --></A><H3>getTargetIds</H3><PRE>public java.lang.String <B>getTargetIds</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the targetIds</DL></DD></DL><HR><A NAME="setTargetIds(java.lang.String)"><!-- --></A><H3>setTargetIds</H3><PRE>public void <B>setTargetIds</B>(java.lang.String targetIds)</PRE><DL><DD>Set the target ids of friends who are associated with this action. This must be specified if you have used the "{target}" token in any of your markup.<br /> <br /> This method will clear out any previously added target ids. To append additional target ids to a previous list, use addTargetIds instead.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>targetIds</CODE> - a comma-seperated list of Facebook UID's representing any friends of the current user who are associated with the action being published (so if the action is "Bob waves to Sally and Susie", Sally and Susie are the targets).</DL></DD></DL><HR><A NAME="addTargetIds(java.lang.String)"><!-- --></A><H3>addTargetIds</H3><PRE>public void <B>addTargetIds</B>(java.lang.String newIds)</PRE><DL><DD>Append to the list of friends who are associated with this action.<br /> <br /> This method *will not* clear out any previously added target ids.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newIds</CODE> - a comma-seperated list of Facebook UID's representing any friends of the current user who are associated with the action being published (so if the action is "Bob waves to Sally and Susie", Sally and Susie are the targets).</DL></DD></DL><HR><A NAME="setTargetIds(java.util.Collection)"><!-- --></A><H3>setTargetIds</H3><PRE>public void <B>setTargetIds</B>(java.util.Collection<java.lang.Object> facebookIds)</PRE><DL><DD>Set the target ids of friends who are associated with this action. This must be specified if you have used the "{target}" token in any of your markup.<br /> <br /> This method will clear out any previously added target ids. To append additional target ids to a previous list, use addTargetIds instead.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>facebookIds</CODE> - a list of all the Facebook UID to specify as targets. The elements in the collection may only be of type Integer or type String.</DL></DD></DL><HR><A NAME="addTargetIds(java.util.Collection)"><!-- --></A><H3>addTargetIds</H3><PRE>public void <B>addTargetIds</B>(java.util.Collection<java.lang.Object> facebookIds)</PRE><DL><DD>Append to the set of friends who are associated with this action. This must be specified if you have used the "{target}" token in any of your markup.<br /> <br /> This method *will not* clear out any previously added target ids.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>facebookIds</CODE> - a list of all the Facebook UID to specify as targets. The elements in the collection may only be of type Long or type String.</DL></DD></DL><HR><A NAME="getTitleTemplate()"><!-- --></A><H3>getTitleTemplate</H3><PRE>public java.lang.String <B>getTitleTemplate</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the titleTemplate</DL></DD></DL><HR><A NAME="setTitleTemplate(java.lang.String)"><!-- --></A><H3>setTitleTemplate</H3><PRE>public void <B>setTitleTemplate</B>(java.lang.String titleTemplate)</PRE><DL><DD>Set the title template for this feed entry. This is a required field, and the template must always contain the "{actor}" token.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>titleTemplate</CODE> - templatized markup to use as the title of this feed entry. It must contain the "{actor}" token.</DL></DD></DL><HR><A NAME="getPageActorId()"><!-- --></A><H3>getPageActorId</H3><PRE>public java.lang.Long <B>getPageActorId</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the page actor-id</DL></DD></DL><HR><A NAME="setPageActorId(java.lang.Long)"><!-- --></A><H3>setPageActorId</H3><PRE>public void <B>setPageActorId</B>(java.lang.Long pageActorId)</PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>pageActorId</CODE> - the page actor-id to set</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/google/code/facebookapi/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/TemplatizedAction.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"> <A HREF="../../../../com/google/code/facebookapi/ProfileInfoField.html" title="class in com.google.code.facebookapi"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/google/code/facebookapi/TemplatizedAction.html" target="_top"><B>FRAMES</B></A> <A HREF="TemplatizedAction.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_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 2008. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?