Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.StringButton


        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

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

     * 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

     * 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

     * 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

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.