test_class.declarator: adapter = new MenuPopupStateAdapter()
test_class.modifier: private
test_class.original_string: private MenuPopupStateAdapter adapter = new MenuPopupStateAdapter();
test_class.type: MenuPopupStateAdapter
test_class.var_name: adapter
test_class.file: subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/MenuPopupStateAdapterTest.java
test_class.identifier: MenuPopupStateAdapterTest
test_case.body: @Test
      public void testMenuPopupCloseVetoed() {
          final boolean[] invoked = new boolean[1];
          CallableWithArgs<Void> callable = new CallableWithArgs<Void>() {
              public Void call(Object... args) {
                  invoked[0] = true;
                  return null;
              } 
          };
  
          assertNull(adapter.getMenuPopupCloseVetoed());
          adapter.menuPopupCloseVetoed(null, null);
          assertFalse(invoked[0]);
  
          adapter.setMenuPopupCloseVetoed(callable);
          adapter.menuPopupCloseVetoed(null, null);
          assertTrue(invoked[0]);
      }
test_case.class_method_signature: MenuPopupStateAdapterTest.testMenuPopupCloseVetoed()
test_case.full_signature: @Test public void testMenuPopupCloseVetoed()
test_case.identifier: testMenuPopupCloseVetoed
test_case.invocations: assertNull getMenuPopupCloseVetoed menuPopupCloseVetoed assertFalse setMenuPopupCloseVetoed menuPopupCloseVetoed assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMenuPopupCloseVetoed()
focal_class.declarator: previewMenuPopupClose
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Vote> previewMenuPopupClose;
focal_class.type: CallableWithArgs<Vote>
focal_class.var_name: previewMenuPopupClose
focal_class.declarator: menuPopupClosed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> menuPopupClosed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: menuPopupClosed
focal_class.declarator: menuPopupCloseVetoed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> menuPopupCloseVetoed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: menuPopupCloseVetoed
focal_class.file: subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/MenuPopupStateAdapter.java
focal_class.identifier: MenuPopupStateAdapter
focal_class.interfaces: implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuPopupStateListener
focal_class.class_method_signature: MenuPopupStateAdapter.getPreviewMenuPopupClose()
focal_class.full_signature: public CallableWithArgs<Vote> getPreviewMenuPopupClose()
focal_class.identifier: getPreviewMenuPopupClose
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Vote>
focal_class.signature: CallableWithArgs<Vote> getPreviewMenuPopupClose()
focal_class.class_method_signature: MenuPopupStateAdapter.getMenuPopupClosed()
focal_class.full_signature: public CallableWithArgs<Void> getMenuPopupClosed()
focal_class.identifier: getMenuPopupClosed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getMenuPopupClosed()
focal_class.class_method_signature: MenuPopupStateAdapter.getMenuPopupCloseVetoed()
focal_class.full_signature: public CallableWithArgs<Void> getMenuPopupCloseVetoed()
focal_class.identifier: getMenuPopupCloseVetoed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getMenuPopupCloseVetoed()
focal_class.class_method_signature: MenuPopupStateAdapter.setPreviewMenuPopupClose(CallableWithArgs<Vote> previewMenuPopupClose)
focal_class.full_signature: public void setPreviewMenuPopupClose(CallableWithArgs<Vote> previewMenuPopupClose)
focal_class.identifier: setPreviewMenuPopupClose
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Vote> previewMenuPopupClose)
focal_class.return: void
focal_class.signature: void setPreviewMenuPopupClose(CallableWithArgs<Vote> previewMenuPopupClose)
focal_class.class_method_signature: MenuPopupStateAdapter.setMenuPopupClosed(CallableWithArgs<Void> menuPopupClosed)
focal_class.full_signature: public void setMenuPopupClosed(CallableWithArgs<Void> menuPopupClosed)
focal_class.identifier: setMenuPopupClosed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> menuPopupClosed)
focal_class.return: void
focal_class.signature: void setMenuPopupClosed(CallableWithArgs<Void> menuPopupClosed)
focal_class.class_method_signature: MenuPopupStateAdapter.setMenuPopupCloseVetoed(CallableWithArgs<Void> menuPopupCloseVetoed)
focal_class.full_signature: public void setMenuPopupCloseVetoed(CallableWithArgs<Void> menuPopupCloseVetoed)
focal_class.identifier: setMenuPopupCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> menuPopupCloseVetoed)
focal_class.return: void
focal_class.signature: void setMenuPopupCloseVetoed(CallableWithArgs<Void> menuPopupCloseVetoed)
focal_class.class_method_signature: MenuPopupStateAdapter.previewMenuPopupClose(org.apache.pivot.wtk.MenuPopup arg0, boolean arg1)
focal_class.full_signature: public org.apache.pivot.util.Vote previewMenuPopupClose(org.apache.pivot.wtk.MenuPopup arg0, boolean arg1)
focal_class.identifier: previewMenuPopupClose
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.MenuPopup arg0, boolean arg1)
focal_class.return: org.apache.pivot.util.Vote
focal_class.signature: org.apache.pivot.util.Vote previewMenuPopupClose(org.apache.pivot.wtk.MenuPopup arg0, boolean arg1)
focal_class.class_method_signature: MenuPopupStateAdapter.menuPopupClosed(org.apache.pivot.wtk.MenuPopup arg0)
focal_class.full_signature: public void menuPopupClosed(org.apache.pivot.wtk.MenuPopup arg0)
focal_class.identifier: menuPopupClosed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.MenuPopup arg0)
focal_class.return: void
focal_class.signature: void menuPopupClosed(org.apache.pivot.wtk.MenuPopup arg0)
focal_class.class_method_signature: MenuPopupStateAdapter.menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)
focal_class.full_signature: public void menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)
focal_class.identifier: menuPopupCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)
focal_class.return: void
focal_class.signature: void menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)
focal_method.body: public void menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1) {
          if (menuPopupCloseVetoed != null) {
              menuPopupCloseVetoed.call(arg0, arg1);
          }
      }
focal_method.class_method_signature: MenuPopupStateAdapter.menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)
focal_method.full_signature: public void menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)
focal_method.identifier: menuPopupCloseVetoed
focal_method.invocations: call
focal_method.modifiers: public
focal_method.parameters: (org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)
focal_method.return: void
focal_method.signature: void menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1)