Examples of TextFieldButton


Examples of fr.soleil.comete.swing.TextFieldButton

        mybox.setSettable(widget, false);
    }

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

Examples of fr.soleil.comete.swing.TextFieldButton

        return new StringScalarBox();
    }

    public void setData(final double value) {
        if (widget instanceof TextFieldButton && isEditable()) {
            final TextFieldButton tmpWidget = (TextFieldButton) 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);
            }

            // set text to new value and warn mediator (thanks to send()) which
            // will change value on
            // source
            // tmpWidget.setText(String.valueOf(value));
            // tmpWidget.send();
            tmpWidget.warnMediators(new TextInformation(tmpWidget, String.valueOf(value)));

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

Examples of fr.soleil.comete.swing.TextFieldButton

        setStateEnabled(false);
    }

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

Examples of fr.soleil.comete.swing.TextFieldButton

        super.setSize(150, 30);
    }

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

Examples of fr.soleil.comete.swing.TextFieldButton

    private static final long serialVersionUID = 2860083686946858293L;

    @Override
    public IComponent initWidget() {
        TextFieldButton widget = new TextFieldButton();
        widget.setPreferredSize(120, 30);
        return widget;
    }
View Full Code Here

Examples of fr.soleil.comete.swing.TextFieldButton

        mybox.setSettable(widget, false);
    }

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

Examples of fr.soleil.comete.swing.TextFieldButton

        return new StringScalarBox();
    }

    public void setData(final double value) {
        if (widget instanceof TextFieldButton && isEditable()) {
            final TextFieldButton tmpWidget = (TextFieldButton) 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);
            }

            // set text to new value and warn mediator (thanks to send()) which
            // will change value on
            // source
            // tmpWidget.setText(String.valueOf(value));
            // tmpWidget.send();
            tmpWidget.warnMediators(new TextInformation(tmpWidget, String.valueOf(value)));

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

Examples of fr.soleil.comete.swing.TextFieldButton

        mybox.setSettable(widget, false);
    }

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

Examples of fr.soleil.comete.swing.TextFieldButton

        return new StringScalarBox();
    }

    public void setData(final double value) {
        if (widget instanceof TextFieldButton && isEditable()) {
            final TextFieldButton tmpWidget = (TextFieldButton) 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 = isAskConfirmation();
            if (conf) {
                setAskConfirmation(false);
            }

            // set text to new value and warn mediator (thanks to send()) which
            // will change value on
            // source
            // tmpWidget.setText(String.valueOf(value));
            // tmpWidget.send();
            tmpWidget.warnMediators(new TextInformation(tmpWidget, String.valueOf(value)));

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

Examples of fr.soleil.comete.swing.TextFieldButton

        mybox.setSettable(widget, false);
    }

    @Override
    protected TextFieldButton initWidget() {
        return new TextFieldButton();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.