JavaTM 2 Platform
Standard Ed. 6

javax.print.attribute
类 HashPrintRequestAttributeSet

java.lang.Object
  继承者 javax.print.attribute.HashAttributeSet
      继承者 javax.print.attribute.HashPrintRequestAttributeSet
所有已实现的接口:
Serializable, AttributeSet, PrintRequestAttributeSet

public class HashPrintRequestAttributeSet
extends HashAttributeSet
implements PrintRequestAttributeSet, Serializable

类 HashPrintRequestAttributeSet 从类 HashAttributeSet 继承其实现,并强制执行接口 PrintRequestAttributeSet 的语义限制。

另请参见:
序列化表格

构造方法摘要
HashPrintRequestAttributeSet()
          构造一个新的空打印请求属性集。
HashPrintRequestAttributeSet(PrintRequestAttribute attribute)
          构造一个最初使用给定值填充的新打印请求属性集。
HashPrintRequestAttributeSet(PrintRequestAttribute[] attributes)
          构造一个最初使用给定数组中的值填充的新打印请求属性集。
HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes)
          构造一个最初使用给定集合中的值填充的新属性集,其中该属性集的成员限于 (PrintRequestAttributeSe 接口。
 
方法摘要
 
从类 javax.print.attribute.HashAttributeSet 继承的方法
add, addAll, clear, containsKey, containsValue, equals, get, hashCode, isEmpty, remove, remove, size, toArray
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
从接口 javax.print.attribute.PrintRequestAttributeSet 继承的方法
add, addAll
 
从接口 javax.print.attribute.AttributeSet 继承的方法
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, remove, remove, size, toArray
 

构造方法详细信息

HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet()
构造一个新的空打印请求属性集。


HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet(PrintRequestAttribute attribute)
构造一个最初使用给定值填充的新打印请求属性集。

参数:
attribute - 要添加到此集合的属性值。
抛出:
NullPointerException - (未经检查的异常)如果 attribute 为 null,则抛出该异常。

HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet(PrintRequestAttribute[] attributes)
构造一个最初使用给定数组中的值填充的新打印请求属性集。通过将 attributes 数组中的元素从索引 0 开始按顺序添加到该集合来填充新的属性集。因此,如果该数组包含重复的属性值或属性类别,则后面的数组元素可以替换前面的数组元素。

参数:
attributes - 要添加到该集合的属性值的数组。如果为 null,则构造一个空属性集。
抛出:
NullPointerException - (未经检查的异常)如果 attributes 的任何元素为 null,则抛出该异常。

HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes)
构造一个最初使用给定集合中的值填充的新属性集,其中该属性集的成员限于 (PrintRequestAttributeSe 接口。

参数:
attributes - 要初始化该集合的属性值的集合。如果为 null,则构造一个空属性集。
抛出:
ClassCastException - (未经检查的异常)如果 attributes 的元素不是 (PrintRequestAttributeSe 的一个实例,则抛出该异常。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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