}
}
public void loadJobNode(Node arg0) throws LoadJobException {
try {
Node firstNode = (Node) arg0.selectSingleNode("first/@value");
if (firstNode != null && firstNode.getText().length() > 0) {
Node firstPwd = (Node) arg0.selectSingleNode("first/@password");
selectionPanel.getLoader().addFile(new File(firstNode.getText()),
(firstPwd != null) ? firstPwd.getText() : null);
}
Node secondNode = (Node) arg0.selectSingleNode("second/@value");
if (secondNode != null && secondNode.getText().length() > 0) {
Node secondPwd = (Node) arg0.selectSingleNode("second/@password");
selectionPanel.getLoader().addFile(new File(secondNode.getText()),
(secondPwd != null) ? secondPwd.getText() : null);
}
Node fileDestination = (Node) arg0.selectSingleNode("destination/@value");
if (fileDestination != null) {
destinationTextField.setText(fileDestination.getText());
}
Node stepDestination = (Node) arg0.selectSingleNode("step/@value");
if (stepDestination != null) {
stepTextField.setText(stepDestination.getText());
}
Node secondStepDestination = (Node) arg0.selectSingleNode("secondstep/@value");
if (secondStepDestination != null) {
secondStepTextField.setText(secondStepDestination.getText());
}
Node fileOverwrite = (Node) arg0.selectSingleNode("overwrite/@value");
if (fileOverwrite != null) {
overwriteCheckbox.setSelected(TRUE.equals(fileOverwrite.getText()));
}
Node reverseFirst = (Node) arg0.selectSingleNode("reverse_first/@value");
if (reverseFirst != null) {
reverseFirstCheckbox.setSelected(TRUE.equals(reverseFirst.getText()));
}
Node reverseSecond = (Node) arg0.selectSingleNode("reverse_second/@value");
if (reverseSecond != null) {
reverseSecondCheckbox.setSelected(TRUE.equals(reverseSecond.getText()));
}
Node fileCompressed = (Node) arg0.selectSingleNode("compressed/@value");
if (fileCompressed != null && TRUE.equals(fileCompressed.getText())) {
outputCompressedCheck.doClick();
}
Node pdfVersion = (Node) arg0.selectSingleNode("pdfversion/@value");
if (pdfVersion != null) {
for (int i = 0; i < versionCombo.getItemCount(); i++) {
if (((StringItem) versionCombo.getItemAt(i)).getId().equals(pdfVersion.getText())) {
versionCombo.setSelectedIndex(i);
break;
}
}
}