Example usage for com.google.gwt.user.client TakesValue getValue

List of usage examples for com.google.gwt.user.client TakesValue getValue

Introduction

In this page you can find the example usage for com.google.gwt.user.client TakesValue getValue.

Prototype

V getValue();

Source Link

Document

Returns the current value.

Usage

From source file:org.obiba.opal.web.gwt.app.client.validator.RequiredOptionValidator.java

License:Open Source License

@Override
protected boolean hasError() {
    for (TakesValue<Boolean> option : options) {
        if (option.getValue()) {
            return false;
        }/*from  w  w  w.  ja  v  a  2s  .com*/
    }
    return true;
}

From source file:org.turbogwt.mvp.databind.client.ViewEngine.java

License:Apache License

@Override
public <F> F getValue(String id) {
    final WidgetBinding widgetBinding = bindings.get(id);
    if (widgetBinding != null) {
        TakesValue<?> hasValue = widgetBinding.widget;
        if (hasValue != null) {
            return (F) hasValue.getValue();
        }//  w  w w  .  j a v a2 s. c o m
    }
    return null;
}