jcboMachineScreenmode.setSelectedItem(config.getProperty("machine.screenmode"));
jcboTicketsBag.setSelectedItem(config.getProperty("machine.ticketsbag"));
jcboPrintEnabled.setSelectedItem(config.getProperty("machine.printerenabled"));
StringParser p = new StringParser(config.getProperty("machine.printer"));
String sparam = unifySerialInterface(p.nextToken(':'));
if ("serial".equals(sparam) || "file".equals(sparam)) {
jcboMachinePrinter.setSelectedItem("epson");
jcboConnPrinter.setSelectedItem(sparam);
jcboSerialPrinter.setSelectedItem(p.nextToken(','));
} else if ("javapos".equals(sparam)) {
jcboMachinePrinter.setSelectedItem(sparam);
m_jtxtJPOSPrinter.setText(p.nextToken(','));
m_jtxtJPOSDrawer.setText(p.nextToken(','));
} else if ("bash".equals(sparam)) {
jcboMachinePrinter.setSelectedItem(sparam);
m_jtxtJPOSPrinter.setText(p.nextToken(','));
m_jtxtJPOSDrawer.setText(p.nextToken(','));
} else if ("printer".equals(sparam)) {
jcboMachinePrinter.setSelectedItem(sparam);
printer1printerparams.setParameters(p);
} else {
jcboMachinePrinter.setSelectedItem(sparam);
jcboConnPrinter.setSelectedItem(unifySerialInterface(p.nextToken(',')));
jcboSerialPrinter.setSelectedItem(p.nextToken(','));
}
p = new StringParser(config.getProperty("machine.printer.2"));
sparam = unifySerialInterface(p.nextToken(':'));
if ("serial".equals(sparam) || "file".equals(sparam)) {
jcboMachinePrinter2.setSelectedItem("epson");
jcboConnPrinter2.setSelectedItem(sparam);
jcboSerialPrinter2.setSelectedItem(p.nextToken(','));
} else if ("javapos".equals(sparam)) {
jcboMachinePrinter2.setSelectedItem(sparam);
m_jtxtJPOSPrinter2.setText(p.nextToken(','));
m_jtxtJPOSDrawer2.setText(p.nextToken(','));
} else if ("bash".equals(sparam)) {
jcboMachinePrinter2.setSelectedItem(sparam);
m_jtxtJPOSPrinter2.setText(p.nextToken(','));
m_jtxtJPOSDrawer2.setText(p.nextToken(','));
} else if ("printer".equals(sparam)) {
jcboMachinePrinter2.setSelectedItem(sparam);
printer2printerparams.setParameters(p);
} else {
jcboMachinePrinter2.setSelectedItem(sparam);
jcboConnPrinter2.setSelectedItem(unifySerialInterface(p.nextToken(',')));
jcboSerialPrinter2.setSelectedItem(p.nextToken(','));
}
p = new StringParser(config.getProperty("machine.printer.3"));
sparam = unifySerialInterface(p.nextToken(':'));
if ("serial".equals(sparam) || "file".equals(sparam)) {
jcboMachinePrinter3.setSelectedItem("epson");
jcboConnPrinter3.setSelectedItem(sparam);
jcboSerialPrinter3.setSelectedItem(p.nextToken(','));
} else if ("javapos".equals(sparam)) {
jcboMachinePrinter3.setSelectedItem(sparam);
m_jtxtJPOSPrinter3.setText(p.nextToken(','));
m_jtxtJPOSDrawer3.setText(p.nextToken(','));
} else if ("bash".equals(sparam)) {
jcboMachinePrinter3.setSelectedItem(sparam);
m_jtxtJPOSPrinter3.setText(p.nextToken(','));
m_jtxtJPOSDrawer3.setText(p.nextToken(','));
} else if ("printer".equals(sparam)) {
jcboMachinePrinter3.setSelectedItem(sparam);
printer3printerparams.setParameters(p);
} else {
jcboMachinePrinter3.setSelectedItem(sparam);
jcboConnPrinter3.setSelectedItem(unifySerialInterface(p.nextToken(',')));
jcboSerialPrinter3.setSelectedItem(p.nextToken(','));
}
p = new StringParser(config.getProperty("machine.display"));
sparam = unifySerialInterface(p.nextToken(':'));
if ("serial".equals(sparam) || "file".equals(sparam)) {
jcboMachineDisplay.setSelectedItem("epson");
jcboConnDisplay.setSelectedItem(sparam);
jcboSerialDisplay.setSelectedItem(p.nextToken(','));
} else if ("javapos".equals(sparam)) {
jcboMachineDisplay.setSelectedItem(sparam);
m_jtxtJPOSName.setText(p.nextToken(','));
} else {
jcboMachineDisplay.setSelectedItem(sparam);
jcboConnDisplay.setSelectedItem(unifySerialInterface(p.nextToken(',')));
jcboSerialDisplay.setSelectedItem(p.nextToken(','));
}
p = new StringParser(config.getProperty("machine.scale"));
sparam = p.nextToken(':');
jcboMachineScale.setSelectedItem(sparam);
if ("dialog1".equals(sparam) || "samsungesp".equals(sparam)) {
jcboSerialScale.setSelectedItem(p.nextToken(','));
}
p = new StringParser(config.getProperty("machine.scanner"));
sparam = p.nextToken(':');
jcboMachineScanner.setSelectedItem(sparam);
if ("scanpal2".equals(sparam)) {
jcboSerialScanner.setSelectedItem(p.nextToken(','));
}
cboPrinters.setSelectedItem(config.getProperty("machine.printername"));
dirty.setDirty(false);