Container for printer configuration. More...
Public Member Functions | |
Config (String cfgContent) | |
cfgContent is data received from printer or data previously saved to file and reloaded. More... | |
String | toString () |
String | ToString () |
Public Attributes | |
int | Number |
Configuration number. 0-8 valid. 0 is factory configuration. 1-8 are user stored configurations. More... | |
String | Model |
The Model of the printer configuration is valid for. More... | |
String | Name |
The configuration name. This property can be left empty if naming is not desired. More... | |
String | ProgramFile |
The printer program file that configuration can be downloaded to. More... | |
String | Data |
The printer configuration values. These should not be modified. More... | |
Static Private Attributes | |
static final String | MODEL = "Model" |
static final String | PROGRAM_FILE = "Program Part" |
static final String | CFG_NUM = "Number" |
static final String | CFG_NAME = "Name" |
static final String | CFG_DATA = "Data" |
Container for printer configuration.
Printers can hold multiple configurations.
Reading/Writing different configurations can be done by using the Number property.
com.UniPRT.Sdk.Settings.Config.Config | ( | String | cfgContent | ) |
cfgContent is data received from printer or data previously saved to file and reloaded.
References com.UniPRT.Sdk.Settings.Config.CFG_DATA, com.UniPRT.Sdk.Settings.Config.CFG_NAME, com.UniPRT.Sdk.Settings.Config.CFG_NUM, com.UniPRT.Sdk.Json.JsonStringTokenizer.GetKeyValue(), com.UniPRT.Sdk.Settings.Config.MODEL, and com.UniPRT.Sdk.Settings.Config.PROGRAM_FILE.
String com.UniPRT.Sdk.Settings.Config.toString | ( | ) |
References com.UniPRT.Sdk.Settings.Config.CFG_DATA, com.UniPRT.Sdk.Settings.Config.CFG_NAME, com.UniPRT.Sdk.Settings.Config.CFG_NUM, com.UniPRT.Sdk.Settings.Config.MODEL, and com.UniPRT.Sdk.Settings.Config.PROGRAM_FILE.
Referenced by com.UniPRT.Sdk.Settings.Configs.SetConfig(), and com.UniPRT.Sdk.Settings.Config.ToString().
String com.UniPRT.Sdk.Settings.Config.ToString | ( | ) |
References com.UniPRT.Sdk.Settings.Config.toString().
|
staticprivate |
Referenced by com.UniPRT.Sdk.Settings.Config.Config(), and com.UniPRT.Sdk.Settings.Config.toString().
|
staticprivate |
Referenced by com.UniPRT.Sdk.Settings.Config.Config(), and com.UniPRT.Sdk.Settings.Config.toString().
|
staticprivate |
Referenced by com.UniPRT.Sdk.Settings.Config.Config(), and com.UniPRT.Sdk.Settings.Config.toString().
String com.UniPRT.Sdk.Settings.Config.Data |
The printer configuration values. These should not be modified.
These values should not be modified and should only be read, stored for backup purposes, and re-downloaded to printer.
|
staticprivate |
Referenced by com.UniPRT.Sdk.Settings.Config.Config(), and com.UniPRT.Sdk.Settings.Config.toString().
String com.UniPRT.Sdk.Settings.Config.Model |
The Model of the printer configuration is valid for.
The configuration can only be downloaded to the printers that match the model.
String com.UniPRT.Sdk.Settings.Config.Name |
The configuration name. This property can be left empty if naming is not desired.
The property can be used to give the configuration a more descriptive name, e.g., "ShipLabel".
Note that name should be kept short to prevent truncation by printer.
int com.UniPRT.Sdk.Settings.Config.Number |
Configuration number. 0-8 valid. 0 is factory configuration. 1-8 are user stored configurations.
This number refers to the configuration number stored in the printer memory.
|
staticprivate |
Referenced by com.UniPRT.Sdk.Settings.Config.Config(), and com.UniPRT.Sdk.Settings.Config.toString().
String com.UniPRT.Sdk.Settings.Config.ProgramFile |
The printer program file that configuration can be downloaded to.
If left empty, printer will not prevent downloading configuration to different Program File.
Leave this with value read from printer if you want to make sure configuration is only applied to printers with matching Program File.