Package org.dom4j

Examples of org.dom4j.Element.addAttribute()


                Element secondStepDestination = ((Element) arg0).addElement("secondstep");
                secondStepDestination.addAttribute("value", secondStepTextField.getText());

                Element reverseFirst = ((Element) arg0).addElement("reverse_first");
                reverseFirst.addAttribute("value", reverseFirstCheckbox.isSelected() ? TRUE : FALSE);

                Element reverseSecond = ((Element) arg0).addElement("reverse_second");
                reverseSecond.addAttribute("value", reverseSecondCheckbox.isSelected() ? TRUE : FALSE);

                Element fileOverwrite = ((Element) arg0).addElement("overwrite");
View Full Code Here


                Element reverseFirst = ((Element) arg0).addElement("reverse_first");
                reverseFirst.addAttribute("value", reverseFirstCheckbox.isSelected() ? TRUE : FALSE);

                Element reverseSecond = ((Element) arg0).addElement("reverse_second");
                reverseSecond.addAttribute("value", reverseSecondCheckbox.isSelected() ? TRUE : FALSE);

                Element fileOverwrite = ((Element) arg0).addElement("overwrite");
                fileOverwrite.addAttribute("value", overwriteCheckbox.isSelected() ? TRUE : FALSE);

                Element fileCompress = ((Element) arg0).addElement("compressed");
View Full Code Here

                Element reverseSecond = ((Element) arg0).addElement("reverse_second");
                reverseSecond.addAttribute("value", reverseSecondCheckbox.isSelected() ? TRUE : FALSE);

                Element fileOverwrite = ((Element) arg0).addElement("overwrite");
                fileOverwrite.addAttribute("value", overwriteCheckbox.isSelected() ? TRUE : FALSE);

                Element fileCompress = ((Element) arg0).addElement("compressed");
                fileCompress.addAttribute("value", outputCompressedCheck.isSelected() ? TRUE : FALSE);

                Element pdfVersion = ((Element) arg0).addElement("pdfversion");
View Full Code Here

                Element fileOverwrite = ((Element) arg0).addElement("overwrite");
                fileOverwrite.addAttribute("value", overwriteCheckbox.isSelected() ? TRUE : FALSE);

                Element fileCompress = ((Element) arg0).addElement("compressed");
                fileCompress.addAttribute("value", outputCompressedCheck.isSelected() ? TRUE : FALSE);

                Element pdfVersion = ((Element) arg0).addElement("pdfversion");
                pdfVersion.addAttribute("value", ((StringItem) versionCombo.getSelectedItem()).getId());
            }
            return arg0;
View Full Code Here

                Element fileCompress = ((Element) arg0).addElement("compressed");
                fileCompress.addAttribute("value", outputCompressedCheck.isSelected() ? TRUE : FALSE);

                Element pdfVersion = ((Element) arg0).addElement("pdfversion");
                pdfVersion.addAttribute("value", ((StringItem) versionCombo.getSelectedItem()).getId());
            }
            return arg0;
        } catch (Exception ex) {
            throw new SaveJobException(ex);
        }
View Full Code Here

       
        elements = document.selectNodes("//*[contains(@*,'%module%')]");
        for (final Iterator it = elements.iterator(); it.hasNext(); )
        {
            Element element = (Element)it.next();
            element.addAttribute(
                    "name",
                    StringUtils.replace(
                            element.attributeValue("name"),
                            "%module%",
                            this.getProjectName()));
View Full Code Here

            Document document = DocumentHelper.createDocument();
            Element root = document.addElement("filelist");
            for (int i = 0; i < rows.length; i++) {
                PdfSelectionTableItem row = rows[i];
                Element node = (Element) root.addElement("file");
                node.addAttribute("value", row.getInputFile().getAbsolutePath());
                String pwd = row.getPassword();
                if (pwd != null && pwd.length() > 0) {
                    node.addAttribute("password", pwd);
                }
            }
View Full Code Here

                PdfSelectionTableItem row = rows[i];
                Element node = (Element) root.addElement("file");
                node.addAttribute("value", row.getInputFile().getAbsolutePath());
                String pwd = row.getPassword();
                if (pwd != null && pwd.length() > 0) {
                    node.addAttribute("password", pwd);
                }
            }
            BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(selectedFile));
            OutputFormat format = OutputFormat.createPrettyPrint();
            format.setEncoding("UTF-8");
View Full Code Here

            if (arg0 != null) {
                Element filelist = ((Element) arg0).addElement("filelist");
                PdfSelectionTableItem[] items = selectionPanel.getTableRows();
                for (int i = 0; i < items.length; i++) {
                    Element fileNode = ((Element) filelist).addElement("file");
                    fileNode.addAttribute("name", items[i].getInputFile().getAbsolutePath());
                    fileNode.addAttribute("pageselection", (items[i].getPageSelection() != null) ? items[i]
                            .getPageSelection() : ALL_STRING);
                    if (savePasswords) {
                        fileNode.addAttribute("password", items[i].getPassword());
                    }
View Full Code Here

                Element filelist = ((Element) arg0).addElement("filelist");
                PdfSelectionTableItem[] items = selectionPanel.getTableRows();
                for (int i = 0; i < items.length; i++) {
                    Element fileNode = ((Element) filelist).addElement("file");
                    fileNode.addAttribute("name", items[i].getInputFile().getAbsolutePath());
                    fileNode.addAttribute("pageselection", (items[i].getPageSelection() != null) ? items[i]
                            .getPageSelection() : ALL_STRING);
                    if (savePasswords) {
                        fileNode.addAttribute("password", items[i].getPassword());
                    }
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.