コード例 #1
0
 /*    */ public MenuBuilder addMenuItem(AbstractFormAction action) /*    */ {
   /* 51 */ MenuItemBuilderImpl builder = new MenuItemBuilderImpl();
   /* 52 */ builder.setAction(action);
   /* 53 */ action.setParent(this.container);
   /* 54 */ this.menuItems.add(builder);
   /* 55 */ return this;
   /*    */ }
コード例 #2
0
 /*    */ public MenuBuilder addMenuItem(AbstractFormAction action, Icon icon) /*    */ {
   /* 62 */ MenuItemBuilderImpl builder = new MenuItemBuilderImpl();
   /* 63 */ builder.setAction(action);
   /* 64 */ builder.setIcon(icon);
   /* 65 */ action.setParent(this.container);
   /* 66 */ this.menuItems.add(builder);
   /* 67 */ return this;
   /*    */ }