Package org.brixcms.plugin.site.picker.node

Examples of org.brixcms.plugin.site.picker.node.SiteNodePickerPanel


    }

    public PageTileEditorPanel(String id, IModel<BrixNode> tileContainerNode,
                               NodeFilter filter) {
        super(id, tileContainerNode);
        NodePickerPanel picker = new SiteNodePickerPanel("nodePicker",
                targetNodeModel, tileContainerNode.getObject().getSession()
                .getWorkspace().getName(), filter);
        picker.setRequired(true);
        add(picker);
    }
View Full Code Here


                ""));
        message.setOutputMarkupId(true);
        add(message);


        add(new SiteNodePickerPanel("picker", targetNode, targetWorkspaceId, true, null));

        add(new AjaxLink<Void>("restore") {
            @Override
            public void onClick(AjaxRequestTarget target) {
                List<JcrNode> nodes = getSelectedNodes();
View Full Code Here

        String workspace = nodeModel.getObject().getSession().getWorkspace().getName();
        NodeFilter filter = new NodeTypeFilter(TemplateSiteNodePlugin.TYPE);

        IModel<BrixNode> model = adapter.forNodeProperty("template");

        form.add(new SiteNodePickerPanel("templatePicker", model, workspace, filter));

        IModel<Boolean> booleanModel = adapter.forProperty("requiresSSL");
        form.add(new ProtocolSelector("requiresSSL", booleanModel));

        IModel<String> mimeTypeModel = adapter.forProperty("mimeType");
View Full Code Here

        add(label);
        label.setOutputMarkupId(true);

        NodeFilter filter = new NodeTypeFilter(TemplateSiteNodePlugin.TYPE);

        SiteNodePickerPanel picker = new SiteNodePickerPanel("picker", model, workspace, false, filter) {
            @Override
            public boolean isVisible() {
                return isEditing();
            }

            @Override
            protected IModel<String> newLabelModel() {
                return new AbstractModel<String>() {
                    @Override
                    public String getObject() {
                        return "";
                    }
                };
            }

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                super.onUpdate(target);
                target.addComponent(label);
            }
        };

        picker.setOutputMarkupPlaceholderTag(true);
        add(picker);
    }
View Full Code Here

TOP

Related Classes of org.brixcms.plugin.site.picker.node.SiteNodePickerPanel

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.