JavaTM 2 Platform
Standard Ed. 6

类 java.awt.JobAttributes.DefaultSelectionType
的使用

使用 JobAttributes.DefaultSelectionType 的软件包
java.awt 包含用于创建用户界面和绘制图形图像的所有类。 
 

java.awtJobAttributes.DefaultSelectionType 的使用
 

声明为 JobAttributes.DefaultSelectionTypejava.awt 中的字段
static JobAttributes.DefaultSelectionType JobAttributes.DefaultSelectionType.ALL
          用于指定应该打印全部作业页面的 DefaultSelectionType 实例。
static JobAttributes.DefaultSelectionType JobAttributes.DefaultSelectionType.RANGE
          用于指定应该打印一定范围的作业页面的 DefaultSelectionType 实例。
static JobAttributes.DefaultSelectionType JobAttributes.DefaultSelectionType.SELECTION
          用于指定应该打印当前选择作业页面的 DefaultSelectionType 实例。
 

返回 JobAttributes.DefaultSelectionTypejava.awt 中的方法
 JobAttributes.DefaultSelectionType JobAttributes.getDefaultSelection()
          指定应用程序应该为使用这些属性的作业打印所有页面,即 getPageRanges 的返回值所指定范围的页面,还是打印当前选择的页面。
 

参数类型为 JobAttributes.DefaultSelectionTypejava.awt 中的方法
 void JobAttributes.setDefaultSelection(JobAttributes.DefaultSelectionType defaultSelection)
          指定应用程序应该为使用这些属性的作业打印所有页面,即 getPageRanges 的返回值所指定范围的页面,还是打印当前选择的页面。
 

参数类型为 JobAttributes.DefaultSelectionTypejava.awt 中的构造方法
JobAttributes(int copies, JobAttributes.DefaultSelectionType defaultSelection, JobAttributes.DestinationType destination, JobAttributes.DialogType dialog, String fileName, int maxPage, int minPage, JobAttributes.MultipleDocumentHandlingType multipleDocumentHandling, int[][] pageRanges, String printer, JobAttributes.SidesType sides)
          构造一个具有每个属性指定值的 JobAttributes 实例。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only