@Test public void testSectionInserted() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getSectionInserted()); adapter.sectionInserted(null, 0); assertFalse(invoked[0]); adapter.setSectionInserted(callable); adapter.sectionInserted(null, 0); assertTrue(invoked[0]); }
public void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1) { if (sectionInserted != null) { sectionInserted.call(arg0, arg1); } }
MenuAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuListener { public void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1) { if (sectionInserted != null) { sectionInserted.call(arg0, arg1); } } }
MenuAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuListener { public void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1) { if (sectionInserted != null) { sectionInserted.call(arg0, arg1); } }  }
MenuAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuListener { public void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1) { if (sectionInserted != null) { sectionInserted.call(arg0, arg1); } }  CallableWithArgs<Void> getSectionInserted(); CallableWithArgs<Void> getSectionsRemoved(); CallableWithArgs<Void> getActiveItemChanged(); void setSectionInserted(CallableWithArgs<Void> sectionInserted); void setSectionsRemoved(CallableWithArgs<Void> sectionsRemoved); void setActiveItemChanged(CallableWithArgs<Void> activeItemChanged); void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1); void sectionsRemoved(org.apache.pivot.wtk.Menu arg0, int arg1, org.apache.pivot.collections.Sequence<Menu.Section> arg2); void activeItemChanged(org.apache.pivot.wtk.Menu arg0, org.apache.pivot.wtk.Menu.Item arg1); }
MenuAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuListener { public void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1) { if (sectionInserted != null) { sectionInserted.call(arg0, arg1); } }  CallableWithArgs<Void> getSectionInserted(); CallableWithArgs<Void> getSectionsRemoved(); CallableWithArgs<Void> getActiveItemChanged(); void setSectionInserted(CallableWithArgs<Void> sectionInserted); void setSectionsRemoved(CallableWithArgs<Void> sectionsRemoved); void setActiveItemChanged(CallableWithArgs<Void> activeItemChanged); void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1); void sectionsRemoved(org.apache.pivot.wtk.Menu arg0, int arg1, org.apache.pivot.collections.Sequence<Menu.Section> arg2); void activeItemChanged(org.apache.pivot.wtk.Menu arg0, org.apache.pivot.wtk.Menu.Item arg1);  }