@Test public void testWindowOpenVetoed() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getWindowOpenVetoed()); adapter.windowOpenVetoed(null, null); assertFalse(invoked[0]); adapter.setWindowOpenVetoed(callable); adapter.windowOpenVetoed(null, null); assertTrue(invoked[0]); }
public void windowOpenVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1) { if (windowOpenVetoed != null) { windowOpenVetoed.call(arg0, arg1); } }
WindowStateAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.WindowStateListener { public void windowOpenVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1) { if (windowOpenVetoed != null) { windowOpenVetoed.call(arg0, arg1); } } }
WindowStateAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.WindowStateListener { public void windowOpenVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1) { if (windowOpenVetoed != null) { windowOpenVetoed.call(arg0, arg1); } }  }
WindowStateAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.WindowStateListener { public void windowOpenVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1) { if (windowOpenVetoed != null) { windowOpenVetoed.call(arg0, arg1); } }  CallableWithArgs<Vote> getPreviewWindowOpen(); CallableWithArgs<Void> getWindowOpenVetoed(); CallableWithArgs<Vote> getPreviewWindowClose(); CallableWithArgs<Void> getWindowCloseVetoed(); CallableWithArgs<Void> getWindowOpened(); CallableWithArgs<Void> getWindowClosed(); void setPreviewWindowOpen(CallableWithArgs<Vote> previewWindowOpen); void setWindowOpenVetoed(CallableWithArgs<Void> windowOpenVetoed); void setPreviewWindowClose(CallableWithArgs<Vote> previewWindowClose); void setWindowCloseVetoed(CallableWithArgs<Void> windowCloseVetoed); void setWindowOpened(CallableWithArgs<Void> windowOpened); void setWindowClosed(CallableWithArgs<Void> windowClosed); org.apache.pivot.util.Vote previewWindowOpen(org.apache.pivot.wtk.Window arg0); void windowOpenVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1); org.apache.pivot.util.Vote previewWindowClose(org.apache.pivot.wtk.Window arg0); void windowCloseVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1); void windowOpened(org.apache.pivot.wtk.Window arg0); void windowClosed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.wtk.Display arg1, org.apache.pivot.wtk.Window arg2); }
WindowStateAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.WindowStateListener { public void windowOpenVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1) { if (windowOpenVetoed != null) { windowOpenVetoed.call(arg0, arg1); } }  CallableWithArgs<Vote> getPreviewWindowOpen(); CallableWithArgs<Void> getWindowOpenVetoed(); CallableWithArgs<Vote> getPreviewWindowClose(); CallableWithArgs<Void> getWindowCloseVetoed(); CallableWithArgs<Void> getWindowOpened(); CallableWithArgs<Void> getWindowClosed(); void setPreviewWindowOpen(CallableWithArgs<Vote> previewWindowOpen); void setWindowOpenVetoed(CallableWithArgs<Void> windowOpenVetoed); void setPreviewWindowClose(CallableWithArgs<Vote> previewWindowClose); void setWindowCloseVetoed(CallableWithArgs<Void> windowCloseVetoed); void setWindowOpened(CallableWithArgs<Void> windowOpened); void setWindowClosed(CallableWithArgs<Void> windowClosed); org.apache.pivot.util.Vote previewWindowOpen(org.apache.pivot.wtk.Window arg0); void windowOpenVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1); org.apache.pivot.util.Vote previewWindowClose(org.apache.pivot.wtk.Window arg0); void windowCloseVetoed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.util.Vote arg1); void windowOpened(org.apache.pivot.wtk.Window arg0); void windowClosed(org.apache.pivot.wtk.Window arg0, org.apache.pivot.wtk.Display arg1, org.apache.pivot.wtk.Window arg2);  }