Package fr.soleil.data.service

Examples of fr.soleil.data.service.IKey


            chartViewer.setDataViewCometeColor(attributeKey.getInformationKey(), CometeColor.RED);
        }

        boolean isSettable = !TangoAttributeHelper.isAttributeReadOnly(model, attributeName);
        if (isSettable) {
            IKey writeAttributeKey = generateWriteAttributeKey(attributeName);
            // System.out.println("Id read =" +
            // writeAttributeKey.getInformationKey());
            setWidgetModel(chartViewer, chartBox, writeAttributeKey);
            properties = plotPropertiesMap.get(writeAttributeKey.getInformationKey().toLowerCase());
            if (properties != null) {
                chartViewer.setDataViewPlotProperties(writeAttributeKey.getInformationKey(), properties);
            } else {
                chartViewer.setDataViewCometeColor(writeAttributeKey.getInformationKey(), CometeColor.BLUE);
            }
        }

        if (chartProperties != null) {
            chartViewer.setChartProperties(chartProperties);
View Full Code Here


            int format = TangoAttributeHelper.getAttributeFormat(model, attributeName);

            if (format == TangoConstHelper.STRING_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    stringBox.connectWidget(textField, attributeWriteKey);
                }
            } else if (format == TangoConstHelper.BOOLEAN_FORMAT) {
                booleanScalarBox.connectWidget(checkBox, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    booleanScalarBox.connectWidget(booleanComboBox, attributeWriteKey);
                }
            } else if (format == TangoConstHelper.NUMERICAL_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    numberScalarBox.connectWidget(wheelswitch, attributeWriteKey);
                }
            }
        }
    }
View Full Code Here

            chartViewer.setDataViewCometeColor(attributeKey.getInformationKey(), CometeColor.RED);
        }

        boolean isSettable = !TangoAttributeHelper.isAttributeReadOnly(model, attributeName);
        if (isSettable) {
            IKey writeAttributeKey = generateWriteAttributeKey(attributeName);
            // System.out.println("Id read =" +
            // writeAttributeKey.getInformationKey());
            setWidgetModel(chartViewer, chartBox, writeAttributeKey);
            properties = plotPropertiesMap.get(writeAttributeKey.getInformationKey().toLowerCase());
            if (properties != null) {
                chartViewer.setDataViewPlotProperties(writeAttributeKey.getInformationKey(), properties);
            } else {
                chartViewer.setDataViewCometeColor(writeAttributeKey.getInformationKey(), CometeColor.BLUE);
            }
        }

        if (chartProperties != null) {
            chartViewer.setChartProperties(chartProperties);
View Full Code Here

            int format = TangoAttributeHelper.getAttributeFormat(model, attributeName);

            if (format == TangoConstHelper.STRING_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    stringBox.connectWidget(textField, attributeWriteKey);
                }
            }
            else if (format == TangoConstHelper.BOOLEAN_FORMAT) {
                booleanScalarBox.connectWidget(checkBox, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    booleanScalarBox.connectWidget(booleanComboBox, attributeWriteKey);
                }
            }
            else if (format == TangoConstHelper.NUMERICAL_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    numberScalarBox.connectWidget(wheelswitch, attributeWriteKey);
                }
            }
        }
    }
View Full Code Here

    private void setChartWidgetModel(IKey attributeKey) {
        setWidgetModel(chartViewer, chartBox, attributeKey);
        chartViewer.setDataViewColor(attributeKey.getInformationKey(), Color.RED);
        boolean isSettable = !TangoAttributeHelper.isAttributeReadOnly(model, attributeName);
        if (isSettable) {
            IKey writeAttributeKey = generateWriteAttributeKey(attributeName);
            // System.out.println("Id read =" + writeAttributeKey.getInformationKey());
            setWidgetModel(chartViewer, chartBox, writeAttributeKey);
            chartViewer.setDataViewColor(writeAttributeKey.getInformationKey(), Color.BLUE);
        }
    }
