Examples of StringMatrixBox


Examples of fr.soleil.comete.box.matrixbox.StringMatrixBox

        return new StringMatrixComboBoxViewer();
    }

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

Examples of fr.soleil.comete.box.matrixbox.StringMatrixBox

        return new StringMatrixComboBoxViewer();
    }

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

Examples of fr.soleil.comete.box.matrixbox.StringMatrixBox

            CDMAKeyFactory factory = new CDMAKeyFactory();
            URL fileURL = ArchivingCDMAPluginTest.class.getResource("testCouleurExpression.vc");
            CDMAKey key = factory.generateKeyGroupList(fileURL.toURI(), new String[] {});

            ITextMatrixTarget target = new BasicStringMatrixTarget();
            StringMatrixBox stringMatrixBox = new StringMatrixBox();

            stringMatrixBox.connectWidget(target, key);

            String[] result = target.getFlatStringMatrix();
            System.out.println("--------------------");
            if (result != null) {
                for (String elem : result) {
View Full Code Here

Examples of fr.soleil.comete.box.matrixbox.StringMatrixBox

public class ComboTest {

    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);

        panel.add(stringLabel);
View Full Code Here

Examples of fr.soleil.comete.box.matrixbox.StringMatrixBox

     */
    public FlyScanTangoBox(boolean expert, boolean useMock) {
        super();
        this.isExpert = expert;

        stringMatrixBox = new StringMatrixBox();
        deviceLabel1 = new DynamicForegroundLabel(NO_DEVICE_STRING);
        deviceLabel1.setOpaque(true);

        statusText = new FSTextArea(deviceLabel1);
        statusText.setEditable(false);
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.