Example usage for com.google.gwt.editor.rebind.model EditorData getPropertyOwnerType

List of usage examples for com.google.gwt.editor.rebind.model EditorData getPropertyOwnerType

Introduction

In this page you can find the example usage for com.google.gwt.editor.rebind.model EditorData getPropertyOwnerType.

Prototype

public JClassType getPropertyOwnerType() 

Source Link

Document

Mainly useful for nested properties where there may not be an editor for the enclosing instance (e.g.

Usage

From source file:com.google.web.bindery.requestfactory.gwt.rebind.RequestFactoryEditorDriverGenerator.java

License:Apache License

@Override
protected String mutableObjectExpression(EditorData data, String sourceObjectExpression) {
    if (baseProxyType.isAssignableFrom(data.getPropertyOwnerType())) {
        return String.format("((%s) request.edit((%s)))", data.getPropertyOwnerType().getQualifiedSourceName(),
                sourceObjectExpression);
    } else {// w  w  w  . j  ava 2  s .  c o m
        return sourceObjectExpression;
    }
}