有没有办法获得编辑器正在编辑的代理?
正常的工作流程是:
public class Class implments Editor<Proxy>{
@Path("")
@UiField AntoherClass subeditor;
void someMethod(){
Proxy proxy = request.create(Proxy.class);
driver.save(proxy);
driver.edit(proxy,request);
}
}
Run Code Online (Sandbox Code Playgroud)
现在,如果我有一个相同代理的子编辑
public class AntoherClass implements Editor<Proxy>{
someMethod(){
// method to get the editing proxy ?
}
}
Run Code Online (Sandbox Code Playgroud)
是的我知道我可以在创建后使用setProxy()将代理设置为子编辑器,但我想知道是否有类似HasRequestContext的内容,但是对于已编辑的代理.
当您在非UI对象中使用ListEditor时,这非常有用.
谢谢.