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