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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -