Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.DoubleBox


    grid.setWidget(2, 1, phoneField);
   
    Label lblCashBalance = new Label("Cash Balance");
    grid.setWidget(3, 0, lblCashBalance);
   
    cashBalanceField = new DoubleBox();
    this.cashBalanceField.setEnabled(false);
    this.cashBalanceField.setReadOnly(true);
    this.cashBalanceField.setAlignment(TextAlignment.RIGHT);
    grid.setWidget(3, 1, cashBalanceField);
    grid.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
View Full Code Here


        return clone;
    }

    @Override
    public Widget cloneDisplay(Map<String, Object> formData) {
        DoubleBox tb = new DoubleBox();
        populate(tb);
        Object input = getInputValue(formData);
        if (input != null) {
            String s = input.toString();
            tb.setValue(s.equals("") ? null : Double.valueOf(s));
        }
        if (getOutput() != null && getOutput().getName() != null) {
            tb.setName(getOutput().getName());
        }
        super.populateActions(tb.getElement());
        return tb;
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DoubleBox

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.