jobattributes.html

来自「API資料大全」· HTML 代码 · 共 1,289 行 · 第 1/4 页

HTML
1,289
字号
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/awt/JobAttributes.SidesType.html">JobAttributes.SidesType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getSides()">getSides</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns how consecutive pages should be imposed upon the sides of the print medium for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getToPage()">getToPage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns, for jobs using these attributes, the last page (inclusive) to be printed, if a range of pages is to be printed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#hashCode()">hashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a hash code value for this JobAttributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#set(java.awt.JobAttributes)">set</A></B>(<A HREF="../../java/awt/JobAttributes.html">JobAttributes</A>&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets all of the attributes of this JobAttributes to the same values as the attributes of obj.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setCopies(int)">setCopies</A></B>(int&nbsp;copies)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the number of copies the application should render for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setCopiesToDefault()">setCopiesToDefault</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of copies the application should render for jobs using these attributes to the default.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setDefaultSelection(java.awt.JobAttributes.DefaultSelectionType)">setDefaultSelection</A></B>(<A HREF="../../java/awt/JobAttributes.DefaultSelectionType.html">JobAttributes.DefaultSelectionType</A>&nbsp;defaultSelection)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies whether, for jobs using these attributes, the application should print all pages, the range specified by the return value of <code>getPageRanges</code>, or the current selection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setDestination(java.awt.JobAttributes.DestinationType)">setDestination</A></B>(<A HREF="../../java/awt/JobAttributes.DestinationType.html">JobAttributes.DestinationType</A>&nbsp;destination)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies whether output will be to a printer or a file for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setDialog(java.awt.JobAttributes.DialogType)">setDialog</A></B>(<A HREF="../../java/awt/JobAttributes.DialogType.html">JobAttributes.DialogType</A>&nbsp;dialog)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies whether, for jobs using these attributes, the user should see a print dialog in which to modify the print settings, and which type of print dialog should be displayed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setFileName(java.lang.String)">setFileName</A></B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;fileName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the file name for the output file for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setFromPage(int)">setFromPage</A></B>(int&nbsp;fromPage)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies, for jobs using these attributes, the first page to be printed, if a range of pages is to be printed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setMaxPage(int)">setMaxPage</A></B>(int&nbsp;maxPage)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the maximum value the user can specify as the last page to be printed for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setMinPage(int)">setMinPage</A></B>(int&nbsp;minPage)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the minimum value the user can specify as the first page to be printed for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setMultipleDocumentHandling(java.awt.JobAttributes.MultipleDocumentHandlingType)">setMultipleDocumentHandling</A></B>(<A HREF="../../java/awt/JobAttributes.MultipleDocumentHandlingType.html">JobAttributes.MultipleDocumentHandlingType</A>&nbsp;multipleDocumentHandling)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the handling of multiple documents, including collation, for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setMultipleDocumentHandlingToDefault()">setMultipleDocumentHandlingToDefault</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the handling of multiple documents, including collation, for jobs using these attributes to the default.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setPageRanges(int[][])">setPageRanges</A></B>(int[][]&nbsp;pageRanges)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies, for jobs using these attributes, the ranges of pages to be printed, if a range of pages is to be printed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setPrinter(java.lang.String)">setPrinter</A></B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;printer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the destination printer for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setSides(java.awt.JobAttributes.SidesType)">setSides</A></B>(<A HREF="../../java/awt/JobAttributes.SidesType.html">JobAttributes.SidesType</A>&nbsp;sides)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies how consecutive pages should be imposed upon the sides of the print medium for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setSidesToDefault()">setSidesToDefault</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets how consecutive pages should be imposed upon the sides of the print medium for jobs using these attributes to the default.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#setToPage(int)">setToPage</A></B>(int&nbsp;toPage)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies, for jobs using these attributes, the last page (inclusive) to be printed, if a range of pages is to be printed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this JobAttributes.</TD></TR></TABLE>&nbsp;<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="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<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="JobAttributes()"><!-- --></A><H3>JobAttributes</H3><PRE>public <B>JobAttributes</B>()</PRE><DL><DD>Constructs a JobAttributes instance with default values for every attribute.</DL><HR><A NAME="JobAttributes(java.awt.JobAttributes)"><!-- --></A><H3>JobAttributes</H3><PRE>public <B>JobAttributes</B>(<A HREF="../../java/awt/JobAttributes.html">JobAttributes</A>&nbsp;obj)</PRE><DL><DD>Constructs a JobAttributes instance which is a copy of the supplied JobAttributes.<DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the JobAttributes to copy.</DL></DD></DL><HR><A NAME="JobAttributes(int, java.awt.JobAttributes.DefaultSelectionType, java.awt.JobAttributes.DestinationType, java.awt.JobAttributes.DialogType, java.lang.String, int, int, java.awt.JobAttributes.MultipleDocumentHandlingType, int[][], java.lang.String, java.awt.JobAttributes.SidesType)"><!-- --></A><H3>JobAttributes</H3><PRE>public <B>JobAttributes</B>(int&nbsp;copies,                     <A HREF="../../java/awt/JobAttributes.DefaultSelectionType.html">JobAttributes.DefaultSelectionType</A>&nbsp;defaultSelection,                     <A HREF="../../java/awt/JobAttributes.DestinationType.html">JobAttributes.DestinationType</A>&nbsp;destination,                     <A HREF="../../java/awt/JobAttributes.DialogType.html">JobAttributes.DialogType</A>&nbsp;dialog,                     <A HREF="../../java/lang/String.html">String</A>&nbsp;fileName,                     int&nbsp;maxPage,                     int&nbsp;minPage,                     <A HREF="../../java/awt/JobAttributes.MultipleDocumentHandlingType.html">JobAttributes.MultipleDocumentHandlingType</A>&nbsp;multipleDocumentHandling,                     int[][]&nbsp;pageRanges,                     <A HREF="../../java/lang/String.html">String</A>&nbsp;printer,                     <A HREF="../../java/awt/JobAttributes.SidesType.html">JobAttributes.SidesType</A>&nbsp;sides)</PRE><DL><DD>Constructs a JobAttributes instance with the specified values for every attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>copies</CODE> - an integer greater than 0.<DD><CODE>defaultSelection</CODE> - DefaultSelectionType.ALL,		DefaultSelectionType.RANGE, or DefaultSelectionType.SELECTION.<DD><CODE>destination</CODE> - DesintationType.FILE or DesintationType.PRINTER.<DD><CODE>dialog</CODE> - DialogType.COMMON, DialogType.NATIVE, or		DialogType.NONE.<DD><CODE>fileName</CODE> - the possibly null file name.<DD><CODE>maxPage</CODE> - an integer greater than zero and greater than or equal		to <i>minPage</i>.<DD><CODE>minPage</CODE> - an integer greater than zero and less than or equal		to <i>maxPage</i>.<DD><CODE>multipleDocumentHandling</CODE> - MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_COLLATED_COPIES or     MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES.<DD><CODE>pageRanges</CODE> - an array of integer arrays of 2 elements. An array		is interpreted as a range spanning all pages including and		between the specified pages. Ranges must be in ascending		order and must not overlap. Specified page numbers cannot be		less than <i>minPage</i> nor greater than <i>maxPage</i>.		For example:		(new int[][] { new int[] { 1, 3 }, new int[] { 5, 5 },		               new int[] { 15, 19 } }),		specifies pages 1, 2, 3, 5, 15, 16, 17, 18, and 19. Note that		(new int[][] { new int[] { 1, 1 }, new int[] { 1, 2 } }),		is an invalid set of page ranges because the two ranges		overlap.<DD><CODE>printer</CODE> - the possibly null printer name.<DD><CODE>sides</CODE> - SidesType.ONE_SIDED, SidesType.TWO_SIDED_LONG_EDGE, or		SidesType.TWO_SIDED_SHORT_EDGE.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if one or more of the above		conditions is violated.</DL></DD></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="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Creates and returns a copy of this JobAttributes.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the newly created copy. It is safe to cast this Object into		a JobAttributes.</DL></DD></DL><HR><A NAME="set(java.awt.JobAttributes)"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>(<A HREF="../../java/awt/JobAttributes.html">JobAttributes</A>&nbsp;obj)</PRE><DL><DD>Sets all of the attributes of this JobAttributes to the same values as the attributes of obj.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the JobAttributes to copy.</DL></DD></DL><HR><A NAME="getCopies()"><!-- --></A><H3>getCopies</H3><PRE>public int <B>getCopies</B>()</PRE><DL><DD>Returns the number of copies the application should render for jobs using these attributes. This attribute is updated to the value chosen by the user.<DD><DL></DL></DD>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?