@Test public void testSelectedIndexChangeVetoed() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getSelectedIndexChangeVetoed()); adapter.selectedIndexChangeVetoed(null, null); assertFalse(invoked[0]); adapter.setSelectedIndexChangeVetoed(callable); adapter.selectedIndexChangeVetoed(null, null); assertTrue(invoked[0]); }
public void selectedIndexChangeVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1) { if (selectedIndexChangeVetoed != null) { selectedIndexChangeVetoed.call(arg0, arg1); } }
TabPaneSelectionAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TabPaneSelectionListener { public void selectedIndexChangeVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1) { if (selectedIndexChangeVetoed != null) { selectedIndexChangeVetoed.call(arg0, arg1); } } }
TabPaneSelectionAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TabPaneSelectionListener { public void selectedIndexChangeVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1) { if (selectedIndexChangeVetoed != null) { selectedIndexChangeVetoed.call(arg0, arg1); } }  }
TabPaneSelectionAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TabPaneSelectionListener { public void selectedIndexChangeVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1) { if (selectedIndexChangeVetoed != null) { selectedIndexChangeVetoed.call(arg0, arg1); } }  CallableWithArgs<Vote> getPreviewSelectedIndexChange(); CallableWithArgs<Void> getSelectedIndexChanged(); CallableWithArgs<Void> getSelectedIndexChangeVetoed(); void setPreviewSelectedIndexChange(CallableWithArgs<Vote> previewSelectedIndexChange); void setSelectedIndexChanged(CallableWithArgs<Void> selectedIndexChanged); void setSelectedIndexChangeVetoed(CallableWithArgs<Void> selectedIndexChangeVetoed); org.apache.pivot.util.Vote previewSelectedIndexChange(org.apache.pivot.wtk.TabPane arg0, int arg1); void selectedIndexChanged(org.apache.pivot.wtk.TabPane arg0, int arg1); void selectedIndexChangeVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1); }
TabPaneSelectionAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TabPaneSelectionListener { public void selectedIndexChangeVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1) { if (selectedIndexChangeVetoed != null) { selectedIndexChangeVetoed.call(arg0, arg1); } }  CallableWithArgs<Vote> getPreviewSelectedIndexChange(); CallableWithArgs<Void> getSelectedIndexChanged(); CallableWithArgs<Void> getSelectedIndexChangeVetoed(); void setPreviewSelectedIndexChange(CallableWithArgs<Vote> previewSelectedIndexChange); void setSelectedIndexChanged(CallableWithArgs<Void> selectedIndexChanged); void setSelectedIndexChangeVetoed(CallableWithArgs<Void> selectedIndexChangeVetoed); org.apache.pivot.util.Vote previewSelectedIndexChange(org.apache.pivot.wtk.TabPane arg0, int arg1); void selectedIndexChanged(org.apache.pivot.wtk.TabPane arg0, int arg1); void selectedIndexChangeVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1);  }