test_class.declarator: adapter = new ComponentKeyAdapter()
test_class.modifier: private
test_class.original_string: private ComponentKeyAdapter adapter = new ComponentKeyAdapter();
test_class.type: ComponentKeyAdapter
test_class.var_name: adapter
test_class.file: subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/ComponentKeyAdapterTest.java
test_class.identifier: ComponentKeyAdapterTest
test_case.body: @Test
      public void testKeyTyped() {
          final boolean[] invoked = new boolean[1];
          CallableWithArgs<Boolean> callable = new CallableWithArgs<Boolean>() {
              public Boolean call(Object... args) {
                  invoked[0] = true;
                  return false;
              }
          };
  
          assertNull(adapter.getKeyTyped());
          adapter.keyTyped(null, '0');
          assertFalse(invoked[0]);
  
          adapter.setKeyTyped(callable);
          adapter.keyTyped(null, '0');
          assertTrue(invoked[0]);
  
          adapter.setKeyTyped(new CallableWithArgs<Boolean>() {
              public Boolean call(Object... args) {
                  invoked[0] = true;
                  return true;
              }
          });
          adapter.keyTyped(null, '0');
          assertTrue(invoked[0]);
      }
test_case.class_method_signature: ComponentKeyAdapterTest.testKeyTyped()
test_case.full_signature: @Test public void testKeyTyped()
test_case.identifier: testKeyTyped
test_case.invocations: assertNull getKeyTyped keyTyped assertFalse setKeyTyped keyTyped assertTrue setKeyTyped keyTyped assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testKeyTyped()
focal_class.declarator: keyTyped
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Boolean> keyTyped;
focal_class.type: CallableWithArgs<Boolean>
focal_class.var_name: keyTyped
focal_class.declarator: keyPressed
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Boolean> keyPressed;
focal_class.type: CallableWithArgs<Boolean>
focal_class.var_name: keyPressed
focal_class.declarator: keyReleased
focal_class.modifier: private
focal_class.original_string: private CallableWithArgs<Boolean> keyReleased;
focal_class.type: CallableWithArgs<Boolean>
focal_class.var_name: keyReleased
focal_class.file: subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/ComponentKeyAdapter.java
focal_class.identifier: ComponentKeyAdapter
focal_class.interfaces: implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentKeyListener
focal_class.class_method_signature: ComponentKeyAdapter.getKeyTyped()
focal_class.full_signature: public CallableWithArgs<Boolean> getKeyTyped()
focal_class.identifier: getKeyTyped
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Boolean>
focal_class.signature: CallableWithArgs<Boolean> getKeyTyped()
focal_class.class_method_signature: ComponentKeyAdapter.getKeyPressed()
focal_class.full_signature: public CallableWithArgs<Boolean> getKeyPressed()
focal_class.identifier: getKeyPressed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Boolean>
focal_class.signature: CallableWithArgs<Boolean> getKeyPressed()
focal_class.class_method_signature: ComponentKeyAdapter.getKeyReleased()
focal_class.full_signature: public CallableWithArgs<Boolean> getKeyReleased()
focal_class.identifier: getKeyReleased
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CallableWithArgs<Boolean>
focal_class.signature: CallableWithArgs<Boolean> getKeyReleased()
focal_class.class_method_signature: ComponentKeyAdapter.setKeyTyped(CallableWithArgs<Boolean> keyTyped)
focal_class.full_signature: public void setKeyTyped(CallableWithArgs<Boolean> keyTyped)
focal_class.identifier: setKeyTyped
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Boolean> keyTyped)
focal_class.return: void
focal_class.signature: void setKeyTyped(CallableWithArgs<Boolean> keyTyped)
focal_class.class_method_signature: ComponentKeyAdapter.setKeyPressed(CallableWithArgs<Boolean> keyPressed)
focal_class.full_signature: public void setKeyPressed(CallableWithArgs<Boolean> keyPressed)
focal_class.identifier: setKeyPressed
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Boolean> keyPressed)
focal_class.return: void
focal_class.signature: void setKeyPressed(CallableWithArgs<Boolean> keyPressed)
focal_class.class_method_signature: ComponentKeyAdapter.setKeyReleased(CallableWithArgs<Boolean> keyReleased)
focal_class.full_signature: public void setKeyReleased(CallableWithArgs<Boolean> keyReleased)
focal_class.identifier: setKeyReleased
focal_class.modifiers: public
focal_class.parameters: (CallableWithArgs<Boolean> keyReleased)
focal_class.return: void
focal_class.signature: void setKeyReleased(CallableWithArgs<Boolean> keyReleased)
focal_class.class_method_signature: ComponentKeyAdapter.keyTyped(org.apache.pivot.wtk.Component arg0, char arg1)
focal_class.full_signature: public boolean keyTyped(org.apache.pivot.wtk.Component arg0, char arg1)
focal_class.identifier: keyTyped
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Component arg0, char arg1)
focal_class.return: boolean
focal_class.signature: boolean keyTyped(org.apache.pivot.wtk.Component arg0, char arg1)
focal_class.class_method_signature: ComponentKeyAdapter.keyPressed(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_class.full_signature: public boolean keyPressed(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_class.identifier: keyPressed
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_class.return: boolean
focal_class.signature: boolean keyPressed(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_class.class_method_signature: ComponentKeyAdapter.keyReleased(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_class.full_signature: public boolean keyReleased(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_class.identifier: keyReleased
focal_class.modifiers: public
focal_class.parameters: (org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_class.return: boolean
focal_class.signature: boolean keyReleased(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.Keyboard.KeyLocation arg2)
focal_method.body: public boolean keyTyped(org.apache.pivot.wtk.Component arg0, char arg1) {
          return keyTyped != null && keyTyped.call(arg0, arg1);
      }
focal_method.class_method_signature: ComponentKeyAdapter.keyTyped(org.apache.pivot.wtk.Component arg0, char arg1)
focal_method.full_signature: public boolean keyTyped(org.apache.pivot.wtk.Component arg0, char arg1)
focal_method.identifier: keyTyped
focal_method.invocations: call
focal_method.modifiers: public
focal_method.parameters: (org.apache.pivot.wtk.Component arg0, char arg1)
focal_method.return: boolean
focal_method.signature: boolean keyTyped(org.apache.pivot.wtk.Component arg0, char arg1)