标签: gwt
有没有办法获得GWT小部件的类型?
for(Widget w : widgetList) { //if w is textbox type, read value and do something }
答案 0 :(得分:2)
for(Widget w : widgetList) { if(w instanceof textbox) // read value and do something }