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