Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.StringButton


        libDataStorageVersionViewer.setHorizontalAlignment(IComponent.LEFT);

        initDeviceButton = generateStringButton();
        initDeviceButton.setText("Initialize DataRecorder device");
        // delete command initialization
        deleteNexusFilesButton = new StringButton() {
            private static final long serialVersionUID = 111544979689639790L;

            @Override
            public void actionPerformed(ActionEvent event) {
                // encryption hack
View Full Code Here


                currentValue = data;
                onValueChange(data);
            }
        };

        applyButton = new StringButton() {

            private static final long serialVersionUID = -5487851227027663615L;

            @Override
            public void actionPerformed(ActionEvent event) {
                super.actionPerformed(event);
                updateCombo(false);
            }
        };
        stringBox.setSettable(applyButton, false);
        applyButton.setText("Apply");
        applyButton.setButtonLook(true);

        memoryComboTitleLabel = new JLabel();

        memoryComboActionListener = generateMemoryComboActionListener();
        memoryCombo = generateMemoryCombo();
        if (memoryComboActionListener != null) {
            memoryCombo.addActionListener(memoryComboActionListener);
        }
        memoryComboTextChangeListener = generateMemoryComboTextListener();
        addTextListener();

        setDefaultValueButton = new StringButton() {

            private static final long serialVersionUID = 5825723558936352268L;

            @Override
            public void actionPerformed(ActionEvent event) {
View Full Code Here

    }

    @Override
    protected AbstractButton getOtherActionButton() {
        if (resetFileNameIndexButton == null) {
            resetFileNameIndexButton = new StringButton();
            resetFileNameIndexButton.setButtonLook(true);
            resetFileNameIndexButton.setText("Reset File counter");
            stringBox.setSettable(resetFileNameIndexButton, false);
        }
        return resetFileNameIndexButton;
View Full Code Here

            saveButton.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1));
            if (this.isEnabled && this.isExpert) {
                add(saveButton);
            }

            checkButton = new StringButton();
            checkButton.setIcon(Utilities.ICONS.getIcon("flyscan.check"));
            checkButton.setToolTipText("Ask flyscan device to check configuration");
            checkButton.setParameter(this.title);

            checkButton.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1));
View Full Code Here

        // Status
        statusArea = new TextArea();
        statusArea.setBorder(BorderFactory.createTitledBorder("Status"));

        // Start
        startButton = new StringButton();
        // Stop
        stopButton = new StringButton();

        // excitationEnergy
        // Label
        excitationEnergyLabel = new JLabel();
        excitationEnergyLabel.setText("Excitation Energy");
View Full Code Here

        });
        stringBox.setColorEnabled(acquisitionNameEditor, false);

        // Experiment Index
        experimentIndexPanel = new JPanel(new GridBagLayout());
        resetExperimentIndexButton = new StringButton();
        resetExperimentIndexButton.setButtonLook(true);
        resetExperimentIndexButton.setText("Reset Experiment Index");
        resetExperimentIndexButton.setCometeFont(FontTool.getCometeFont(closeButton.getFont()));
        incrementExperimentIndexButton = new StringButton();
        incrementExperimentIndexButton.setButtonLook(true);
        incrementExperimentIndexButton.setText("Increment Experiment Index");
        incrementExperimentIndexButton.setCometeFont(FontTool.getCometeFont(closeButton
                .getFont()));
        stringBox.setSettable(resetExperimentIndexButton, false);
View Full Code Here

                }
                m_tabParameters = null;
            }
        });

        okButton = new StringButton() {
            private static final long serialVersionUID = 1574016093195895807L;

            @Override
            public void actionPerformed(ActionEvent event) {
                String valueToSave = computeValueToSave();
View Full Code Here

        editPanel.add(setDefaultValueButton, defaultButtonConstraints);

        // buttons
        buttonPanel = new JPanel(new GridBagLayout());
        closeButton.setText("Cancel");
        okButton = new StringButton() {

            private static final long serialVersionUID = 6216360703760072552L;

            @Override
            public void actionPerformed(ActionEvent event) {
View Full Code Here

        });
        stringBox.setColorEnabled(acquisitionNameEditor, false);

        // Experiment Index
        experimentIndexPanel = new JPanel(new GridBagLayout());
        resetExperimentIndexButton = new StringButton();
        resetExperimentIndexButton.setButtonLook(true);
        resetExperimentIndexButton.setText("Reset Experiment Index");
        resetExperimentIndexButton.setCometeFont(FontTool.getCometeFont(closeButton.getFont()));
        incrementExperimentIndexButton = new StringButton();
        incrementExperimentIndexButton.setButtonLook(true);
        incrementExperimentIndexButton.setText("Increment Experiment Index");
        incrementExperimentIndexButton.setCometeFont(FontTool.getCometeFont(closeButton.getFont()));
        stringBox.setSettable(resetExperimentIndexButton, false);
        stringBox.setSettable(incrementExperimentIndexButton, false);
View Full Code Here

                currentValue = data;
                onValueChange(data);
            }
        };

        applyButton = new StringButton() {

            private static final long serialVersionUID = -5487851227027663615L;

            @Override
            public void actionPerformed(ActionEvent event) {
                super.actionPerformed(event);
                updateCombo(false);
            }
        };
        stringBox.setSettable(applyButton, false);
        applyButton.setText("Apply");
        applyButton.setButtonLook(true);

        memoryComboTitleLabel = new JLabel();

        memoryComboActionListener = generateMemoryComboActionListener();
        memoryCombo = generateMemoryCombo();
        if (memoryComboActionListener != null) {
            memoryCombo.addActionListener(memoryComboActionListener);
        }
        memoryComboTextChangeListener = generateMemoryComboTextListener();
        addTextListener();

        setDefaultValueButton = new StringButton() {

            private static final long serialVersionUID = 5825723558936352268L;

            @Override
            public void actionPerformed(ActionEvent event) {
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swing.StringButton

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.