jobattributes.html
来自「API資料大全」· HTML 代码 · 共 1,289 行 · 第 1/4 页
HTML
1,289 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:32:43 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class JobAttributes</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 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/JobAttributes.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/awt/Insets.html"><B>PREV CLASS</B></A> <A HREF="../../java/awt/JobAttributes.DefaultSelectionType.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="JobAttributes.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | 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">java.awt</FONT><BR>Class JobAttributes</H2><PRE><A HREF="../../java/lang/Object.html">java.lang.Object</A> | +--<B>java.awt.JobAttributes</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../java/lang/Cloneable.html">Cloneable</A></DD></DL><HR><DL><DT>public final class <B>JobAttributes</B><DT>extends <A HREF="../../java/lang/Object.html">Object</A><DT>implements <A HREF="../../java/lang/Cloneable.html">Cloneable</A></DL><P>A set of attributes which control a print job. <p> Instances of this class control the number of copies, default selection, destination, print dialog, file and printer names, page ranges, multiple document handling (including collation), and multi-page imposition (such as duplex) of every print job which uses the instance. Attribute names are compliant with the Internet Printing Protocol (IPP) 1.1 where possible. Attribute values are partially compliant where possible. <p> To use a method which takes an inner class type, pass a reference to one of the constant fields of the inner class. Client code cannot create new instances of the inner class types because none of those classes has a public constructor. For example, to set the print dialog type to the cross-platform, pure Java print dialog, use the following code: <pre> import java.awt.JobAttributes; public class PureJavaPrintDialogExample { public void setPureJavaPrintDialog(JobAttributes jobAttributes) { jobAttributes.setDialog(JobAttributes.DialogType.COMMON); } } </pre> <p> Every IPP attribute which supports an <i>attributeName</i>-default value has a corresponding <code>set<i>attributeName</i>ToDefault</code> method. Default value fields are not provided.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><A NAME="inner_class_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Inner Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.DefaultSelectionType.html">JobAttributes.DefaultSelectionType</A></B></CODE><BR> A type-safe enumeration of possible default selection states.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.DestinationType.html">JobAttributes.DestinationType</A></B></CODE><BR> A type-safe enumeration of possible job destinations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.DialogType.html">JobAttributes.DialogType</A></B></CODE><BR> A type-safe enumeration of possible dialogs to display to the user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.MultipleDocumentHandlingType.html">JobAttributes.MultipleDocumentHandlingType</A></B></CODE><BR> A type-safe enumeration of possible multiple document handling states.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.SidesType.html">JobAttributes.SidesType</A></B></CODE><BR> A type-safe enumeration of possible multi-page impositions.</TD></TR></TABLE> <!-- =========== 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="../../java/awt/JobAttributes.html#JobAttributes()">JobAttributes</A></B>()</CODE><BR> Constructs a JobAttributes instance with default values for every attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#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)">JobAttributes</A></B>(int copies, <A HREF="../../java/awt/JobAttributes.DefaultSelectionType.html">JobAttributes.DefaultSelectionType</A> defaultSelection, <A HREF="../../java/awt/JobAttributes.DestinationType.html">JobAttributes.DestinationType</A> destination, <A HREF="../../java/awt/JobAttributes.DialogType.html">JobAttributes.DialogType</A> dialog, <A HREF="../../java/lang/String.html">String</A> fileName, int maxPage, int minPage, <A HREF="../../java/awt/JobAttributes.MultipleDocumentHandlingType.html">JobAttributes.MultipleDocumentHandlingType</A> multipleDocumentHandling, int[][] pageRanges, <A HREF="../../java/lang/String.html">String</A> printer, <A HREF="../../java/awt/JobAttributes.SidesType.html">JobAttributes.SidesType</A> sides)</CODE><BR> Constructs a JobAttributes instance with the specified values for every attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#JobAttributes(java.awt.JobAttributes)">JobAttributes</A></B>(<A HREF="../../java/awt/JobAttributes.html">JobAttributes</A> obj)</CODE><BR> Constructs a JobAttributes instance which is a copy of the supplied JobAttributes.</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> <A HREF="../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#clone()">clone</A></B>()</CODE><BR> Creates and returns a copy of this JobAttributes.</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="../../java/awt/JobAttributes.html#equals(java.lang.Object)">equals</A></B>(<A HREF="../../java/lang/Object.html">Object</A> obj)</CODE><BR> Determines whether two JobAttributes are equal to each other.</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="../../java/awt/JobAttributes.html#getCopies()">getCopies</A></B>()</CODE><BR> Returns 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> <A HREF="../../java/awt/JobAttributes.DefaultSelectionType.html">JobAttributes.DefaultSelectionType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getDefaultSelection()">getDefaultSelection</A></B>()</CODE><BR> 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> <A HREF="../../java/awt/JobAttributes.DestinationType.html">JobAttributes.DestinationType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getDestination()">getDestination</A></B>()</CODE><BR> 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> <A HREF="../../java/awt/JobAttributes.DialogType.html">JobAttributes.DialogType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getDialog()">getDialog</A></B>()</CODE><BR> Returns 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> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getFileName()">getFileName</A></B>()</CODE><BR> 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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getFromPage()">getFromPage</A></B>()</CODE><BR> Returns, 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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getMaxPage()">getMaxPage</A></B>()</CODE><BR> 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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getMinPage()">getMinPage</A></B>()</CODE><BR> 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> <A HREF="../../java/awt/JobAttributes.MultipleDocumentHandlingType.html">JobAttributes.MultipleDocumentHandlingType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getMultipleDocumentHandling()">getMultipleDocumentHandling</A></B>()</CODE><BR> 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> int[][]</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getPageRanges()">getPageRanges</A></B>()</CODE><BR> 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> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/JobAttributes.html#getPrinter()">getPrinter</A></B>()</CODE><BR> Returns the destination printer for jobs using these attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?