test_class.declarator: adapter = new ButtonPressAdapter()
test_class.modifier: private
test_class.original_string: private ButtonPressAdapter adapter = new ButtonPressAdapter();
test_class.type: ButtonPressAdapter
test_class.var_name: adapter
test_class.file: subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/ButtonPressAdapterTest.java
test_class.identifier: ButtonPressAdapterTest
test_case.body: @Test
      public void testButtonPressed() {
          final boolean[] invoked = new boolean[1];
          CallableWithArgs<Void> callable = new CallableWithArgs<Void>() {
              public Void call(Object... args) {
                  invoked[0] = true;
                  return null;
              } 
          };
  
          assertNull(adapter.getButtonPressed());
          adapter.buttonPressed(null);
          assertFalse(invoked[0]);
  
          adapter.setButtonPressed(callable);
          adapter.buttonPressed(null);
          assertTrue(invoked[0]);
      }
test_case.class_method_signature: ButtonPressAdapterTest.testButtonPressed()
test_case.full_signature: @Test public void testButtonPressed()
test_case.identifier: testButtonPressed
test_case.invocations: assertNull getButtonPressed buttonPressed assertFalse setButtonPressed buttonPressed assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testButtonPressed()
focal_class.declarator: buttonPressed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Void> buttonPressed;
focal_class.type: CallableWithArgs<Void>
focal_class.var_name: buttonPressed
focal_class.file: subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/ButtonPressAdapter.java
focal_class.identifier: ButtonPressAdapter
focal_class.interfaces: implements GriffonPivotAdapter, org.apache.pivot.wtk.ButtonPressListener
focal_class.class_method_signature: ButtonPressAdapter.getButtonPressed()
focal_class.full_signature: public CallableWithArgs<Void> getButtonPressed()
focal_class.identifier: getButtonPressed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Void>
focal_class.signature: CallableWithArgs<Void> getButtonPressed()
focal_class.class_method_signature: ButtonPressAdapter.setButtonPressed(CallableWithArgs<Void> buttonPressed)
focal_class.full_signature: public void setButtonPressed(CallableWithArgs<Void> buttonPressed)
focal_class.identifier: setButtonPressed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Void> buttonPressed)
focal_class.return: void
focal_class.signature: void setButtonPressed(CallableWithArgs<Void> buttonPressed)
focal_class.class_method_signature: ButtonPressAdapter.buttonPressed(org.apache.pivot.wtk.Button arg0)
focal_class.full_signature: public void buttonPressed(org.apache.pivot.wtk.Button arg0)
focal_class.identifier: buttonPressed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Button arg0)
focal_class.return: void
focal_class.signature: void buttonPressed(org.apache.pivot.wtk.Button arg0)
focal_method.body: public void buttonPressed(org.apache.pivot.wtk.Button arg0) {
          if (buttonPressed != null) {
              buttonPressed.call(arg0);
          }
      }
focal_method.class_method_signature: ButtonPressAdapter.buttonPressed(org.apache.pivot.wtk.Button arg0)
focal_method.full_signature: public void buttonPressed(org.apache.pivot.wtk.Button arg0)
focal_method.identifier: buttonPressed
focal_method.invocations: call
focal_method.modifiers: public
focal_method.parameters: (org.apache.pivot.wtk.Button arg0)
focal_method.return: void
focal_method.signature: void buttonPressed(org.apache.pivot.wtk.Button arg0)