0

有什么方法可以获取 GWT 小部件的类型吗?

for(Widget w : widgetList)  
{  
 //if w is textbox type, read value and do something

}
4

1 回答 1

2
for(Widget w : widgetList)
{
  if(w instanceof textbox)
        // read value and do something
}
于 2012-10-23T13:32:40.230 回答