public class FieldDescriptionData extends Object implements Comparable<FieldDescriptionData>
FieldDescriptionData
.
! DF SHELF.FMT ! 0 200 200 210 1 CENTER TEXT 4 3 0 15 \\ TEXT 4 0 0 95 \\ FORM PRINTThe first
FieldDescriptionData
will contain a fieldNumber
of 1, and a fieldName
of
null. The second FieldDescriptionData
will contain a fieldNumber
of 2, and a
fieldName
of null. FieldDescriptionData
.
^XA ^DFR:SHELF.ZPL^FS ^FO25,25^A0N,50,50^FN15"Name"^FS ^FO25,75^A0N,50,50^FN15"Address"^FS ^FO25,125^A0N,50,50^FN18^FS ^FO25,175^A0N,50,50^FN15 ^XZThe first
FieldDescriptionData
will contain a fieldNumber
of 15, and a fieldName
of
"Address". The second FieldDescriptionData
will contain a fieldNumber
of 18, and a
fieldName
of null. Modifier and Type | Field and Description |
---|---|
String |
fieldName
In CPCL, this field is always null. In ZPL, this field will correspond to the optional name parameter of the ^FN command, or null if the parameter is not present |
int |
fieldNumber
In CPCL, this number will be the number of the variable field in the format. |
Constructor and Description |
---|
FieldDescriptionData(int fieldNumber,
String fieldName)
Create a descriptor for a field
|
public final int fieldNumber
public final String fieldName
public FieldDescriptionData(int fieldNumber, String fieldName)
fieldNumber
- the number of the fieldfieldName
- the name of the field, or null if not presentpublic int compareTo(FieldDescriptionData o)
compareTo
in interface Comparable<FieldDescriptionData>
Comparable.compareTo(java.lang.Object)
© 2016 ZIH Corp. All Rights Reserved.