Examples of ConfigurableSnippetWidget


Examples of net.sourceforge.processdash.ui.snippet.ConfigurableSnippetWidget

        }
       
        public Component getConfigurationPane() {
            if (configurationPane == null) {
                if (widget instanceof ConfigurableSnippetWidget) {
                    ConfigurableSnippetWidget csw = (ConfigurableSnippetWidget) widget;
                    try {
                        configurationPane = csw.getWidgetConfigurationPane();
                        csw.addChangeListener(this);

                    } catch (Throwable e) {
                        logger.log(Level.SEVERE,
                            "Unexpected error when retrieving configuration " +
                            "pane for widget with id '" + id + "'", e);                       
View Full Code Here

Examples of net.sourceforge.processdash.ui.snippet.ConfigurableSnippetWidget

        public void revertSettings() {
            if (!(widget instanceof ConfigurableSnippetWidget))
                return;

            ConfigurableSnippetWidget csw = (ConfigurableSnippetWidget) widget;
            Map params = Collections.EMPTY_MAP ;
            try {
                if (settings != null)
                    params = settings.getParameters();
            } catch (PersistenceException e) {}
            csw.setConfigurationParameters(params);
            setDirty(false);
        }
View Full Code Here

Examples of net.sourceforge.processdash.ui.snippet.ConfigurableSnippetWidget

        public void saveSettings() {
            if (!(widget instanceof ConfigurableSnippetWidget))
                return;

            ConfigurableSnippetWidget csw = (ConfigurableSnippetWidget) widget;
            if (settings == null) {
                settings = new TaskScheduleChartSettings();
                settings.setChartID(snip.getId());
                settings.setTaskListID(taskList.getID());
            }

            Map params = csw.getConfigurationParameters();
            settings.setParameters(params);
            settings.setChartVersion(snip.getVersion());
            settings.save(ctx.getData());
            setDirty(false);
        }
View Full Code Here

Examples of net.sourceforge.processdash.ui.snippet.ConfigurableSnippetWidget

            this.settings = dest;
            this.name = dest.getCustomName();
            widgetList.itemChanged(this);

            ConfigurableSnippetWidget csw = (ConfigurableSnippetWidget) widget;
            Map params = new HashMap(csw.getConfigurationParameters());
            params.put(EVSnippetEnvironment.EV_CUSTOM_SNIPPET_NAME_KEY, this.name);
            csw.setConfigurationParameters(params);

            saveSettings();
           
            if (currentItem == this && configurationDialog != null)
                configurationDialog.setupTitle();
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.