Package org.brixcms

Examples of org.brixcms.BrixNodeModel


        BrixNode tileNode = container.getTileNode(tileName);

        if (tileNode != null) {
            Tile tile = Tile.Helper.getTileOfType(TileContainerFacet.getTileClassName(tileNode),
                    tileNode.getBrix());
            return tile.newViewer(id, new BrixNodeModel(tileNode));
        } else {
            return null;
        }
    }
View Full Code Here


public class TitleText implements Text {
    private final BrixNodeModel nodeModel;

    public TitleText(AbstractContainer container) {
        nodeModel = new BrixNodeModel(container);
        nodeModel.detach();
    }
View Full Code Here

        nodeModel.detach();
    }


    public String getText() {
        AbstractContainer container = (AbstractContainer) new BrixNodeModel(nodeModel).getObject();

        String title = null;
        while (title == null && container != null) {
            title = container.getTitle();
            container = container.getTemplate();
View Full Code Here

    public boolean anyTileRequiresSSL() {
        List<BrixNode> tiles = getTileNodes();
        for (BrixNode tileNode : tiles) {
            String className = TileContainerFacet.getTileClassName(tileNode);
            Tile tile = Tile.Helper.getTileOfType(className, container.getBrix());
            IModel<BrixNode> tileNodeModel = new BrixNodeModel(tileNode);
            if (tile.requiresSSL(tileNodeModel)) {
                return true;
            }
        }
        return false;
View Full Code Here

        if (node.hasProperty(PROPERTY_PATH_PREFIX))
            r.pathPrefix = node.getProperty(PROPERTY_PATH_PREFIX).getString();
        if (node.hasProperty(PROPERTY_PRIORITY))
            r.priority = (int) node.getProperty(PROPERTY_PRIORITY).getLong();
        if (node.hasProperty(PROPERTY_TEMPLATE))
            r.templateModel = new BrixNodeModel((BrixNode) node.getProperty(PROPERTY_TEMPLATE).getNode());
        if (node.hasProperty(PROPERTY_TYPE))
            r.type = Type.valueOf(node.getProperty(PROPERTY_TYPE).getString());
        if (node.hasProperty(PROPERTY_EXTENSIONS))
            r.extensions = node.getProperty(PROPERTY_EXTENSIONS).getString();
View Full Code Here

        this.priority = priority;
    }

    public IModel<BrixNode> getTemplateModel() {
        if (templateModel == null)
            templateModel = new BrixNodeModel();

        return templateModel;
    }
View Full Code Here

        result.setItems(visibleNodes.iterator());
        result.setTotalCount(visibleNodes.size());
    }

    public IModel<?> model(Object object) {
        return new BrixNodeModel((BrixNode) object);
    }
View Full Code Here

            return result;
        }
    };

    public NodeManagerContainerPanel(String id, IModel<Workspace> workspaceModel) {
        super(id, new BrixNodeModel(getRootNode(workspaceModel)));
        this.workspaceModel = workspaceModel;

        editor = new WebMarkupContainer(EDITOR_ID);
        add(editor);
View Full Code Here

    private IModel<BrixNode> getNewNodeParent() {
        BrixNode current = getModelObject();
        if (current instanceof FolderNode) {
            return getModel();
        } else {
            return new BrixNodeModel((BrixNode) current.getParent());
        }
    }
View Full Code Here

public abstract class AbstractGlobalPanel extends BrixGenericPanel<BrixNode> {
    private static final String PANEL_ID = "managePanel";
    IModel<Workspace> workspaceModel;

    public AbstractGlobalPanel(String id, IModel<Workspace> workspaceModel) {
        super(id, new BrixNodeModel(getContainerNode(workspaceModel.getObject())));

        this.workspaceModel = workspaceModel;
    }
View Full Code Here

TOP

Related Classes of org.brixcms.BrixNodeModel

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.