开发者

Binding domain object to GUI

开发者 https://www.devze.com 2023-03-21 01:16 出处:网络
I would like to know how to b开发者_如何学Goind my domain object with are POJOs to my GUI component.Should I inject my domain object to the constructor of my view, or is there a better design?Does my

I would like to know how to b开发者_如何学Goind my domain object with are POJOs to my GUI component. Should I inject my domain object to the constructor of my view, or is there a better design? Does my domain object have to extend a specific class?


Use Model-View-Controller architecture and think of you domain object as a model. Binding usually happens in Controller. To simplify it - use a framework such as Better Beans Binding

0

精彩评论

暂无评论...
验证码 换一张
取 消