Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以获取 GWT 小部件的类型吗?
for(Widget w : widgetList) { //if w is textbox type, read value and do something }
for(Widget w : widgetList) { if(w instanceof textbox) // read value and do something }