Package org.apache.isis.viewer.xhtml.viewer.tree

Examples of org.apache.isis.viewer.xhtml.viewer.tree.Element.appendChild()


    protected Element asDivIsisSession() {
        final Element div = xhtmlRenderer.div_p("Logged in as", null);

        final Element ul = xhtmlRenderer.ul(HtmlClass.SESSION);
        ul.appendChild(xhtmlRenderer.li_a("user", getSession().getUserName(), "user", "resource", HtmlClass.USER));
        div.appendChild(ul);

        return div;
    }
View Full Code Here


    protected Element resourcesDiv() {
        final Element div = xhtmlRenderer.div_p("Resources", HtmlClass.SECTION);

        final Element ul = xhtmlRenderer.ul(HtmlClass.RESOURCES);

        ul.appendChild(xhtmlRenderer.li_a("services", "Services", "services", "resources", HtmlClass.RESOURCE));
        ul.appendChild(xhtmlRenderer.li_a("specs", "Specifications (MetaModel)", "specs", "resources",
            HtmlClass.RESOURCE));
        ul.appendChild(xhtmlRenderer.li_a("user", "User (Security)", "user", "resources", HtmlClass.RESOURCE));

        div.appendChild(ul);
View Full Code Here

        final Element div = xhtmlRenderer.div_p("Resources", HtmlClass.SECTION);

        final Element ul = xhtmlRenderer.ul(HtmlClass.RESOURCES);

        ul.appendChild(xhtmlRenderer.li_a("services", "Services", "services", "resources", HtmlClass.RESOURCE));
        ul.appendChild(xhtmlRenderer.li_a("specs", "Specifications (MetaModel)", "specs", "resources",
            HtmlClass.RESOURCE));
        ul.appendChild(xhtmlRenderer.li_a("user", "User (Security)", "user", "resources", HtmlClass.RESOURCE));

        div.appendChild(ul);
        return div;
View Full Code Here

        final Element ul = xhtmlRenderer.ul(HtmlClass.RESOURCES);

        ul.appendChild(xhtmlRenderer.li_a("services", "Services", "services", "resources", HtmlClass.RESOURCE));
        ul.appendChild(xhtmlRenderer.li_a("specs", "Specifications (MetaModel)", "specs", "resources",
            HtmlClass.RESOURCE));
        ul.appendChild(xhtmlRenderer.li_a("user", "User (Security)", "user", "resources", HtmlClass.RESOURCE));

        div.appendChild(ul);
        return div;
    }
View Full Code Here

        Element td;
        tr = new Element("tr");
        table.appendChild(tr);

        td = new Element("td");
        td.appendChild(key);
        tr.appendChild(td);

        td = new Element("td");
        td.appendChild(value);
        td.addAttribute(new Attribute("class", htmlClassAttribute));
View Full Code Here

        td = new Element("td");
        td.appendChild(key);
        tr.appendChild(td);

        td = new Element("td");
        td.appendChild(value);
        td.addAttribute(new Attribute("class", htmlClassAttribute));
        tr.appendChild(td);
    }

    // //////////////////////////////////////////////////////////////
View Full Code Here

    }

    @Override
    public Element th() {
        final Element th = new Element("th");
        th.appendChild(headerText);
        return th;
    }

    @Override
    public Element td(final T t) {
View Full Code Here

        final Element ul = xhtmlRenderer.ul(HtmlClass.SERVICES);
        final List<ObjectAdapter> serviceAdapters = getPersistenceSession().getServices();
        for (final ObjectAdapter serviceAdapter : serviceAdapters) {
            final String uri =
                MessageFormat.format("{0}/object/{1}", getServletRequest().getContextPath(), getOidStr(serviceAdapter));
            ul.appendChild(xhtmlRenderer.li_a(uri, serviceAdapter.titleString(), "object", "services",
                HtmlClass.SERVICE));
        }
        div.appendChild(ul);

        xhtml.appendToBody(div);
View Full Code Here

        final List<ObjectSpecification> sorted = allSpecs;
        for (final ObjectSpecification spec : sorted) {
            final String specFullName = spec.getFullIdentifier();
            final String uri =
                MessageFormat.format("{0}/specs/{1}", getServletRequest().getContextPath(), specFullName);
            ul.appendChild(xhtmlRenderer.li_a(uri, specFullName, "spec", "specs", HtmlClass.SPECIFICATION));
        }
        div.appendChild(ul);

        xhtml.appendToBody(div);
View Full Code Here

        final Element div = xhtmlRenderer.div_p("Owners", null);
        xhtml.appendToBody(div);
        final Element ul = xhtmlRenderer.ul(HtmlClass.SPECIFICATION);

        final String uri = MessageFormat.format("{0}/specs/{1}", getServletRequest().getContextPath(), specFullName);
        ul.appendChild(xhtmlRenderer.aHref(uri, "owning spec", "spec", "property", HtmlClass.SPECIFICATION));

        div.appendChild(ul);

        final ObjectSpecification noSpec = getSpecification(specFullName);
        final ObjectAssociation property = noSpec.getAssociation(propertyName);
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.