Package org.dom4j

Examples of org.dom4j.Element.addAttribute()


        Element query = setChildElement("query", "http://jabber.org/protocol/muc#owner");
        Element form = query.addElement("x", "jabber:x:data");
        form.addAttribute("type", "submit");
        // Add static field
        Element field = form.addElement("field");
        field.addAttribute("var", "FORM_TYPE");
        field.addElement("value").setText("http://jabber.org/protocol/muc#roomconfig");
        // Add the specified fields and their corresponding values
        for (String variable : fieldValues.keySet()) {
            field = form.addElement("field");
            field.addAttribute("var", variable);
View Full Code Here


        field.addAttribute("var", "FORM_TYPE");
        field.addElement("value").setText("http://jabber.org/protocol/muc#roomconfig");
        // Add the specified fields and their corresponding values
        for (String variable : fieldValues.keySet()) {
            field = form.addElement("field");
            field.addAttribute("var", variable);
            for (String value : fieldValues.get(variable)) {
                field.addElement("value").setText(value);
            }
        }
    }
View Full Code Here

     */
    public Invitation(String invitee, String reason) {
        super();
        Element element = addChildElement("x", "http://jabber.org/protocol/muc#user");
        Element invite = element.addElement("invite");
        invite.addAttribute("to", invitee);
        if (reason != null && reason.length() > 0) {
            invite.addElement("reason").setText(reason);
        }
    }
}
View Full Code Here

        try {
            if (arg0 != null) {
                PdfSelectionTableItem[] items = selectionPanel.getTableRows();
                if (items != null && items.length > 0) {
                    Element firstNode = ((Element) arg0).addElement("first");
                    firstNode.addAttribute("value", items[0].getInputFile().getAbsolutePath());
                    if (savePasswords) {
                        firstNode.addAttribute("password", items[0].getPassword());
                    }

                    Element secondNode = ((Element) arg0).addElement("second");
View Full Code Here

                PdfSelectionTableItem[] items = selectionPanel.getTableRows();
                if (items != null && items.length > 0) {
                    Element firstNode = ((Element) arg0).addElement("first");
                    firstNode.addAttribute("value", items[0].getInputFile().getAbsolutePath());
                    if (savePasswords) {
                        firstNode.addAttribute("password", items[0].getPassword());
                    }

                    Element secondNode = ((Element) arg0).addElement("second");
                    if (items.length > 1) {
                        secondNode.addAttribute("value", items[1].getInputFile().getAbsolutePath());
View Full Code Here

                        firstNode.addAttribute("password", items[0].getPassword());
                    }

                    Element secondNode = ((Element) arg0).addElement("second");
                    if (items.length > 1) {
                        secondNode.addAttribute("value", items[1].getInputFile().getAbsolutePath());
                        if (savePasswords) {
                            secondNode.addAttribute("password", items[1].getPassword());
                        }
                    }
                }
View Full Code Here

                    Element secondNode = ((Element) arg0).addElement("second");
                    if (items.length > 1) {
                        secondNode.addAttribute("value", items[1].getInputFile().getAbsolutePath());
                        if (savePasswords) {
                            secondNode.addAttribute("password", items[1].getPassword());
                        }
                    }
                }

                Element fileDestination = ((Element) arg0).addElement("destination");
View Full Code Here

                        }
                    }
                }

                Element fileDestination = ((Element) arg0).addElement("destination");
                fileDestination.addAttribute("value", destinationTextField.getText());

                Element stepDestination = ((Element) arg0).addElement("step");
                stepDestination.addAttribute("value", stepTextField.getText());

                Element secondStepDestination = ((Element) arg0).addElement("secondstep");
View Full Code Here

                Element fileDestination = ((Element) arg0).addElement("destination");
                fileDestination.addAttribute("value", destinationTextField.getText());

                Element stepDestination = ((Element) arg0).addElement("step");
                stepDestination.addAttribute("value", stepTextField.getText());

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

                Element reverseFirst = ((Element) arg0).addElement("reverse_first");
View Full Code Here

                Element stepDestination = ((Element) arg0).addElement("step");
                stepDestination.addAttribute("value", stepTextField.getText());

                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");
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.