Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.StringButton


    }

    @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


        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

      public void actionPerformed(ActionEvent e) {
          dialogModel.updateParameters();
            }
        });

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

            @Override
            public void actionPerformed(ActionEvent event) {
                String valueToSave = dialogModel.computeValueToSave();
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);

        comboTitleLabel = new JLabel(CONFIGURATION_SAVED_VALUE);

        revertButton = new JButton("Revert");
        revertButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                revert();
            }
        });
       
        deleteConfigButton = new StringButton(){
      private static final long serialVersionUID = -7712459441590890116L;
      @Override
            public void actionPerformed(ActionEvent e) {
                String confirmationTitle = "Delete configuration '" + currentValue + "' ?";
                String confirmationText = "WARNING : This operation is irreversible !" +
View Full Code Here

     * Creates a new {@link StringButton} and sets some default parameters in it
     *
     * @return a new {@link StringButton}
     */
    protected StringButton generateStringButton() {
        StringButton stringButton = new StringButton();
        stringButton.setButtonLook(true);
        return stringButton;
    }
View Full Code Here

        controlsSettingsPanel = new JPanel();
        controlsSettingsPanel.setLayout(new GridBagLayout());

        if (MCABean.RONTEC_DEVICE.equals(deviceTypeName)) {
            readDataSpectrumLabel = new Label();
            readDataSpectrumButton = new StringButton() {
                private static final long serialVersionUID = -4749745421934248188L;

                @Override
                public void actionPerformed(ActionEvent event) {
                    // this is necessary because of the call of actionPerformed in
                    // startCommandViewer button
                    // TODO enabled state may be tested directly in startCommandViewer's
                    // actionPerformed to avoid
                    // overriding
                    if (isEnabled()) {
                        super.actionPerformed(event);
                    }
                };
            };
            startCommandViewer = new StringButton() {
                private static final long serialVersionUID = -679641383339305170L;

                @Override
                public void actionPerformed(ActionEvent event) {
                    super.actionPerformed(event);
                    readDataSpectrumButton.actionPerformed(null);
                }
            };
        } else {
            startCommandViewer = new StringButton();
        }
        startCommandViewer.setText("Start");

        ((JButton) startCommandViewer).setIcon(new ImageIcon(getClass().getResource(
                "/org/tango-project/tango-icon-theme/22x22/actions/media-playback-start.png")));
        stopCommandViewer = new StringButton();
        stopCommandViewer.setText("Abort");
        ((JButton) stopCommandViewer).setIcon(new ImageIcon(getClass().getResource(
                "/org/tango-project/tango-icon-theme/22x22/actions/media-playback-stop.png")));
        clearDataCommandViewer = new StringButton();
        clearDataCommandViewer.setText("Clear Data");
        ((JButton) clearDataCommandViewer).setIcon(new ImageIcon(getClass().getResource(
                "/org/tango-project/tango-icon-theme/22x22/places/user-trash.png")));

        GridBagConstraints startConstraints2 = new GridBagConstraints();
View Full Code Here

        dataSourcePanel.setLayout(new GridBagLayout());

        inputLabel = new JLabel("Input:");
        inputLabel.setFont(new Font("Default", Font.BOLD, 15));
        inputTextField = new JTextField();
        openButtonViewer = new StringButton() {
            private static final long serialVersionUID = 761848392969451608L;

            @Override
            public void actionPerformed(ActionEvent event) {
                setParameter(inputTextField.getText());
View Full Code Here

        selectDefinedConstraints.gridy = 1;
        selectDefinedConstraints.gridwidth = GridBagConstraints.REMAINDER;
        selectDefinedConstraints.insets = new Insets(0, 0, 0, 5);
        visibilityButtonsPanel.add(allDefinedVisibileButton, selectDefinedConstraints);

        setROIsButtonViewer = new StringButton() {

            private static final long serialVersionUID = -7653239561511334700L;

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

        controlsSettingsPanel = new JPanel();
        controlsSettingsPanel.setLayout(new GridBagLayout());

        if (MCABean.RONTEC_DEVICE.equals(deviceTypeName)) {
            readDataSpectrumLabel = new Label();
            readDataSpectrumButton = new StringButton() {
                private static final long serialVersionUID = -4749745421934248188L;

                @Override
                public void actionPerformed(ActionEvent event) {
                    // this is necessary because of the call of actionPerformed in
                    // startCommandViewer button
                    // TODO enabled state may be tested directly in startCommandViewer's
                    // actionPerformed to avoid
                    // overriding
                    if (isEnabled()) {
                        super.actionPerformed(event);
                    }
                };
            };
            startCommandViewer = new StringButton() {
                private static final long serialVersionUID = -679641383339305170L;

                @Override
                public void actionPerformed(ActionEvent event) {
                    super.actionPerformed(event);
                    readDataSpectrumButton.actionPerformed(null);
                }
            };
        } else {
            startCommandViewer = new StringButton();
        }
        startCommandViewer.setText("Start");

        ((JButton) startCommandViewer).setIcon(new ImageIcon(getClass().getResource(
                "/org/tango-project/tango-icon-theme/22x22/actions/media-playback-start.png")));
        stopCommandViewer = new StringButton();
        stopCommandViewer.setText("Abort");
        ((JButton) stopCommandViewer).setIcon(new ImageIcon(getClass().getResource(
                "/org/tango-project/tango-icon-theme/22x22/actions/media-playback-stop.png")));
        clearDataCommandViewer = new StringButton();
        clearDataCommandViewer.setText("Clear Data");
        ((JButton) clearDataCommandViewer).setIcon(new ImageIcon(getClass().getResource(
                "/org/tango-project/tango-icon-theme/22x22/places/user-trash.png")));

        GridBagConstraints startConstraints2 = new GridBagConstraints();
View Full Code Here

        dataSourcePanel.setLayout(new GridBagLayout());

        inputLabel = new JLabel("Input:");
        inputLabel.setFont(new Font("Default", Font.BOLD, 15));
        inputTextField = new JTextField();
        openButtonViewer = new StringButton() {
            private static final long serialVersionUID = 761848392969451608L;

            @Override
            public void actionPerformed(ActionEvent event) {
                setParameter(inputTextField.getText());
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.