Package fr.soleil.comete.simulated.data.service

Examples of fr.soleil.comete.simulated.data.service.SimulatedKeyGenerator


    public void connect() {
        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan/State");
        stringBox.connectWidget(state1, key);

        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        stringBox.connectWidget(state2, simulatedKey.getStringScalarKey());
        stringBox.connectWidget(textField, simulatedKey.getStringScalarKey());

        TangoKey attributeWritekey = new TangoKey();
        TangoKeyTool.registerWriteAttribute(attributeWritekey, "tango/tangotest/titan", "ampli");
        stringBox.connectWidget(combo, attributeWritekey);
        stringBox.setConfirmation(combo, true);
        combo.setDisplayedList(new String[] { "Valeur 0", "Valeur 1", "Valeur 2", "Valeur 3" });
        combo.setValueList((Object[]) new String[] { "0", "1", "2", "3" });

        TangoKey attributekey = new TangoKey();
        TangoKeyTool.registerAttribute(attributekey, "tango/tangotest/titan", "ampli");
        stringBox.connectWidget(textField2, attributekey);

        matrixBox.connectWidget(table, simulatedKey.getImageNumberMatrixKey());

    }
View Full Code Here


        // key generating system
        keyGeneratorMap = new HashMap<String, IKeyGenerator>();
        IKeyGenerator tangoKey = new TangoKeyGenerator();
        keyGeneratorMap.put(tangoKey.toString(), tangoKey);
        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        keyGeneratorMap.put(simulatedKey.toString(), simulatedKey);

        // create components
        chartBox = new ChartViewerBox();
        chartViewer = new Chart();
        // chartViewer.setAnnotation(IChartViewer.TIME_ANNO, IChartViewer.X);
View Full Code Here

    private static Tree tree = new Tree();

    private static JPanel initPanel() {
        final JPanel panel = new JPanel(new BorderLayout());

        SimulatedKeyGenerator generator = new SimulatedKeyGenerator();

        for (int i = 0; i < 7; ++i) {
            IKey key = null;
            if (i == 0) {
                key = generator.getBooleanMatrixKey();
            }
            if (i == 1) {
                key = generator.getBooleanScalarKey();
            }
            if (i == 2) {
                key = generator.getChartKey();
            }
            if (i == 3) {
                key = generator.getImageNumberMatrixKey();
            }
            if (i == 4) {
                key = generator.getNumberScalarKey();
            }
            if (i == 5) {
                key = generator.getStringScalarKey();
            }
            if (i == 6) {
                key = generator.getStringMatrixKey();
            }
            SimulatedKey.registerTreeKey(key);
            randomKeys.add(key);
        }
View Full Code Here

        this.debug = debug;

        IKeyGenerator tangoKey = new TangoKeyGenerator();
        keyGeneratorMap.put(tangoKey.toString(), tangoKey);

        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        keyGeneratorMap.put(simulatedKey.toString(), simulatedKey);

        // chartViewer.setFreezePanelVisible(true);
        // chartViewer.setManagementPanelVisible(true);
        // chartViewer.setAutoHighlightOnLegend(true);
        // chartViewer.setAxisSelectionVisible(true);
View Full Code Here

        connectWidget();
    }

    private void connectWidget() {
        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        DataSourceProducerProvider.pushNewProducer(SimulatedDataSourceProducer.class);
        STRING_BOX.connectWidget(labelString, simulatedKey.getStringScalarKey());
        STRING_BOX.connectWidget(textareaString, simulatedKey.getStringScalarKey());
        STRING_BOX.connectWidget(textfieldString, simulatedKey.getStringScalarKey());
        // TABLE_BOOL_BOX.connectWidget(tableBoolean, simulatedKey.getBooleanMatrixKey());
        TABLE_NUM_BOX.connectWidget(imageViewer, simulatedKey.getImageNumberMatrixKey());
        CHART_BOX.connectWidget(chartViewer, simulatedKey.getChartKey());
        STRING_BOX.connectWidget(comboString, simulatedKey.getStringScalarKey());
        TABLE_STR_BOX.connectWidget(tableString, simulatedKey.getStringMatrixKey());
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.simulated.data.service.SimulatedKeyGenerator

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.