📄 gallery.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Sat May 03 22:10:33 PDT 2003 --><TITLE>Gallery (PhotoServlet API Documentation - build 120 from 2003/05/03 22:10)</TITLE><META NAME="keywords" CONTENT="net.spy.photo.Gallery,Gallery class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="Gallery (PhotoServlet API Documentation - build 120 from 2003/05/03 22:10)";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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/Gallery.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="../../../net/spy/photo/ExternalImageServerScaler.html"><B>PREV CLASS</B></A> <A HREF="../../../net/spy/photo/GroupedComments.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Gallery.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | 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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">net.spy.photo</FONT><BR>Class Gallery</H2><PRE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">java.lang.Object</A> | +--<A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/SpyObject.html">net.spy.SpyObject</A> | +--<A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html">net.spy.db.AbstractSavable</A> | +--<B>net.spy.photo.Gallery</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/Savable.html">Savable</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/SavableNode.html">SavableNode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/Serializable.html">Serializable</A></DD></DL><HR><DL><DT>public class <B>Gallery</B><DT>extends <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html">AbstractSavable</A><DT>implements <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/Serializable.html">Serializable</A></DL><P>A named collection of images.<P><P><DL><DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html" TARGET="net.spy.photo.Gallery">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#Gallery(net.spy.photo.PhotoUser)">Gallery</A></B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> owner)</CODE><BR> Get an instance of Gallery belonging to a given owner.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#Gallery(net.spy.photo.PhotoUser, java.lang.String)">Gallery</A></B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> owner, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name)</CODE><BR> Get an instance of Gallery belonging to a given owner.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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="../../../net/spy/photo/Gallery.html#addImage(int)">addImage</A></B>(int imageId)</CODE><BR> Add a new image to the gallery.</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="../../../net/spy/photo/Gallery.html#addImage(net.spy.photo.PhotoImageData)">addImage</A></B>(<A HREF="../../../net/spy/photo/PhotoImageData.html">PhotoImageData</A> pid)</CODE><BR> Add a new image to the gallery.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../net/spy/photo/Cursor.html">Cursor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#getGalleries(net.spy.photo.PhotoUser)">getGalleries</A></B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> user)</CODE><BR> Get a list of all galleries visible by the user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../net/spy/photo/Gallery.html">Gallery</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#getGallery(net.spy.photo.PhotoUser, int)">getGallery</A></B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> user, int id)</CODE><BR> Get the given gallery by ID as it will be seen by the given user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#getId()">getId</A></B>()</CODE><BR> Get this gallery's ID.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Collection.html">Collection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#getImages()">getImages</A></B>()</CODE><BR> Get a Collection of PhotoImageData objects describing the contents of this gallery.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#getName()">getName</A></B>()</CODE><BR> Get the name of this gallery.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#getOwner()">getOwner</A></B>()</CODE><BR> Get the owner of this gallery.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Date.html">Date</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#getTimestamp()">getTimestamp</A></B>()</CODE><BR> Get the timestamp this gallery was created.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#isPublic()">isPublic</A></B>()</CODE><BR> If true, the gallery is public.</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="../../../net/spy/photo/Gallery.html#removeImage(net.spy.photo.PhotoImageData)">removeImage</A></B>(<A HREF="../../../net/spy/photo/PhotoImageData.html">PhotoImageData</A> pid)</CODE><BR> Remove an image from the given gallery.</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="../../../net/spy/photo/Gallery.html#save(java.sql.Connection, net.spy.db.SaveContext)">save</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/sql/Connection.html">Connection</A> conn, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/SaveContext.html">SaveContext</A> context)</CODE><BR> Save a new gallery.</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="../../../net/spy/photo/Gallery.html#setName(java.lang.String)">setName</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> to)</CODE><BR> Set the name of this Gallery.</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="../../../net/spy/photo/Gallery.html#setPublic(boolean)">setPublic</A></B>(boolean isPublic)</CODE><BR> If true, the gallery is public.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#size()">size</A></B>()</CODE><BR> Return the number of images in this gallery.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/Gallery.html#toString()">toString</A></B>()</CODE><BR> String me.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.spy.db.AbstractSavable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.spy.db.<A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html">AbstractSavable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#getPostSavables(net.spy.db.SaveContext)">getPostSavables</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#getPreSavables(net.spy.db.SaveContext)">getPreSavables</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#getSavables(net.spy.db.SaveContext)">getSavables</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#isModified()">isModified</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#isNew()">isNew</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#setModified(boolean)">setModified</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#setNew(boolean)">setNew</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#setSaved()">setSaved</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.spy.SpyObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.spy.<A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/SpyObject.html">SpyObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/SpyObject.html#getLogger()">getLogger</A></CODE></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.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><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="Gallery(net.spy.photo.PhotoUser, java.lang.String)"><!-- --></A><H3>Gallery</H3><PRE>public <B>Gallery</B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> owner, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name)</PRE><DL><DD>Get an instance of Gallery belonging to a given owner.<P></DL><HR><A NAME="Gallery(net.spy.photo.PhotoUser)"><!-- --></A><H3>Gallery</H3><PRE>public <B>Gallery</B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> owner)</PRE><DL><DD>Get an instance of Gallery belonging to a given owner.<P></DL><!-- ============ METHOD DETAIL ========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -