TemplateObjectReplacer
This class contains replacement info when you print template.
Overview
You use this object to replaces the text in an object of a P-touch Template, when you print installed P-touch Template.
You use this object with printTemplate in PrinterDriver.
Instance methods
TemplateObjectReplacer
Initialize replacer to Replaces the text in an object of a P-touch Template, specified by its object name.
Declaration
Public TemplateObjectReplacer(String name, String value, Encode encode)
Parameters
| Name | Type | Description | 
|---|---|---|
| name | String | A target object name, which you want to replace, in P-touch Template | 
| value | String | A new value to set to the target object when you print | 
| encode | Encode | An encode of value | 
TemplateObjectReplacer
Initialize replacer to Replaces the text in an object of a P-touch Template, specified by its object number.
Declaration
Public TemplateObjectReplacer(int index, String value, Encode encode)
Parameters
| Name | Type | Description | 
|---|---|---|
| index | int | A target object index, which you want to replace, in P-touch Template | 
| value | String | A new value to set to the target object when you print | 
| encode | Encode | An encode of value | 
Types
Encode
Declaration
public enum Encode {
    UTF_8,
    SHIFT_JIS,
    GB_18030_2000
}