Thursday, 15 March 2012

java - Add MenuItem List to Parent Menu Item -



java - Add MenuItem List to Parent Menu Item -

i have menuitem list

menuitem restart= schedules.additem("restart", null); menuitem start= schedules.additem("start", null); menuitem stop= schedules.additem("stop", null); list<menuitem> menuitems = new arraylist<menuitem>(); menuitems.add(restart); menuitems.add(start); menuitems.add(stop);

also have parent menuitem , schdules menubar.

menuitem options= schedules.additem("restart", null);

my question is there way add together menuitem list(menuitems) parent menuitem (options)

i dont know if understood correctly need try. can utilize loop in list menuitems , phone call setparent(menuitem parent) on each object, setting parent there.

java menuitem vaadin7

No comments:

Post a Comment