-
public abstract class Receipt
-
-
Field Summary
Fields Modifier and Type Field Description private List<List<PrintItem>>linesprivate ReceiptTypereceiptTypeprivate BooleanisReprintprivate BooleanisPreRenderedprivate final PrinterOptionsoptions
-
Constructor Summary
Constructors Constructor Description Receipt(PrinterOptions options)
-
Method Summary
Modifier and Type Method Description final List<List<PrintItem>>getLines()final UnitsetLines(List<List<PrintItem>> lines)final ReceiptTypegetReceiptType()final UnitsetReceiptType(ReceiptType receiptType)final BooleangetIsReprint()final UnitsetIsReprint(Boolean isReprint)BooleangetIsPreRendered()UnitsetIsPreRendered(Boolean isPreRendered)final PrinterOptionsgetOptions()final UnitaddLine(PrintItem line)final UnitprintSplitter()final UnitprintText(String text, Integer align, Float textSize, Boolean isBold)final UnitprintPair(String label, String value, Integer labelPercent, Float textSize, Boolean isBold)List<List<PrintItem>>getPrintLines(Context context, Boolean refresh)-
-
Constructor Detail
-
Receipt
Receipt(PrinterOptions options)
-
-
Method Detail
-
getReceiptType
final ReceiptType getReceiptType()
-
setReceiptType
final Unit setReceiptType(ReceiptType receiptType)
-
getIsReprint
final Boolean getIsReprint()
-
setIsReprint
final Unit setIsReprint(Boolean isReprint)
-
getIsPreRendered
Boolean getIsPreRendered()
-
setIsPreRendered
Unit setIsPreRendered(Boolean isPreRendered)
-
getOptions
final PrinterOptions getOptions()
-
printSplitter
final Unit printSplitter()
-
printPair
final Unit printPair(String label, String value, Integer labelPercent, Float textSize, Boolean isBold)
-
-
-
-