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