Examples of StringScalarBox


Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

        return new TextFieldButton();
    }

    @Override
    protected StringScalarBox initBox() {
        return new StringScalarBox();
    }
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

    protected TargetDelegate delegate = new TargetDelegate();

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

        StringScalarBox stringBox = new StringScalarBox();

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

        TextField textfield = stringBox.createAdvancedWidget(TextField.class, key);
        TextArea textArea = stringBox.createAdvancedWidget(TextArea.class, key);
        FileBrowser fileBrowser = stringBox.createAdvancedWidget(FileBrowser.class, key);
        fileBrowser.setUpdateAllowed(true);

        stringBox.connectSourceListener(this, key);

        panel.add(textfield, BorderLayout.CENTER);
        panel.add(textArea, BorderLayout.EAST);
        panel.add(fileBrowser, BorderLayout.NORTH);
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

        return textArea;
    }

    @Override
    protected AbstractCometeBox<?> initBox() {
        return new StringScalarBox();
    }
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

    public ScanserverTest() {
        super(new BorderLayout());

        chartBox = new ChartViewerBox();
        imageBox = new NumberMatrixBox();
        stringBox = new StringScalarBox();

        config1D = new Config1D();
        config2D = new Config2D();

        chartViewer = new Chart();
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

    @Override
    protected StringScalarBox initBox() {
        qualityBox = new NumberScalarBox();

        return new StringScalarBox();
    }
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

        final JPanel panel = new JPanel(new BorderLayout());

        JPanel stringPanel = new JPanel(new BorderLayout());
        JPanel numberPanel = new JPanel(new BorderLayout());

        StringScalarBox stringBox = new StringScalarBox();
        NumberScalarBox numberBox = new NumberScalarBox();

        TangoKey stringKey = new TangoKey();
        TangoKeyTool.registerAttribute(stringKey, "tango/tangotest/titan", "string_scalar");

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



        // text component
        TextField textfield = stringBox.createAdvancedWidget(TextField.class, stringKey);
        TextArea textArea = new TextArea();
        stringBox.connectWidget(textArea, numberKey);
        FileBrowser fileBrowser = stringBox.createAdvancedWidget(FileBrowser.class, stringKey);
        fileBrowser.setUpdateAllowed(true);

        // added to stringPanel component
        stringPanel.add(textfield, BorderLayout.CENTER);
        stringPanel.add(textArea, BorderLayout.EAST);
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

    }

    @Override
    protected StringScalarBox initBox() {
        qualityBox = new NumberScalarBox();
        return new StringScalarBox();
    }
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

        return label;
    }

    @Override
    protected StringScalarBox initBox() {
        return new StringScalarBox();
    }
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

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

        StringMatrixBox stringMatrixBox = new StringMatrixBox();
        StringScalarBox stringBox = new StringScalarBox();
        BooleanScalarBox booleanScalarBox = new BooleanScalarBox();
        NumberScalarBox numberScalarBox = new NumberScalarBox();

        TangoKey stringMatrixKey = new TangoKey();
        TangoKeyTool.registerAttribute(stringMatrixKey, "tango/tangotest/1", "string_spectrum_ro");
        TangoKey stringScalarKey = new TangoKey();
        TangoKeyTool.registerAttribute(stringScalarKey, "tango/tangotest/1", "string_scalar");
        TangoKey stringScalarWriteKey = new TangoKey();
        TangoKeyTool.registerWriteAttribute(stringScalarWriteKey, "tango/tangotest/1", "string_scalar");
        TangoKey booleanScalarWriteKey = new TangoKey();
        TangoKeyTool.registerWriteAttribute(booleanScalarWriteKey, "tango/tangotest/1", "boolean_scalar");

        TangoKey numberScalarKey = new TangoKey();
        TangoKeyTool.registerAttribute(numberScalarKey, "tango/tangotest/1", "ampli");
        TangoKey numberScalarWriteKey = new TangoKey();
        TangoKeyTool.registerWriteAttribute(numberScalarWriteKey, "tango/tangotest/1", "ampli");

        Label stringLabel = new Label();
        Label numberLabel = new Label();
        Label booleanLabel = new Label();

        ComboBox stringCombo = new ComboBox();
        NumberComboBox numberCombo = new NumberComboBox();
        BooleanComboBox booleanCombo = new BooleanComboBox();
        StringMatrixComboBoxViewer matrixCombo = new StringMatrixComboBoxViewer();
        matrixCombo.setLinkPopupVisibilityWithEditable(false);

        stringCombo.setObjectArray(new Object[] { "value1", "value2", "value3" });
        stringCombo.setDisplayedList(new String[] { "Label 1", "Label 2", "Label 3" });
        // stringCombo.setEditable(false);

        numberCombo.setObjectArray(new Object[] { Double.valueOf(1), Double.valueOf(2), Double.valueOf(3) });
        numberCombo.setDisplayedList(new String[] { "Label 1", "Label 2", "Label 3" });
        // numberCombo.setEditable(false);

        stringBox.connectWidget(stringLabel, stringScalarKey);
        stringBox.connectWidget(stringCombo, stringScalarWriteKey);
        stringBox.connectWidget(numberLabel, numberScalarKey);
        numberScalarBox.connectWidget(numberCombo, numberScalarWriteKey);
        booleanScalarBox.connectWidget(booleanCombo, booleanScalarWriteKey);
        stringBox.connectWidget(booleanLabel, booleanScalarWriteKey);
        stringMatrixBox.connectWidget(matrixCombo, stringMatrixKey);
        TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                .getProducerByClassName(TangoDataSourceFactory.class.getName());
        factory.setRefreshingStrategy(stringMatrixKey, null);
View Full Code Here

Examples of fr.soleil.comete.box.scalarbox.StringScalarBox

        return label;
    }

    @Override
    protected StringScalarBox initBox() {
        return new StringScalarBox();
    }
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.