How to store a unique value into a Panel (GWT)? -
this simple question there's no answer found on internet.
ok, widgets such checkbox have method called mycheckbox.setformvalue(text); take advantage of method store unique id checkbox later on mycheckbox.getformvalue(); retrieve unique value.
however, there's no setformvalue on gwt panel?
so if want store unique value panel (for example, flowpanel, verticalpanel)? method can use that?
the way see trying extend purpose of panel. cannot see why want unique identifier, object of panel unique guess that's not point here.
since want extend panel that. extend corresponding class , give unique value, implement corresponding getters , setters , set. simple that
class absolutepanelunq extends absolutepanel { private int uniqueid; public getuniqueid(){ return uniqueid; } public setuniqueid(int uniqueid) { this.uniqueid = uniqueid; } } then create object , whatever need.
Comments
Post a Comment