test_class.declarator: adapter = new SheetStateAdapter()
test_class.modifier: private
test_class.original_string: private SheetStateAdapter adapter = new SheetStateAdapter();
test_class.type: SheetStateAdapter
test_class.var_name: adapter
test_class.file: subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/SheetStateAdapterTest.java
test_class.identifier: SheetStateAdapterTest
test_case.body: @Test
      public void testPreviewSheetClose() {
          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.getPreviewSheetClose());
          adapter.previewSheetClose(null, false);
          assertFalse(invoked[0]);
  
          adapter.setPreviewSheetClose(callable);
          adapter.previewSheetClose(null, false);
          assertTrue(invoked[0]);
      }
test_case.class_method_signature: SheetStateAdapterTest.testPreviewSheetClose()
test_case.full_signature: @Test public void testPreviewSheetClose()
test_case.identifier: testPreviewSheetClose
test_case.invocations: assertNull getPreviewSheetClose previewSheetClose assertFalse setPreviewSheetClose previewSheetClose assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPreviewSheetClose()
focal_class.declarator: previewSheetClose
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Vote> previewSheetClose;
focal_class.type: CallableWithArgs<Vote>
focal_class.var_name: previewSheetClose
focal_class.declarator: sheetCloseVetoed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> sheetCloseVetoed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: sheetCloseVetoed
focal_class.declarator: sheetClosed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> sheetClosed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: sheetClosed
focal_class.file: subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/SheetStateAdapter.java
focal_class.identifier: SheetStateAdapter
focal_class.interfaces: implements GriffonPivotAdapter, org.apache.pivot.wtk.SheetStateListener
focal_class.class_method_signature: SheetStateAdapter.getPreviewSheetClose()
focal_class.full_signature: public CallableWithArgs<Vote> getPreviewSheetClose()
focal_class.identifier: getPreviewSheetClose
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Vote>
focal_class.signature: CallableWithArgs<Vote> getPreviewSheetClose()
focal_class.class_method_signature: SheetStateAdapter.getSheetCloseVetoed()
focal_class.full_signature: public CallableWithArgs<Void> getSheetCloseVetoed()
focal_class.identifier: getSheetCloseVetoed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getSheetCloseVetoed()
focal_class.class_method_signature: SheetStateAdapter.getSheetClosed()
focal_class.full_signature: public CallableWithArgs<Void> getSheetClosed()
focal_class.identifier: getSheetClosed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getSheetClosed()
focal_class.class_method_signature: SheetStateAdapter.setPreviewSheetClose(CallableWithArgs<Vote> previewSheetClose)
focal_class.full_signature: public void setPreviewSheetClose(CallableWithArgs<Vote> previewSheetClose)
focal_class.identifier: setPreviewSheetClose
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Vote> previewSheetClose)
focal_class.return: void
focal_class.signature: void setPreviewSheetClose(CallableWithArgs<Vote> previewSheetClose)
focal_class.class_method_signature: SheetStateAdapter.setSheetCloseVetoed(CallableWithArgs<Void> sheetCloseVetoed)
focal_class.full_signature: public void setSheetCloseVetoed(CallableWithArgs<Void> sheetCloseVetoed)
focal_class.identifier: setSheetCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> sheetCloseVetoed)
focal_class.return: void
focal_class.signature: void setSheetCloseVetoed(CallableWithArgs<Void> sheetCloseVetoed)
focal_class.class_method_signature: SheetStateAdapter.setSheetClosed(CallableWithArgs<Void> sheetClosed)
focal_class.full_signature: public void setSheetClosed(CallableWithArgs<Void> sheetClosed)
focal_class.identifier: setSheetClosed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> sheetClosed)
focal_class.return: void
focal_class.signature: void setSheetClosed(CallableWithArgs<Void> sheetClosed)
focal_class.class_method_signature: SheetStateAdapter.previewSheetClose(org.apache.pivot.wtk.Sheet arg0, boolean arg1)
focal_class.full_signature: public org.apache.pivot.util.Vote previewSheetClose(org.apache.pivot.wtk.Sheet arg0, boolean arg1)
focal_class.identifier: previewSheetClose
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Sheet arg0, boolean arg1)
focal_class.return: org.apache.pivot.util.Vote
focal_class.signature: org.apache.pivot.util.Vote previewSheetClose(org.apache.pivot.wtk.Sheet arg0, boolean arg1)
focal_class.class_method_signature: SheetStateAdapter.sheetCloseVetoed(org.apache.pivot.wtk.Sheet arg0, org.apache.pivot.util.Vote arg1)
focal_class.full_signature: public void sheetCloseVetoed(org.apache.pivot.wtk.Sheet arg0, org.apache.pivot.util.Vote arg1)
focal_class.identifier: sheetCloseVetoed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Sheet arg0, org.apache.pivot.util.Vote arg1)
focal_class.return: void
focal_class.signature: void sheetCloseVetoed(org.apache.pivot.wtk.Sheet arg0, org.apache.pivot.util.Vote arg1)
focal_class.class_method_signature: SheetStateAdapter.sheetClosed(org.apache.pivot.wtk.Sheet arg0)
focal_class.full_signature: public void sheetClosed(org.apache.pivot.wtk.Sheet arg0)
focal_class.identifier: sheetClosed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Sheet arg0)
focal_class.return: void
focal_class.signature: void sheetClosed(org.apache.pivot.wtk.Sheet arg0)
focal_method.body: public org.apache.pivot.util.Vote previewSheetClose(org.apache.pivot.wtk.Sheet arg0, boolean arg1) {
          if (previewSheetClose != null) {
              return previewSheetClose.call(arg0, arg1);
          }
          return Vote.APPROVE;
      }
focal_method.class_method_signature: SheetStateAdapter.previewSheetClose(org.apache.pivot.wtk.Sheet arg0, boolean arg1)
focal_method.full_signature: public org.apache.pivot.util.Vote previewSheetClose(org.apache.pivot.wtk.Sheet arg0, boolean arg1)
focal_method.identifier: previewSheetClose
focal_method.invocations: call
focal_method.modifiers: public
focal_method.parameters: (org.apache.pivot.wtk.Sheet arg0, boolean arg1)
focal_method.return: org.apache.pivot.util.Vote
focal_method.signature: org.apache.pivot.util.Vote previewSheetClose(org.apache.pivot.wtk.Sheet arg0, boolean arg1)