test_class.declarator: adapter = new DialogStateAdapter()
test_class.modifier: private
test_class.original_string: private DialogStateAdapter adapter = new DialogStateAdapter();
test_class.type: DialogStateAdapter
test_class.var_name: adapter
test_class.file: subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/DialogStateAdapterTest.java
test_class.identifier: DialogStateAdapterTest
test_case.body: @Test
      public void testPreviewDialogClose() {
          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.getPreviewDialogClose());
          adapter.previewDialogClose(null, false);
          assertFalse(invoked[0]);
  
          adapter.setPreviewDialogClose(callable);
          adapter.previewDialogClose(null, false);
          assertTrue(invoked[0]);
      }
test_case.class_method_signature: DialogStateAdapterTest.testPreviewDialogClose()
test_case.full_signature: @Test public void testPreviewDialogClose()
test_case.identifier: testPreviewDialogClose
test_case.invocations: assertNull getPreviewDialogClose previewDialogClose assertFalse setPreviewDialogClose previewDialogClose assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPreviewDialogClose()
focal_class.declarator: previewDialogClose
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Vote> previewDialogClose;
focal_class.type: CallableWithArgs<Vote>
focal_class.var_name: previewDialogClose
focal_class.declarator: dialogCloseVetoed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> dialogCloseVetoed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: dialogCloseVetoed
focal_class.declarator: dialogClosed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> dialogClosed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: dialogClosed
focal_class.file: subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/DialogStateAdapter.java
focal_class.identifier: DialogStateAdapter
focal_class.interfaces: implements GriffonPivotAdapter, org.apache.pivot.wtk.DialogStateListener
focal_class.class_method_signature: DialogStateAdapter.getPreviewDialogClose()
focal_class.full_signature: public CallableWithArgs<Vote> getPreviewDialogClose()
focal_class.identifier: getPreviewDialogClose
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Vote>
focal_class.signature: CallableWithArgs<Vote> getPreviewDialogClose()
focal_class.class_method_signature: DialogStateAdapter.getDialogCloseVetoed()
focal_class.full_signature: public CallableWithArgs<Void> getDialogCloseVetoed()
focal_class.identifier: getDialogCloseVetoed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getDialogCloseVetoed()
focal_class.class_method_signature: DialogStateAdapter.getDialogClosed()
focal_class.full_signature: public CallableWithArgs<Void> getDialogClosed()
focal_class.identifier: getDialogClosed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getDialogClosed()
focal_class.class_method_signature: DialogStateAdapter.setPreviewDialogClose(CallableWithArgs<Vote> previewDialogClose)
focal_class.full_signature: public void setPreviewDialogClose(CallableWithArgs<Vote> previewDialogClose)
focal_class.identifier: setPreviewDialogClose
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Vote> previewDialogClose)
focal_class.return: void
focal_class.signature: void setPreviewDialogClose(CallableWithArgs<Vote> previewDialogClose)
focal_class.class_method_signature: DialogStateAdapter.setDialogCloseVetoed(CallableWithArgs<Void> dialogCloseVetoed)
focal_class.full_signature: public void setDialogCloseVetoed(CallableWithArgs<Void> dialogCloseVetoed)
focal_class.identifier: setDialogCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> dialogCloseVetoed)
focal_class.return: void
focal_class.signature: void setDialogCloseVetoed(CallableWithArgs<Void> dialogCloseVetoed)
focal_class.class_method_signature: DialogStateAdapter.setDialogClosed(CallableWithArgs<Void> dialogClosed)
focal_class.full_signature: public void setDialogClosed(CallableWithArgs<Void> dialogClosed)
focal_class.identifier: setDialogClosed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> dialogClosed)
focal_class.return: void
focal_class.signature: void setDialogClosed(CallableWithArgs<Void> dialogClosed)
focal_class.class_method_signature: DialogStateAdapter.previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_class.full_signature: public org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_class.identifier: previewDialogClose
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_class.return: org.apache.pivot.util.Vote
focal_class.signature: org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_class.class_method_signature: DialogStateAdapter.dialogCloseVetoed(org.apache.pivot.wtk.Dialog arg0, org.apache.pivot.util.Vote arg1)
focal_class.full_signature: public void dialogCloseVetoed(org.apache.pivot.wtk.Dialog arg0, org.apache.pivot.util.Vote arg1)
focal_class.identifier: dialogCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Dialog arg0, org.apache.pivot.util.Vote arg1)
focal_class.return: void
focal_class.signature: void dialogCloseVetoed(org.apache.pivot.wtk.Dialog arg0, org.apache.pivot.util.Vote arg1)
focal_class.class_method_signature: DialogStateAdapter.dialogClosed(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_class.full_signature: public void dialogClosed(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_class.identifier: dialogClosed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_class.return: void
focal_class.signature: void dialogClosed(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_method.body: public org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1) {
          if (previewDialogClose != null) {
              return previewDialogClose.call(arg0, arg1);
          }
          return Vote.APPROVE;
      }
focal_method.class_method_signature: DialogStateAdapter.previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_method.full_signature: public org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_method.identifier: previewDialogClose
focal_method.invocations: call
focal_method.modifiers: public
focal_method.parameters: (org.apache.pivot.wtk.Dialog arg0, boolean arg1)
focal_method.return: org.apache.pivot.util.Vote
focal_method.signature: org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1)