Example usage for com.google.gwt.uibinder.rebind.model OwnerClass getUiFields

List of usage examples for com.google.gwt.uibinder.rebind.model OwnerClass getUiFields

Introduction

In this page you can find the example usage for com.google.gwt.uibinder.rebind.model OwnerClass getUiFields.

Prototype

public Collection<OwnerField> getUiFields() 

Source Link

Document

Returns a collection of all fields in the owner class.

Usage

From source file:com.xemantic.tadedon.gwt.field.rebind.UiFieldAccessorGenerators.java

License:Apache License

public static Set<String> getFieldNames(OwnerClass ownerClass) {
    Collection<OwnerField> fields = ownerClass.getUiFields();
    ImmutableSet.Builder<String> builder = ImmutableSet.builder();
    for (OwnerField ownerField : fields) {
        builder.add(ownerField.getName());
    }/*from   w w  w . ja  va2  s  .  co m*/
    return builder.build();
}