View Full Code Here

            int format = TangoAttributeHelper.getAttributeFormat(model, attributeName);

            if (format == TangoConstHelper.STRING_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    stringBox.connectWidget(textField, attributeWriteKey);
                }
            } else if (format == TangoConstHelper.BOOLEAN_FORMAT) {
                booleanScalarBox.connectWidget(checkBox, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    booleanScalarBox.connectWidget(booleanComboBox, attributeWriteKey);
                }
            } else if (format == TangoConstHelper.NUMERICAL_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    numberScalarBox.connectWidget(wheelswitch, attributeWriteKey);
                }
            }
        }
    }
View Full Code Here

            chartViewer.setDataViewCometeColor(attributeKey.getInformationKey(), CometeColor.RED);
        }

        boolean isSettable = !TangoAttributeHelper.isAttributeReadOnly(model, attributeName);
        if (isSettable) {
            IKey writeAttributeKey = generateWriteAttributeKey(attributeName);
            // System.out.println("Id read =" +
            // writeAttributeKey.getInformationKey());
            setWidgetModel(chartViewer, chartBox, writeAttributeKey);
            properties = plotPropertiesMap.get(writeAttributeKey.getInformationKey().toLowerCase());
            if (properties != null) {
                chartViewer.setDataViewPlotProperties(writeAttributeKey.getInformationKey(), properties);
            } else {
                chartViewer.setDataViewCometeColor(writeAttributeKey.getInformationKey(), CometeColor.BLUE);
            }
        }

        if (chartProperties != null) {
            chartViewer.setChartProperties(chartProperties);
View Full Code Here

        IDataSourceProducer producer = getProducer();
        if (producer != null) {
            boolean isSettable = producer.isSourceSettable(attributeKey);
            wheelswitch.setVisible(false);
            if (isSettable) {
                IKey writeAttributeKey = generateWriteAttributeKey(attributeName);
                // System.out.println("Id read =" + writeAttributeKey.getInformationKey());
                setWidgetModel(chartViewer, chartBox, writeAttributeKey);
                chartViewer.setDataViewColor(writeAttributeKey.getInformationKey(), Color.BLUE);
            }
        }
    }
View Full Code Here

            int format = TangoAttributeHelper.getAttributeFormat(model, attributeName);

            if (format == TangoConstHelper.STRING_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    stringBox.connectWidget(textField, attributeWriteKey);
                }
            } else if (format == TangoConstHelper.BOOLEAN_FORMAT) {
                booleanScalarBox.connectWidget(checkBox, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    booleanScalarBox.connectWidget(booleanComboBox, attributeWriteKey);
                }
            } else if (format == TangoConstHelper.NUMERICAL_FORMAT) {
                stringBox.connectWidget(readNumberField, attributeKey);
                if (isSettable) {
                    IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
                    numberScalarBox.connectWidget(wheelswitch, attributeWriteKey);
                }
            }
        }
    }
View Full Code Here

            chartViewer.setDataViewCometeColor(attributeKey.getInformationKey(), CometeColor.RED);
        }

        boolean isSettable = !TangoAttributeHelper.isAttributeReadOnly(model, attributeName);
        if (isSettable) {
            IKey writeAttributeKey = generateWriteAttributeKey(attributeName);
            // System.out.println("Id read =" +
            // writeAttributeKey.getInformationKey());
            setWidgetModel(chartViewer, chartBox, writeAttributeKey);
            properties = plotPropertiesMap.get(writeAttributeKey.getInformationKey().toLowerCase());
            if (properties != null) {
                chartViewer.setDataViewPlotProperties(writeAttributeKey.getInformationKey(), properties);
            } else {
                chartViewer.setDataViewCometeColor(writeAttributeKey.getInformationKey(), CometeColor.BLUE);
            }
        }

        if (chartProperties != null) {
            chartViewer.setChartProperties(chartProperties);
View Full Code Here

TOP

Related Classes of fr.soleil.data.service.IKey

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.