Tuesday, December 22, 2009

Radio Group in GWT

May be many of you know how to create a radio group still I would like to put small comment on GWT radiobutton group ..

There is no separate RadioButton group class .. its the same RadioButton class which makes the radio button to be treated as a group or a separate radiobutton.

Only the first parameter decides whether it wil be treated as a radio button or radiobutton group.

RadioButton radio1 = new RadioButton("Group Name", "Label Name1");
RadioButton radio2 = new RadioButton("Group Name", "Label Name2");

So now two radio button belong to the same group "Group Name" ..

No comments:

Post a Comment