Package org.brixcms.markup.tag.simple

Examples of org.brixcms.markup.tag.simple.SimpleTag


        List<Item> body = filter(transform(originalItems, null));

        Map<String, String> emptyMap = Collections.emptyMap();
        List<Item> result = new ArrayList<Item>();

        result.add(new SimpleTag("wicket:head", Tag.Type.OPEN, emptyMap));
        result.addAll(headContent);
        result.add(new SimpleTag("wicket:head", Tag.Type.CLOSE, emptyMap));

        result.add(new SimpleTag("wicket:panel", Tag.Type.OPEN, emptyMap));
        result.addAll(body);
        result.add(new SimpleTag("wicket:panel", Tag.Type.CLOSE, emptyMap));

        return result;
    }
View Full Code Here


            if (i instanceof Tag) {
                Tag tag = (Tag) i;

                if (wasHead == false && (isHead(tag) || "body".equals(tag.getName()))) {
                    Map<String, String> emptyMap = Collections.emptyMap();
                    result.add(new SimpleTag("head", Tag.Type.OPEN, emptyMap));
                    result.addAll(headContent);
                    result.add(new SimpleTag("head", Tag.Type.CLOSE, null));
                    if ("body".equals(tag.getName())) {
                        bodyDepth++;
                        result.add(tag);
                    }
                    wasHead = true;
View Full Code Here

        if ("!doctype".equals(tagName)) {
            this.doctype = tag.toHtml();
        } else if (type == Tag.Type.CLOSE) {
            if (!isKnownBrixTag(tagName)) {
                Map<String, String> attributes = Collections.emptyMap();
                items.add(new SimpleTag(tagName, type, attributes));
            }
        } else {
            Map<String, String> attributes = getAttributes(tag);
            if (isKnownBrixTag(tagName)) {
                processBrixTag(nodes, current, items, tagName, getAttributes(tag), type);
            } else {
                items.add(new SimpleTag(tagName, type, attributes));
            }
        }
    }
View Full Code Here

        } else if ("tile".equals(simpleTagName)) {
            String id = attributes.get(AbstractContainer.MARKUP_TILE_ID);
            //Map<String, String> newAttributes = new HashMap<String, String>(attributes);
            //newAttributes.remove("id");           
            items.add(new TileTag("div", Type.OPEN, attributes, node, id));
            items.add(new SimpleTag("div", Type.CLOSE, null));
        }
    }
View Full Code Here

TOP

Related Classes of org.brixcms.markup.tag.simple.SimpleTag

Copyright © 2018 www.massapicom. 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.