【发布时间】:2016-12-19 15:35:30
【问题描述】:
我正在使用 Zk 框架。我知道 @AfterCompose 和 @Init 注释的存在,但我不知道在 ViewModel 中使用时的区别和顺序。
有人能解释一下不同之处吗?
例如,
@AfterCompose
public void init(@ContextParam(ContextType.VIEW) Component view) {
Selectors.wireComponents(view, this, false); // wire the components here
}
@Init
public void init() {
//do more things
}
谢谢
【问题讨论】:
-
User AfterCompose for MVC 和 Init for MVVM 方法
标签: java annotations viewmodel zk