Examples of ReferenceEditorPanel


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

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

        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
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.