@Test public void testYearChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getYearChanged()); adapter.yearChanged(null, 0); assertFalse(invoked[0]); adapter.setYearChanged(callable); adapter.yearChanged(null, 0); assertTrue(invoked[0]); }
public void yearChanged(org.apache.pivot.wtk.Calendar arg0, int arg1) { if (yearChanged != null) { yearChanged.call(arg0, arg1); } }
CalendarAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.CalendarListener { public void yearChanged(org.apache.pivot.wtk.Calendar arg0, int arg1) { if (yearChanged != null) { yearChanged.call(arg0, arg1); } } }
CalendarAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.CalendarListener { public void yearChanged(org.apache.pivot.wtk.Calendar arg0, int arg1) { if (yearChanged != null) { yearChanged.call(arg0, arg1); } }  }
CalendarAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.CalendarListener { public void yearChanged(org.apache.pivot.wtk.Calendar arg0, int arg1) { if (yearChanged != null) { yearChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getMonthChanged(); CallableWithArgs<Void> getLocaleChanged(); CallableWithArgs<Void> getDisabledDateFilterChanged(); CallableWithArgs<Void> getYearChanged(); void setMonthChanged(CallableWithArgs<Void> monthChanged); void setLocaleChanged(CallableWithArgs<Void> localeChanged); void setDisabledDateFilterChanged(CallableWithArgs<Void> disabledDateFilterChanged); void setYearChanged(CallableWithArgs<Void> yearChanged); void monthChanged(org.apache.pivot.wtk.Calendar arg0, int arg1); void localeChanged(org.apache.pivot.wtk.Calendar arg0, java.util.Locale arg1); void disabledDateFilterChanged(org.apache.pivot.wtk.Calendar arg0, org.apache.pivot.util.Filter<CalendarDate> arg1); void yearChanged(org.apache.pivot.wtk.Calendar arg0, int arg1); }
CalendarAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.CalendarListener { public void yearChanged(org.apache.pivot.wtk.Calendar arg0, int arg1) { if (yearChanged != null) { yearChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getMonthChanged(); CallableWithArgs<Void> getLocaleChanged(); CallableWithArgs<Void> getDisabledDateFilterChanged(); CallableWithArgs<Void> getYearChanged(); void setMonthChanged(CallableWithArgs<Void> monthChanged); void setLocaleChanged(CallableWithArgs<Void> localeChanged); void setDisabledDateFilterChanged(CallableWithArgs<Void> disabledDateFilterChanged); void setYearChanged(CallableWithArgs<Void> yearChanged); void monthChanged(org.apache.pivot.wtk.Calendar arg0, int arg1); void localeChanged(org.apache.pivot.wtk.Calendar arg0, java.util.Locale arg1); void disabledDateFilterChanged(org.apache.pivot.wtk.Calendar arg0, org.apache.pivot.util.Filter<CalendarDate> arg1); void yearChanged(org.apache.pivot.wtk.Calendar arg0, int arg1);  }