Package org.dashbuilder.displayer.client

Examples of org.dashbuilder.displayer.client.DisplayerSettingsEditor


        if (!isEditEnabled()) {
            return new DisplayerView(displayerSettings).draw();
        }

        // TODO encapsulate the editor in a DisplayerSettingsView, similar to the DisplayerView, for coherency ?
        DisplayerSettingsEditor settingsEditor = DisplayerSettingsEditorLocator.get().lookupSettingsEditor(displayerSettings);

        SimplePanel editorPanel = new SimplePanel();
        editorPanel.setWidth("500px");
        editorPanel.add(settingsEditor);

        final SimplePanel viewerPanel = new SimplePanel();
        viewerPanel.add(new DisplayerView(displayerSettings).draw());

        settingsEditor.setListener(new DisplayerSettingsEditorListener() {
            public void onDisplayerSettingsChanged(DisplayerSettingsEditor editor) {
                viewerPanel.clear();
                viewerPanel.setWidget(new DisplayerView(displayerSettings).draw());
            }
        });
View Full Code Here

TOP

Related Classes of org.dashbuilder.displayer.client.DisplayerSettingsEditor

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.