Package org.brixcms.plugin.site.picker.reference

Examples of org.brixcms.plugin.site.picker.reference.ReferenceEditorPanel


        };
        final Label label = new Label("label", labelModel);
        add(label);
        label.setOutputMarkupId(true);

        ReferenceEditorPanel editor = new ReferenceEditorPanel("editor", model) {
            @Override
            public ReferenceEditorConfiguration getConfiguration() {
                return ReferenceColumnPanel.this.getConfiguration();
            }

            @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);
            }
        };

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


        conf.setDisplayFiles(true);
        conf.setWorkspaceName(folderNodeModel);

        IModel<Reference> model = buffer.forProperty("redirectReference");
        form.add(new ReferenceEditorPanel("redirectReference", model).setConfiguration(conf));
    }
View Full Code Here

TOP

Related Classes of org.brixcms.plugin.site.picker.reference.ReferenceEditorPanel

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.