public class Feature extends Object implements IPrintTicketItem, IFeatureItem, Iterable<IFeatureItem>
Class incapsulating common print ticket feature.
| Modifier and Type | Class and Description |
|---|---|
static class |
Feature.PageMediaSize
Convenience class for PageMediaSize print ticket feature.
|
static class |
Feature.PageOrientation
Convenience class for PageOrientation print ticket feature.
|
| Constructor and Description |
|---|
Feature(String name,
Feature feature,
Property... properties)
Creates common print ticket feature instance.
|
Feature(String name,
Option option,
Property... properties)
Creates common print ticket feature instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IFeatureItem... items)
Adds list of items to the end of feature items list.
|
String |
getName()
Returns feature name.
|
Iterator<IFeatureItem> |
iterator()
Implementation of
Iterator<IFeatureItem> interface. |
String |
toString()
Returns the string representation.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Feature(String name, Option option, Property... properties)
Creates common print ticket feature instance.
name - Feature name.option - Mandatory Option object.properties - Arbitrary array Property objects to insert before option.public String getName()
Returns feature name.
getName in interface IPrintTicketItempublic void add(IFeatureItem... items)
Adds list of items to the end of feature items list.
Each one must be a Feature, Option or Property object.
items - List of items to add.public String toString()
Returns the string representation.
public Iterator<IFeatureItem> iterator()
Implementation of Iterator<IFeatureItem> interface.
iterator in interface Iterable<IFeatureItem>Copyright © 2021 Aspose. All Rights Reserved.