}
}
public void loadJobNode(Node arg0) throws LoadJobException {
try {
Node fileSource = (Node) arg0.selectSingleNode("source/@value");
if (fileSource != null && fileSource.getText().length() > 0) {
Node filePwd = (Node) arg0.selectSingleNode("source/@password");
String password = null;
if (filePwd != null && filePwd.getText().length() > 0) {
password = filePwd.getText();
}
selectionPanel.getLoader().addFile(new File(fileSource.getText()), password);
}
Node splitOption = (Node) arg0.selectSingleNode("split_option/@value");
if (splitOption != null) {
if (splitOption.getText().equals(burstRadio.getSplitCommand()))
burstRadio.doClick();
else if (splitOption.getText().equals(everyNRadio.getSplitCommand()))
everyNRadio.doClick();
else if (splitOption.getText().equals(evenRadio.getSplitCommand()))
evenRadio.doClick();
else if (splitOption.getText().equals(oddRadio.getSplitCommand()))
oddRadio.doClick();
else if (splitOption.getText().equals(thisPageRadio.getSplitCommand()))
thisPageRadio.doClick();
else if (splitOption.getText().equals(sizeRadio.getSplitCommand()))
sizeRadio.doClick();
else if (splitOption.getText().equals(bookmarksLevel.getSplitCommand()))
bookmarksLevel.doClick();
}
Node splitNpages = (Node) arg0.selectSingleNode("npages/@value");
if (splitNpages != null) {
nPagesTextField.setText(splitNpages.getText());
}
Node splitThispage = (Node) arg0.selectSingleNode("thispage/@value");
if (splitThispage != null) {
thisPageTextField.setText(splitThispage.getText());
}
Node splitSize = (Node) arg0.selectSingleNode("splitsize/@value");
if (splitSize != null) {
splitSizeCombo.setSelectedItem(splitSize.getText());
}
Node bookLevel = (Node) arg0.selectSingleNode("bookmarkslevel/@value");
if (bookLevel != null) {
bLevelCombo.setSelectedItem(bookLevel.getText());
}
Node fileDestination = (Node) arg0.selectSingleNode("destination/@value");
if (fileDestination != null && fileDestination.getText().length() > 0) {
destinationFolderText.setText(fileDestination.getText());
chooseAFolderRadio.doClick();
} else {
sameAsSourceRadio.doClick();
}
Node fileOverwrite = (Node) arg0.selectSingleNode("overwrite/@value");
if (fileOverwrite != null) {
overwriteCheckbox.setSelected(TRUE.equals(fileOverwrite.getText()));
}
Node fileCompressed = (Node) arg0.selectSingleNode("compressed/@value");
if (fileCompressed != null && TRUE.equals(fileCompressed.getText())) {
outputCompressedCheck.doClick();
}
Node filePrefix = (Node) arg0.selectSingleNode("prefix/@value");
if (filePrefix != null) {
outPrefixText.setText(filePrefix.getText());
}
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;
}
}
}