GWT - Adding visibility true/false handler

混江龙づ霸主 提交于 2019-12-11 04:24:30

问题


Is there a simple way to add handlers/listeners to widgets so that the change to visibility can be detected ? Or do i have to create a system of my own ? (which means creating other widgets that wrap needed widgets and trigger events when setVisible(...) is called)


回答1:


Standard widgets have their own listeners and handlers. If your application requires your own events then you have to define custom user defined events, listener and handlers.




回答2:


overite setVisible(boolean visible) extend UIObject or use deffered binding



来源:https://stackoverflow.com/questions/10396983/gwt-adding-visibility-true-false-handler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!