Package fr.soleil.gui.flyscan.gui.custom

Examples of fr.soleil.gui.flyscan.gui.custom.CustomParameterPanel


                                objectPanel = buildObjectPanel(fsObject);

                                if (fsObject instanceof ContinuousActuator) {

                                    continuousActuatorPanel.add(objectPanel, constraints);
                                    CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
                                            (Actor) fsObject, pluginObj);
                                    if (customParametersPanel != null) {
                                        objectPanel.add(customParametersPanel, customParametersPanelConstraints);
                                    }

                                    for (final Entry entry : fsObject.getEntries()) {
                                        if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
                                            try {
                                                buidEntryGUI(objectPanel, continuousActuatorPanel, fsObject, pluginObj,
                                                        entry, CONTINUOUS_ACTUATORS, customParametersPanel);
                                            } catch (FSParsingException e) {
                                                if (e.getComponent() != null && e.getLabelName() != null) {
                                                    displayError(entry, section, fsObject, e.getLabelName(),
                                                            e.getComponent(), e.getMessage(), CONTINUOUS_ACTUATORS);
                                                }

                                                LOGGER.log(Level.SEVERE, e.getMessage());
                                            }
                                        }

                                    }
                                } else if (fsObject instanceof Actuator) {

                                    actuatorPanel.add(objectPanel, constraints);
                                    CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
                                            (Actor) fsObject, pluginObj);
                                    if (customParametersPanel != null) {
                                        objectPanel.add(customParametersPanel, customParametersPanelConstraints);
                                    }

                                    for (final Entry entry : fsObject.getEntries()) {
                                        if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
                                            try {
                                                buidEntryGUI(objectPanel, actuatorPanel, fsObject, pluginObj, entry,
                                                        ACTUATORS, customParametersPanel);
                                            } catch (FSParsingException e) {
                                                if (e.getComponent() != null && e.getLabelName() != null) {
                                                    displayError(entry, section, fsObject, e.getLabelName(),
                                                            e.getComponent(), e.getMessage(), ACTUATORS);
                                                }

                                                LOGGER.log(Level.SEVERE, e.getMessage());
                                            }
                                        }

                                    }
                                } else if (fsObject instanceof Sensor) {

                                    sensorPanel.add(objectPanel, constraints);
                                    CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
                                            (Actor) fsObject, pluginObj);
                                    if (customParametersPanel != null) {
                                        objectPanel.add(customParametersPanel, customParametersPanelConstraints);
                                    }

                                    for (final Entry entry : fsObject.getEntries()) {
                                        if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
                                            try {
                                                buidEntryGUI(objectPanel, sensorPanel, fsObject, pluginObj, entry,
                                                        SENSORS, customParametersPanel);
                                            } catch (FSParsingException e) {
                                                if (e.getComponent() != null && e.getLabelName() != null) {
                                                    displayError(entry, section, fsObject, e.getLabelName(),
                                                            e.getComponent(), e.getMessage(), SENSORS);
                                                }

                                                LOGGER.log(Level.SEVERE, e.getMessage());
                                            }
                                        }

                                    }
                                } else if (fsObject instanceof TimeBase) {

                                    timebasePanel.add(objectPanel, constraints);
                                    CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
                                            (Actor) fsObject, pluginObj);
                                    if (customParametersPanel != null) {
                                        objectPanel.add(customParametersPanel, customParametersPanelConstraints);
                                    }

                                    for (final Entry entry : fsObject.getEntries()) {
                                        if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
                                            try {
                                                buidEntryGUI(objectPanel, timebasePanel, fsObject, pluginObj, entry,
                                                        TIMEBASE, customParametersPanel);
                                            } catch (FSParsingException e) {
                                                if (e.getComponent() != null && e.getLabelName() != null) {
                                                    displayError(entry, section, fsObject, e.getLabelName(),
                                                            e.getComponent(), e.getMessage(), TIMEBASE);
                                                }

                                                LOGGER.log(Level.SEVERE, e.getMessage());
                                            }
                                        }

                                    }
                                } else if (fsObject instanceof Hook) {
                                    hookPanel.add(objectPanel, constraints);
                                    CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
                                            (Actor) fsObject, pluginObj);
                                    if (customParametersPanel != null) {
                                        objectPanel.add(customParametersPanel, customParametersPanelConstraints);
                                    }

                                    for (final Entry entry : fsObject.getEntries()) {
                                        if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
                                            try {
                                                buidEntryGUI(objectPanel, hookPanel, fsObject, pluginObj, entry, HOOKS,
                                                        customParametersPanel);
                                            } catch (FSParsingException e) {
                                                if (e.getComponent() != null && e.getLabelName() != null) {
                                                    displayError(entry, section, fsObject, e.getLabelName(),
                                                            e.getComponent(), e.getMessage(), HOOKS);
                                                }

                                                LOGGER.log(Level.SEVERE, e.getMessage());
                                            }
                                        }

                                    }
                                } else if (fsObject instanceof Monitor) {

                                    monitorPanel.add(objectPanel, constraints);
                                    CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
                                            (Actor) fsObject, pluginObj);
                                    if (customParametersPanel != null) {
                                        objectPanel.add(customParametersPanel, customParametersPanelConstraints);
                                    }
View Full Code Here


        return authorizedValues;
    }

    private CustomParameterPanel buildCustomParametersPanel(Actor actor, Plugin plugin) {
        if (plugin != null && plugin.isAcceptCustomParameter()) {
            CustomParameterPanel customParametersPanel;
            customParametersPanel = new CustomParameterPanel(this, configuration, actor, isEnabled);
            return customParametersPanel;
        } else {
            return null;
        }
View Full Code Here

TOP

Related Classes of fr.soleil.gui.flyscan.gui.custom.CustomParameterPanel

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.