Package fr.soleil.comete.widget

Examples of fr.soleil.comete.widget.IWidgetListener


        }
    }

    protected void fireValueChange(String sValue, Number dValue, boolean bValue) {
        Iterator<IWidgetListener> iterator = listeners.iterator();
        IWidgetListener widgetListener = null;
        while (iterator.hasNext()) {
            widgetListener = iterator.next();
            if (widgetListener != null) {
                widgetListener.booleanValueChanged(bValue);
                widgetListener.doubleValueChanged(dValue.doubleValue());
                widgetListener.stringValueChanged(sValue);
            }
        }
    }
View Full Code Here


        }
    }

    protected void fireDataChange(String sValue, Number dValue, boolean bValue) {
        Iterator<IWidgetListener> iterator = listeners.iterator();
        IWidgetListener widgetListener = null;
        while (iterator.hasNext()) {
            widgetListener = iterator.next();
            if (widgetListener != null) {
                widgetListener.booleanDataChanged(bValue);
                widgetListener.doubleDataChanged(dValue.doubleValue());
                widgetListener.stringDataChanged(sValue);
            }
        }
    }
View Full Code Here

    }

    private void initComponents() {
        hiddenStateLabel = generateLabel();
        hiddenStateLabel.setText(null);
        stateListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                updateAvailabilities();
            }
View Full Code Here

        hiddenScriptListViewer = new StringMatrixComboBoxViewer();
        hiddenTabInfoViewer = new StringMatrixComboBoxViewer();
        hiddenTabInfoViewer.setExecuteDaoOnInitialization(true);

        warningLevelListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                updateWarningLevel();
            }

            @Override
            public void stringDataChanged(String value) {
                updateWarningLevel();
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        authentificationListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                if ((value != null) && (!value.trim().isEmpty())
                        && (!value.equals(hiddenAuthentificationLabel.getErrorText()))
                        && (!authentificationLightBean.getModel().equals(value))) {
                    authentificationLightBean.setModel(value);
                }
            }

            @Override
            public void stringDataChanged(String value) {
                if ((value != null) && (!value.trim().isEmpty())
                        && (!value.equals(hiddenAuthentificationLabel.getErrorText()))
                        && (!authentificationLightBean.getModel().equals(value))) {
                    authentificationLightBean.setModel(value);
                }
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };
        hiddenAuthentificationLabel = generateLabel();

        authentificationStateListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                updateAvailabilitiesFromAuthenficationState();
            }

            @Override
            public void stringDataChanged(String value) {
                updateAvailabilitiesFromAuthenficationState();
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        stateListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                updateAvailabilitiesFromDataRecorderState();
            }

            @Override
            public void stringDataChanged(String value) {
                updateAvailabilitiesFromDataRecorderState();
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        postRecordingCommandListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                // nothing to do
            }

            @Override
            public void stringDataChanged(String value) {
                if (!hiddenPostRecordingCommandButton.getErrorText().equals(value)) {
                    postRecordingCommand = value;
                    setPostRecordingValues();
                }
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        modelsComboBoxListener = new IComboBoxListener() {

            @Override
            public void selectedItemChanged(EventObject event) {
                updateDataModels();
            }
        };

        technicalDataListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                if ((value != null) && (!value.trim().isEmpty())
                        && (!value.equals(hiddenTechnicalDataLabel.getErrorText()))
View Full Code Here

    }

    private void initComponents() {
        hiddenStateLabel = generateLabel();
        hiddenStateLabel.setText(null);
        stateListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                updateAvailabilities();
            }
View Full Code Here

        hiddenScriptListViewer = new StringMatrixComboBoxViewer();
        hiddenTabInfoViewer = new StringMatrixComboBoxViewer();
        hiddenTabInfoViewer.setExecuteDaoOnInitialization(true);

        warningLevelListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                updateWarningLevel();
            }

            @Override
            public void stringDataChanged(String value) {
                updateWarningLevel();
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        authentificationListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                if ((value != null) && (!value.trim().isEmpty())
                        && (!value.equals(hiddenAuthentificationLabel.getErrorText()))
                        && (!authentificationLightBean.getModel().equals(value))) {
                    authentificationLightBean.setModel(value);
                }
            }

            @Override
            public void stringDataChanged(String value) {
                if ((value != null) && (!value.trim().isEmpty())
                        && (!value.equals(hiddenAuthentificationLabel.getErrorText()))
                        && (!authentificationLightBean.getModel().equals(value))) {
                    authentificationLightBean.setModel(value);
                }
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };
        hiddenAuthentificationLabel = generateLabel();

        authentificationStateListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                updateAvailabilitiesFromAuthenficationState();
            }

            @Override
            public void stringDataChanged(String value) {
                updateAvailabilitiesFromAuthenficationState();
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        stateListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                updateAvailabilitiesFromDataRecorderState();
            }

            @Override
            public void stringDataChanged(String value) {
                updateAvailabilitiesFromDataRecorderState();
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        postRecordingCommandListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                // nothing to do
            }

            @Override
            public void stringDataChanged(String value) {
                if (!hiddenPostRecordingCommandButton.getErrorText().equals(value)) {
                    postRecordingCommand = value;
                    setPostRecordingValues();
                }
            }

            @Override
            public void doubleValueChanged(double value) {
                // nothing to do
            }

            @Override
            public void doubleDataChanged(double value) {
                // nothing to do
            }

            @Override
            public void booleanValueChanged(boolean value) {
                // nothing to do
            }

            @Override
            public void booleanDataChanged(boolean value) {
                // nothing to do
            }
        };

        modelsComboBoxListener = new IComboBoxListener() {

            @Override
            public void selectedItemChanged(EventObject event) {
                updateDataModels();
            }
        };

        technicalDataListener = new IWidgetListener() {

            @Override
            public void stringValueChanged(String value) {
                if ((value != null) && (!value.trim().isEmpty())
                        && (!value.equals(hiddenTechnicalDataLabel.getErrorText()))
View Full Code Here

            }
        };
    }

    protected IWidgetListener generateWriteValueListener() {
        return new IWidgetListener() {
            @Override
            public void stringValueChanged(final String value) {
                if (canSetData) {
                    canSetData = false;
                    SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

        };
    }

    @Override
    protected IWidgetListener generateValueListener() {
        return new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                if ((!inError) && (!displayedValueLabel.equals(value))) {
                    setError(inError);
                }
View Full Code Here

    @Override
    protected void initAndAddOtherComponentsInMainPanel() {
        super.initAndAddOtherComponentsInMainPanel();
        memoryComboTitleLabel.setText("Sub directory:");
        parentDirectoryLabel = new Label();
        parentDirectoryListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                // nothing to do
            }
View Full Code Here

            }
        });

        hiddenConfigListLabel = new Label();

        configListener = new IWidgetListener() {
            @Override
            public void stringValueChanged(String value) {
                SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() {
View Full Code Here

TOP

Related Classes of fr.soleil.comete.widget.IWidgetListener

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.