test_class.declarator: adapter = new SuggestionPopupStateAdapter()
test_class.modifier: private
test_class.original_string: private SuggestionPopupStateAdapter adapter = new SuggestionPopupStateAdapter();
test_class.type: SuggestionPopupStateAdapter
test_class.var_name: adapter
test_class.file: subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/SuggestionPopupStateAdapterTest.java
test_class.identifier: SuggestionPopupStateAdapterTest
test_case.body: @Test
      public void testPreviewSuggestionPopupClose() {
          final boolean[] invoked = new boolean[1];
          CallableWithArgs<org.apache.pivot.util.Vote> callable = new CallableWithArgs<org.apache.pivot.util.Vote>() {
              public org.apache.pivot.util.Vote call(Object... args) {
                  invoked[0] = true;
                  return null;
              } 
          };
  
          assertNull(adapter.getPreviewSuggestionPopupClose());
          adapter.previewSuggestionPopupClose(null, false);
          assertFalse(invoked[0]);
  
          adapter.setPreviewSuggestionPopupClose(callable);
          adapter.previewSuggestionPopupClose(null, false);
          assertTrue(invoked[0]);
      }
test_case.class_method_signature: SuggestionPopupStateAdapterTest.testPreviewSuggestionPopupClose()
test_case.full_signature: @Test public void testPreviewSuggestionPopupClose()
test_case.identifier: testPreviewSuggestionPopupClose
test_case.invocations: assertNull getPreviewSuggestionPopupClose previewSuggestionPopupClose assertFalse setPreviewSuggestionPopupClose previewSuggestionPopupClose assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPreviewSuggestionPopupClose()
focal_class.declarator: previewSuggestionPopupClose
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Vote> previewSuggestionPopupClose;
focal_class.type: CallableWithArgs<Vote>
focal_class.var_name: previewSuggestionPopupClose
focal_class.declarator: suggestionPopupCloseVetoed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> suggestionPopupCloseVetoed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: suggestionPopupCloseVetoed
focal_class.declarator: suggestionPopupClosed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> suggestionPopupClosed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: suggestionPopupClosed
focal_class.file: subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/SuggestionPopupStateAdapter.java
focal_class.identifier: SuggestionPopupStateAdapter
focal_class.interfaces: implements GriffonPivotAdapter, org.apache.pivot.wtk.SuggestionPopupStateListener
focal_class.class_method_signature: SuggestionPopupStateAdapter.getPreviewSuggestionPopupClose()
focal_class.full_signature: public CallableWithArgs<Vote> getPreviewSuggestionPopupClose()
focal_class.identifier: getPreviewSuggestionPopupClose
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Vote>
focal_class.signature: CallableWithArgs<Vote> getPreviewSuggestionPopupClose()
focal_class.class_method_signature: SuggestionPopupStateAdapter.getSuggestionPopupCloseVetoed()
focal_class.full_signature: public CallableWithArgs<Void> getSuggestionPopupCloseVetoed()
focal_class.identifier: getSuggestionPopupCloseVetoed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getSuggestionPopupCloseVetoed()
focal_class.class_method_signature: SuggestionPopupStateAdapter.getSuggestionPopupClosed()
focal_class.full_signature: public CallableWithArgs<Void> getSuggestionPopupClosed()
focal_class.identifier: getSuggestionPopupClosed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getSuggestionPopupClosed()
focal_class.class_method_signature: SuggestionPopupStateAdapter.setPreviewSuggestionPopupClose(CallableWithArgs<Vote> previewSuggestionPopupClose)
focal_class.full_signature: public void setPreviewSuggestionPopupClose(CallableWithArgs<Vote> previewSuggestionPopupClose)
focal_class.identifier: setPreviewSuggestionPopupClose
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Vote> previewSuggestionPopupClose)
focal_class.return: void
focal_class.signature: void setPreviewSuggestionPopupClose(CallableWithArgs<Vote> previewSuggestionPopupClose)
focal_class.class_method_signature: SuggestionPopupStateAdapter.setSuggestionPopupCloseVetoed(CallableWithArgs<Void> suggestionPopupCloseVetoed)
focal_class.full_signature: public void setSuggestionPopupCloseVetoed(CallableWithArgs<Void> suggestionPopupCloseVetoed)
focal_class.identifier: setSuggestionPopupCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> suggestionPopupCloseVetoed)
focal_class.return: void
focal_class.signature: void setSuggestionPopupCloseVetoed(CallableWithArgs<Void> suggestionPopupCloseVetoed)
focal_class.class_method_signature: SuggestionPopupStateAdapter.setSuggestionPopupClosed(CallableWithArgs<Void> suggestionPopupClosed)
focal_class.full_signature: public void setSuggestionPopupClosed(CallableWithArgs<Void> suggestionPopupClosed)
focal_class.identifier: setSuggestionPopupClosed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> suggestionPopupClosed)
focal_class.return: void
focal_class.signature: void setSuggestionPopupClosed(CallableWithArgs<Void> suggestionPopupClosed)
focal_class.class_method_signature: SuggestionPopupStateAdapter.previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)
focal_class.full_signature: public org.apache.pivot.util.Vote previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)
focal_class.identifier: previewSuggestionPopupClose
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)
focal_class.return: org.apache.pivot.util.Vote
focal_class.signature: org.apache.pivot.util.Vote previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)
focal_class.class_method_signature: SuggestionPopupStateAdapter.suggestionPopupCloseVetoed(org.apache.pivot.wtk.SuggestionPopup arg0, org.apache.pivot.util.Vote arg1)
focal_class.full_signature: public void suggestionPopupCloseVetoed(org.apache.pivot.wtk.SuggestionPopup arg0, org.apache.pivot.util.Vote arg1)
focal_class.identifier: suggestionPopupCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.SuggestionPopup arg0, org.apache.pivot.util.Vote arg1)
focal_class.return: void
focal_class.signature: void suggestionPopupCloseVetoed(org.apache.pivot.wtk.SuggestionPopup arg0, org.apache.pivot.util.Vote arg1)
focal_class.class_method_signature: SuggestionPopupStateAdapter.suggestionPopupClosed(org.apache.pivot.wtk.SuggestionPopup arg0)
focal_class.full_signature: public void suggestionPopupClosed(org.apache.pivot.wtk.SuggestionPopup arg0)
focal_class.identifier: suggestionPopupClosed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.SuggestionPopup arg0)
focal_class.return: void
focal_class.signature: void suggestionPopupClosed(org.apache.pivot.wtk.SuggestionPopup arg0)
focal_method.body: public org.apache.pivot.util.Vote previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1) {
          if (previewSuggestionPopupClose != null) {
              return previewSuggestionPopupClose.call(arg0, arg1);
          }
          return Vote.APPROVE;
      }
focal_method.class_method_signature: SuggestionPopupStateAdapter.previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)
focal_method.full_signature: public org.apache.pivot.util.Vote previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)
focal_method.identifier: previewSuggestionPopupClose
focal_method.invocations: call
focal_method.modifiers: public
focal_method.parameters: (org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)
focal_method.return: org.apache.pivot.util.Vote
focal_method.signature: org.apache.pivot.util.Vote previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1)