Package com.six.timapi.receipts
Class CustomReceiptFormatter.TextElement
- java.lang.Object
-
- com.six.timapi.receipts.CustomReceiptFormatter.TextElement
-
- Enclosing class:
- CustomReceiptFormatter
public static class CustomReceiptFormatter.TextElement extends Object
Text element. Can be static text or dynamic content.
-
-
Constructor Summary
Constructors Constructor Description TextElement(CustomReceiptFormatter.TextType type, CustomReceiptFormatter.TextAlignment alignment)
Create text element.TextElement(CustomReceiptFormatter.TextType type, CustomReceiptFormatter.TextAlignment alignment, ReceiptType receiptType)
Create text element.TextElement(CustomReceiptFormatter.TranslatedText translatedText, String format, CustomReceiptFormatter.TextAlignment alignment)
Create text element.TextElement(CustomReceiptFormatter.TranslatedText translatedText, String format, CustomReceiptFormatter.TextAlignment alignment, ReceiptType receiptType)
Create text element.TextElement(String text, CustomReceiptFormatter.TextAlignment alignment)
Create text element.TextElement(String text, CustomReceiptFormatter.TextAlignment alignment, ReceiptType receiptType)
Create text element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomReceiptFormatter.TextAlignment
getAlignment()
ReceiptType
getReceiptType()
String
getText()
CustomReceiptFormatter.TranslatedText
getTranslatedText()
CustomReceiptFormatter.TextType
getType()
-
-
-
Constructor Detail
-
TextElement
public TextElement(String text, CustomReceiptFormatter.TextAlignment alignment)
Create text element.
-
TextElement
public TextElement(CustomReceiptFormatter.TranslatedText translatedText, String format, CustomReceiptFormatter.TextAlignment alignment)
Create text element.
-
TextElement
public TextElement(String text, CustomReceiptFormatter.TextAlignment alignment, ReceiptType receiptType)
Create text element.
-
TextElement
public TextElement(CustomReceiptFormatter.TranslatedText translatedText, String format, CustomReceiptFormatter.TextAlignment alignment, ReceiptType receiptType)
Create text element.
-
TextElement
public TextElement(CustomReceiptFormatter.TextType type, CustomReceiptFormatter.TextAlignment alignment)
Create text element.
-
TextElement
public TextElement(CustomReceiptFormatter.TextType type, CustomReceiptFormatter.TextAlignment alignment, ReceiptType receiptType)
Create text element.
-
-
Method Detail
-
getType
public CustomReceiptFormatter.TextType getType()
-
getAlignment
public CustomReceiptFormatter.TextAlignment getAlignment()
-
getText
public String getText()
-
getTranslatedText
public CustomReceiptFormatter.TranslatedText getTranslatedText()
-
getReceiptType
public ReceiptType getReceiptType()
-
-