/[classpath]/classpath/javax/print/PrintService.java
ViewVC logotype

Diff of /classpath/javax/print/PrintService.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.1 by gnu_andrew, Tue Aug 2 20:12:36 2005 UTC revision 1.1.2.2 by tromey, Sun Nov 27 22:17:21 2005 UTC
# Line 77  public interface PrintService Line 77  public interface PrintService
77     * @throws IllegalArgumentException if category is not a class that     * @throws IllegalArgumentException if category is not a class that
78     * implements <code>PrintServiceAttribute</code>     * implements <code>PrintServiceAttribute</code>
79     */     */
80    PrintServiceAttribute getAttribute(Class category);    <T extends PrintServiceAttribute> T getAttribute(Class<T> category);
81        
82    /**    /**
83     * Returns all attributes of this printer service     * Returns all attributes of this printer service
# Line 97  public interface PrintService Line 97  public interface PrintService
97     * @throws IllegalArgumentException if <code>category</code> is a class     * @throws IllegalArgumentException if <code>category</code> is a class
98     * not implementing <code>Attribute</code>     * not implementing <code>Attribute</code>
99     */     */
100    Object getDefaultAttributeValue(Class category);    Object getDefaultAttributeValue(Class<? extends Attribute> category);
101        
102    /**    /**
103     * Returns the name of this print service.     * Returns the name of this print service.
# Line 118  public interface PrintService Line 118  public interface PrintService
118     *     *
119     * @return an array of all supported attribute categories     * @return an array of all supported attribute categories
120     */     */
121    Class[] getSupportedAttributeCategories();    Class<?>[] getSupportedAttributeCategories();
122        
123    /**    /**
124     * Returns all supported attribute values a client can use when setting up     * Returns all supported attribute values a client can use when setting up
# Line 137  public interface PrintService Line 137  public interface PrintService
137     * implementing <code>Attribute</code>, or if <code>flavor</code> is not     * implementing <code>Attribute</code>, or if <code>flavor</code> is not
138     * supported     * supported
139     */     */
140    Object getSupportedAttributeValues(Class category, DocFlavor flavor, AttributeSet attributes);    Object getSupportedAttributeValues(Class<? extends Attribute> category,
141                                         DocFlavor flavor,
142                                         AttributeSet attributes);
143        
144    /**    /**
145     * Returns an array of all supproted document flavors.     * Returns an array of all supproted document flavors.
# Line 179  public interface PrintService Line 181  public interface PrintService
181     * @throws IllegalArgumentException if <code>category</code> is a class not     * @throws IllegalArgumentException if <code>category</code> is a class not
182     * implementing <code>Attribute</code>.     * implementing <code>Attribute</code>.
183     */     */
184    boolean isAttributeCategorySupported(Class category);    boolean isAttributeCategorySupported(Class<? extends Attribute> category);
185        
186    /**    /**
187     * Determines a given attribute value is supported when creating a print job     * Determines a given attribute value is supported when creating a print job

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26