java - gwt dynamic adding textbox -
@uihandler("adddynamictextboxbutton") void addmoretextbox(clickevent event) { textboxplaceholder.add(new textbox(),"textboxplace"); }
when adddynamictextboxbutton button clicked, method executed , new textbox created. how have button, when click, values each of "textbox()" ? or necessary put name "new textbox("name")" can values? best practice way this?
if textboxplaceholder
, extend of complexpanel
, example flowpanel
iterate on children of flowpanel
:
for (widget w: textboxplaceholder) { if (w instanceof textbox) { // value: ((textbox)w).getvalue(); } }
Comments
Post a Comment