Examples of FormatPlugin


Examples of fr.soleil.comete.tango.data.plugin.FormatPlugin

        NumberScalarBox numberBox = new NumberScalarBox();

        QualityColorPlugin plugin = new QualityColorPlugin();

        numberBox.addPluginController(plugin);
        numberBox.addPluginController(new FormatPlugin());

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "ampli");

        Spinner spinner = numberBox.createAdvancedWidget(Spinner.class, key);
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

    /**
     * @param state true if you want the format to appear, false otherwise
     */
    public void setFormatEnabled(T target, boolean state) {
        FormatPlugin plugin = getLinkedPlugin(target, FormatPlugin.class);
        if (plugin != null) {
            plugin.setFormatEnabled(state);
        }
    }
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

    /**
     * @return true if the format appears, false otherwise
     */
    public boolean isFormatEnabled(T target) {
        boolean result = false;
        FormatPlugin plugin = getLinkedPlugin(target, FormatPlugin.class);
        if (plugin != null) {
            result = plugin.isFormatEnabled();
        }
        return result;
    }
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

    @Override
    protected List<AbstractPlugin<?>> initPlugins(AbstractDataSource<?> source) {
        List<AbstractPlugin<?>> result = super.initPlugins(source);
        NumberToStringDataAdapter numberAdapter = getNumberAdapter(source);
        if (numberAdapter != null) {
            FormatPlugin foundedPlugin = null;
            for (AbstractPlugin<?> plugin : result) {
                if (plugin instanceof FormatPlugin) {
                    foundedPlugin = (FormatPlugin) plugin;
                }
            }
            if (foundedPlugin != null) {
                try {
                    foundedPlugin.addPlugin(source.getOriginDescriptor(), numberAdapter);
                }
                catch (UnhandledDataTypeException e) {
                    e.printStackTrace();
                }
                // XXX RG: do not remove plugin
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

        if (tempCaps instanceof ScalarCaps) {
            ScalarCaps<?, ?> targetCaps = (ScalarCaps<?, ?>) tempCaps;
            targetCaps.setFormatEnabled(state);
        }

        FormatPlugin plugin = getPlugin(target, FormatPlugin.class);
        if (plugin != null) {
            plugin.setFormatEnabled(state);
        }
    }
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

    /**
     * @param state true if you want the format to appear, false otherwise
     */
    public void setFormatEnabled(T target, boolean state) {
        FormatPlugin plugin = getLinkedPlugin(target, FormatPlugin.class);
        if (plugin != null) {
            plugin.setFormatEnabled(state);
        }
    }
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

    /**
     * @return true if the format appears, false otherwise
     */
    public boolean isFormatEnabled(T target) {
        boolean result = false;
        FormatPlugin plugin = getLinkedPlugin(target, FormatPlugin.class);
        if (plugin != null) {
            result = plugin.isFormatEnabled();
        }
        return result;
    }
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

    protected void initPlugins(IDataSourceProducer producer, AbstractDataSource<?> source,
            ITextTarget target) {
        super.initPlugins(producer, source, target);
        NumberToStringDataAdapter numberAdapter = getNumberAdapter(source);
        if (numberAdapter != null) {
            FormatPlugin foundedPlugin = getPlugin(target, FormatPlugin.class);
            if (foundedPlugin != null) {
                try {
                    foundedPlugin.addPlugin(source.getOriginDescriptor(), numberAdapter);
                }
                catch (UnhandledDataTypeException e) {
                    e.printStackTrace();
                }
            }
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

        if (tempCaps instanceof ScalarCaps) {
            ScalarCaps<?, ?> targetCaps = (ScalarCaps<?, ?>) tempCaps;
            targetCaps.setFormatEnabled(state);
        }

        FormatPlugin plugin = getPlugin(target, FormatPlugin.class);
        if (plugin != null) {
            plugin.setFormatEnabled(state);
        }
    }
View Full Code Here

Examples of fr.soleil.data.plugin.FormatPlugin

    protected void initPlugins(IDataSourceProducer producer, AbstractDataSource<?> source,
            ITextTarget target) {
        super.initPlugins(producer, source, target);
        NumberToStringDataAdapter numberAdapter = getNumberAdapter(source);
        if (numberAdapter != null) {
            FormatPlugin foundedPlugin = getPlugin(target, FormatPlugin.class);
            if (foundedPlugin != null) {
                try {
                    foundedPlugin.addPlugin(source.getOriginDescriptor(), numberAdapter);
                }
                catch (UnhandledDataTypeException e) {
                    e.printStackTrace();
                }
            }
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.