@Test public void testMenuChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getMenuChanged()); adapter.menuChanged(null, null); assertFalse(invoked[0]); adapter.setMenuChanged(callable); adapter.menuChanged(null, null); assertTrue(invoked[0]); }
public void menuChanged(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.wtk.Menu arg1) { if (menuChanged != null) { menuChanged.call(arg0, arg1); } }
MenuPopupAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuPopupListener { public void menuChanged(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.wtk.Menu arg1) { if (menuChanged != null) { menuChanged.call(arg0, arg1); } } }
MenuPopupAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuPopupListener { public void menuChanged(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.wtk.Menu arg1) { if (menuChanged != null) { menuChanged.call(arg0, arg1); } }  }
MenuPopupAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuPopupListener { public void menuChanged(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.wtk.Menu arg1) { if (menuChanged != null) { menuChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getMenuChanged(); void setMenuChanged(CallableWithArgs<Void> menuChanged); void menuChanged(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.wtk.Menu arg1); }
MenuPopupAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuPopupListener { public void menuChanged(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.wtk.Menu arg1) { if (menuChanged != null) { menuChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getMenuChanged(); void setMenuChanged(CallableWithArgs<Void> menuChanged); void menuChanged(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.wtk.Menu arg1);  }