Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.TextField


    }

    @Override
    protected TextField initWidget() {
        return new TextField();
    }
View Full Code Here


    }

    public void setData(final String value) {

        if (widget instanceof TextField && isEditable()) {
            final TextField widgetTemp = ((TextField) widget);

            // Mediator manage Confirmation message => if confirmation == true
            // then the mediator show the confirmation message. We don't want this so we disable
            // the confirmation
            // message and set the value
            final boolean conf = isConfirmation();
            if (conf) {
                setConfirmation(false);
            }

            // warn mediator which will change value on source
            // widgetTemp.setText(value);
            widgetTemp.warnMediators(new TextInformation(widget, value == null ? "" : value));

            if (conf) {
                // now we restore the user parameter
                setConfirmation(conf);
            }
View Full Code Here

    }

    @Override
    protected TextField initWidget() {
        return new TextField();
    }
View Full Code Here

    }

    public void setData(final String value) {

        if (widget instanceof TextField && isEditable()) {
            final TextField widgetTemp = ((TextField) widget);

            // Mediator manage Confirmation message => if confirmation == true
            // then the mediator show the confirmation message. We don't want this so we disable
            // the confirmation
            // message and set the value
            final boolean conf = isConfirmation();
            if (conf) {
                setConfirmation(false);
            }

            // warn mediator which will change value on source
            // widgetTemp.setText(value);
            widgetTemp.warnMediators(new TextInformation(widget, value == null ? "" : value));

            if (conf) {
                // now we restore the user parameter
                setConfirmation(conf);
            }
View Full Code Here

    }

    @Override
    protected TextField initWidget() {
        return new TextField();
    }
View Full Code Here

    }

    public void setData(final String value) {

        if (widget instanceof TextField && isEditable()) {
            final TextField widgetTemp = ((TextField) widget);

            // Mediator manage Confirmation message => if confirmation == true
            // then the mediator show the confirmation message. We don't want this so we disable
            // the confirmation
            // message and set the value
            final boolean conf = isConfirmation();
            if (conf) {
                setConfirmation(false);
            }

            // warn mediator which will change value on source
            // widgetTemp.setText(value);
            widgetTemp.warnMediators(new TextInformation(widget, value == null ? "" : value));

            if (conf) {
                // now we restore the user parameter
                setConfirmation(conf);
            }
View Full Code Here

        final JComboBox sourceCombo = new JComboBox();
        sourceCombo.addItem(DEFAULT_TANGO_LABEL);
        sourceCombo.addItem(DEFAULT_NEXUS_LABEL);
        sourceCombo.setPreferredSize(new Dimension(100, 50));

        final TextField sourceParameter = new TextField();
        sourceParameter.setText("tangotest1/double_image_ro");

        final Button addSource = new Button("Add Source");
        addSource.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                addNextSource((String) sourceCombo.getSelectedItem(), sourceParameter.getText());
            }
        });

        final Button cleanSource = new Button("Clean");
        cleanSource.addActionListener(new ActionListener() {
View Full Code Here

        TangoKey numberKey = new TangoKey();
        TangoKeyTool.registerAttribute(numberKey, "tango/tangotest/titan", "ampli");

        // text component
        TextField textfield = new TextField();
        TextArea textArea = new TextArea();
        FileBrowser fileBrowser = new FileBrowser();

        stringBox.connectWidget(textfield, stringKey);
        stringBox.connectWidget(textArea, stringImageKey);
View Full Code Here

    private static final long serialVersionUID = -5068966232669175659L;

    @Override
    public IComponent initWidget() {
        return new TextField();
    }
View Full Code Here

    }

    @Override
    protected TextField initWidget() {
        return new TextField();
    }
View Full Code Here

TOP

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

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.