Package fr.soleil.comete.definition.widget

Examples of fr.soleil.comete.definition.widget.IPanel


    }

    private IPanel initNumberPanel() {

        IPanel result = new Panel();

        result.setTitledBorder("NUMERIC");
        result.add(numberField);
        result.add(wheelswitch);
        result.add(numberspinner);
        result.add(numberFieldButton);
        numberslider.setMaximum(100);
        numberslider.setMinimum(0);
        numberslider.setMinorTickSpacing(5);
        numberslider.setMajorTickSpacing(10);
        result.add(numberslider);
        progressBar.setMaximum(100);
        progressBar.setMinimum(0);
        result.add(progressBar);
        numberCombo.setNumberArray(new Number[] { 0, 1, 2 });
        numberCombo.setDisplayedList(new String[] { "Val0", "Val1", "Val2" });
        // TODO numberCombo.setConfirmation(true);
        result.add(numberCombo);

        return result;
    }
View Full Code Here


        return result;
    }

    private IPanel initStringPanel() {

        IPanel result = new Panel();

        result.add(textField);
        result.add(textFieldButton);
        fileBrowserButton.setBrowserType(IFileBrowser.PATH);
        fileBrowserButton.setSize(400, 25);
        fileBrowserFieldButton.setBrowserType(IFileBrowser.PATH);
        textCombo.setValueList(new String[] { "Hello", "Bonjour", "Coucou" });
        // TODO  textCombo.setConfirmation(true);
        result.add(fileBrowserButton);
        result.add(fileBrowserFieldButton);
        result.add(textArea);
        result.add(textCombo);
        result.add(label);

        return result;
    }
View Full Code Here

        return result;
    }

    private IPanel initBooleanPanel() {

        IPanel result = new Panel();

        result.setTitledBorder("BOOLEAN");
        result.add(booleanComboBox);
        result.add(checkBox);
        result.add(booleanIconButton);

        return result;
    }
View Full Code Here

        convertor.setNumberArray(converted);
        return convertor;
    }

    private IPanel initNumberPanel() {
        IPanel result = new Panel();
        result.setTitledBorder("NUMERIC");
        result.add(numberField);
        result.add(wheelswitch);
        result.add(numberspinner);
        result.add(numberFieldButton);
        numberslider.setMaximum(100);
        numberslider.setMinimum(0);
        numberslider.setMinorTickSpacing(5);
        numberslider.setMajorTickSpacing(10);
        result.add(numberslider);
        progressBar.setMaximum(100);
        progressBar.setMinimum(0);
        result.add(progressBar);
        numberCombo.setNumberArray(new Number[] { 0, 1, 2 });
        numberCombo.setDisplayedList(new String[] { "Val0", "Val1", "Val2" });
        // TODO numberCombo.setConfirmation(true);
        result.add(numberCombo);
        numberLabel.setOpaque(true);
        result.add(numberLabel);

        return result;
    }
View Full Code Here

        return result;
    }

    private IPanel initStringPanel() {
        IPanel result = new Panel();
        statusButton.setText("STATUS");
        statusButton.setButtonLook(true);
        result.add(textField);
        result.add(textFieldButton);
        fileBrowserButton.setBrowserType(IFileBrowser.PATH);
        fileBrowserButton.setSize(400, 25);
        fileBrowserFieldButton.setBrowserType(IFileBrowser.PATH);
        textCombo.setValueList((Object[]) new String[] { "Hello", "Bonjour", "Coucou" });
        // TODO textCombo.setConfirmation(true);
        result.add(fileBrowserButton);
        result.add(fileBrowserFieldButton);
        result.add(textArea);
        result.add(textCombo);
        result.add(label);
        result.add(state1);
        result.add(state2);
        result.add(statusButton);
        return result;
    }
View Full Code Here

        result.add(statusButton);
        return result;
    }

    private IPanel initBooleanPanel() {
        IPanel result = new Panel();
        result.setTitledBorder("BOOLEAN");
        result.add(booleanComboBox);
        result.add(checkBox);
        result.add(booleanIconButton);
        return result;
    }
View Full Code Here

        connectAttributeAndTangoChart(true, simpleChart);

        connectAttributeAndTangoImageViewer(false, advancedImageViewer);
        connectAttributeAndTangoImageViewer(true, simpleImageViewer);

        IPanel textFieldSimpleCasePanel = new Panel();
        textFieldSimpleCasePanel.add(simpleCaseTextField);
        add("TEXTFIELD - Simple case", textFieldSimpleCasePanel);

        IPanel textFieldAdvancedCasePanel = new Panel();
        textFieldAdvancedCasePanel.add(advancedCaseTextField);
        add("TEXTFIELD - Advanced case", textFieldAdvancedCasePanel);

        JPanel chartAdvancedCasePanel = new JPanel(new BorderLayout());
        chartAdvancedCasePanel.setBackground(Color.WHITE);
        chartAdvancedCasePanel.add(new JLabel("Chart", JLabel.CENTER), BorderLayout.NORTH);
View Full Code Here

                if (scrollPane != null) {
                    ((IPanel) selectorComponent).add(scrollPane, getTreeConstraints());
                }

                // Create search device panel
                IPanel searchPanel = CometeWidgetFactory.createPanel(selectorComponent, 0);
                if (searchPanel != null) {
                    searchPanel.setLayout(getSearchPanelLayout());
                    // Create search field
                    expressionText = CometeWidgetFactory.createTextField(searchPanel, 0);
                    if (expressionText != null) {
                        searchPanel.add(expressionText, getSearchFieldConstraints());
                    }

                    // Create button
                    IButton matchButton = CometeWidgetFactory.createButton(searchPanel, 0);
                    if (matchButton != null) {
                        matchButton.setText("Match");
                        matchButton.addButtonListener(this);
                        searchPanel.add(matchButton, getSearchButtonConstraints());
                    }

                    // Add search panel
                    ((IPanel) selectorComponent).add(searchPanel, getSearchPanelConstraints());
                }
View Full Code Here

                if (scrollPane != null) {
                    ((IPanel) selectorComponent).add(scrollPane, getTreeConstraints());
                }

                // Create search device panel
                IPanel searchPanel = CometeWidgetFactory.createPanel(selectorComponent, 0);
                if (searchPanel != null) {
                    searchPanel.setLayout(getSearchPanelLayout());
                    // Create search field
                    expressionText = CometeWidgetFactory.createTextField(searchPanel, 0);
                    if (expressionText != null) {
                        searchPanel.add(expressionText, getSearchFieldConstraints());
                    }

                    // Create button
                    IButton matchButton = CometeWidgetFactory.createButton(searchPanel, 0);
                    if (matchButton != null) {
                        matchButton.setText("Match");
                        matchButton.addButtonListener(this);
                        searchPanel.add(matchButton, getSearchButtonConstraints());
                    }

                    // Add search panel
                    ((IPanel) selectorComponent).add(searchPanel, getSearchPanelConstraints());
                }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.definition.widget.IPanel

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.