Package org.jboss.dashboard.commons.xml

Examples of org.jboss.dashboard.commons.xml.XMLNode.addAttribute()


        node.addAttribute(SECTION_ATTR_ID, section.getId().toString());
        node.addAttribute(SECTION_ATTR_ID_TEMPLATE, section.getLayoutId());
        node.addAttribute(SECTION_ATTR_POSITION, String.valueOf(section.getPosition()));
        node.addAttribute(SECTION_ATTR_VISIBLE, section.isVisible().toString());
        node.addAttribute(SECTION_ATTR_REGIONSPACING, section.getRegionsCellSpacing().toString());
        node.addAttribute(SECTION_ATTR_PANELSPACING, section.getPanelsCellSpacing().toString());
        if (section.getParentSectionId() != null)
            node.addAttribute(SECTION_ATTR_PARENT_ID, section.getParentSectionId().toString());
        node.addAttribute(SECTION_ATTR_FR_URL, section.getFriendlyUrl());
        node.addAttribute(SECTION_ATTR_SKIN_ID, section.getSkinId());
        node.addAttribute(SECTION_ATTR_ENVELOPE_ID, section.getEnvelopeId());
View Full Code Here


        node.addAttribute(SECTION_ATTR_POSITION, String.valueOf(section.getPosition()));
        node.addAttribute(SECTION_ATTR_VISIBLE, section.isVisible().toString());
        node.addAttribute(SECTION_ATTR_REGIONSPACING, section.getRegionsCellSpacing().toString());
        node.addAttribute(SECTION_ATTR_PANELSPACING, section.getPanelsCellSpacing().toString());
        if (section.getParentSectionId() != null)
            node.addAttribute(SECTION_ATTR_PARENT_ID, section.getParentSectionId().toString());
        node.addAttribute(SECTION_ATTR_FR_URL, section.getFriendlyUrl());
        node.addAttribute(SECTION_ATTR_SKIN_ID, section.getSkinId());
        node.addAttribute(SECTION_ATTR_ENVELOPE_ID, section.getEnvelopeId());
        Map<String, String> title = section.getTitle();
        for (String lang : title.keySet()) {
View Full Code Here

        node.addAttribute(SECTION_ATTR_VISIBLE, section.isVisible().toString());
        node.addAttribute(SECTION_ATTR_REGIONSPACING, section.getRegionsCellSpacing().toString());
        node.addAttribute(SECTION_ATTR_PANELSPACING, section.getPanelsCellSpacing().toString());
        if (section.getParentSectionId() != null)
            node.addAttribute(SECTION_ATTR_PARENT_ID, section.getParentSectionId().toString());
        node.addAttribute(SECTION_ATTR_FR_URL, section.getFriendlyUrl());
        node.addAttribute(SECTION_ATTR_SKIN_ID, section.getSkinId());
        node.addAttribute(SECTION_ATTR_ENVELOPE_ID, section.getEnvelopeId());
        Map<String, String> title = section.getTitle();
        for (String lang : title.keySet()) {
            String value = title.get(lang);
View Full Code Here

        node.addAttribute(SECTION_ATTR_REGIONSPACING, section.getRegionsCellSpacing().toString());
        node.addAttribute(SECTION_ATTR_PANELSPACING, section.getPanelsCellSpacing().toString());
        if (section.getParentSectionId() != null)
            node.addAttribute(SECTION_ATTR_PARENT_ID, section.getParentSectionId().toString());
        node.addAttribute(SECTION_ATTR_FR_URL, section.getFriendlyUrl());
        node.addAttribute(SECTION_ATTR_SKIN_ID, section.getSkinId());
        node.addAttribute(SECTION_ATTR_ENVELOPE_ID, section.getEnvelopeId());
        Map<String, String> title = section.getTitle();
        for (String lang : title.keySet()) {
            String value = title.get(lang);
            XMLNode titleNode = new XMLNode(PARAMETER, node);
View Full Code Here

        node.addAttribute(SECTION_ATTR_PANELSPACING, section.getPanelsCellSpacing().toString());
        if (section.getParentSectionId() != null)
            node.addAttribute(SECTION_ATTR_PARENT_ID, section.getParentSectionId().toString());
        node.addAttribute(SECTION_ATTR_FR_URL, section.getFriendlyUrl());
        node.addAttribute(SECTION_ATTR_SKIN_ID, section.getSkinId());
        node.addAttribute(SECTION_ATTR_ENVELOPE_ID, section.getEnvelopeId());
        Map<String, String> title = section.getTitle();
        for (String lang : title.keySet()) {
            String value = title.get(lang);
            XMLNode titleNode = new XMLNode(PARAMETER, node);
            titleNode.addAttribute(PARAMETER_ATTR_NAME, SECTION_CHILD_TITLE);
View Full Code Here

        node.addAttribute(SECTION_ATTR_ENVELOPE_ID, section.getEnvelopeId());
        Map<String, String> title = section.getTitle();
        for (String lang : title.keySet()) {
            String value = title.get(lang);
            XMLNode titleNode = new XMLNode(PARAMETER, node);
            titleNode.addAttribute(PARAMETER_ATTR_NAME, SECTION_CHILD_TITLE);
            titleNode.addAttribute(PARAMETER_ATTR_VALUE, value);
            titleNode.addAttribute(PARAMETER_ATTR_LANG, lang);
            node.addChild(titleNode);
        }
        currentNode.addChild(node);
View Full Code Here

        Map<String, String> title = section.getTitle();
        for (String lang : title.keySet()) {
            String value = title.get(lang);
            XMLNode titleNode = new XMLNode(PARAMETER, node);
            titleNode.addAttribute(PARAMETER_ATTR_NAME, SECTION_CHILD_TITLE);
            titleNode.addAttribute(PARAMETER_ATTR_VALUE, value);
            titleNode.addAttribute(PARAMETER_ATTR_LANG, lang);
            node.addChild(titleNode);
        }
        currentNode.addChild(node);
        currentNode = node;
View Full Code Here

        for (String lang : title.keySet()) {
            String value = title.get(lang);
            XMLNode titleNode = new XMLNode(PARAMETER, node);
            titleNode.addAttribute(PARAMETER_ATTR_NAME, SECTION_CHILD_TITLE);
            titleNode.addAttribute(PARAMETER_ATTR_VALUE, value);
            titleNode.addAttribute(PARAMETER_ATTR_LANG, lang);
            node.addChild(titleNode);
        }
        currentNode.addChild(node);
        currentNode = node;
        return node;
View Full Code Here

        return node;
    }

    public Object visitPanelInstance(PanelInstance instance) throws Exception {
        XMLNode node = new XMLNode(PANEL_INSTANCE, currentNode);
        node.addAttribute(PANELINSTANCE_ATTR_ID, instance.getInstanceId().toString());
        node.addAttribute(PANELINSTANCE_ATTR_SERIALIZATION, instance.getPersistence() == null ? "" : instance.getPersistence());
        node.addAttribute(PANELINSTANCE_ATTR_PROVIDER, instance.getProviderName());
        if (instance.getProvider().getDriver() instanceof Exportable) {
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            ((Exportable) instance.getProvider().getDriver()).exportContent(instance, bos);
View Full Code Here

    }

    public Object visitPanelInstance(PanelInstance instance) throws Exception {
        XMLNode node = new XMLNode(PANEL_INSTANCE, currentNode);
        node.addAttribute(PANELINSTANCE_ATTR_ID, instance.getInstanceId().toString());
        node.addAttribute(PANELINSTANCE_ATTR_SERIALIZATION, instance.getPersistence() == null ? "" : instance.getPersistence());
        node.addAttribute(PANELINSTANCE_ATTR_PROVIDER, instance.getProviderName());
        if (instance.getProvider().getDriver() instanceof Exportable) {
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            ((Exportable) instance.getProvider().getDriver()).exportContent(instance, bos);
            byte[] content = bos.toByteArray();
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.