@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]); }
public void buttonPressed(org.apache.pivot.wtk.Button arg0) { if (buttonPressed != null) { buttonPressed.call(arg0); } }
ButtonPressAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ButtonPressListener { public void buttonPressed(org.apache.pivot.wtk.Button arg0) { if (buttonPressed != null) { buttonPressed.call(arg0); } } }
ButtonPressAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ButtonPressListener { public void buttonPressed(org.apache.pivot.wtk.Button arg0) { if (buttonPressed != null) { buttonPressed.call(arg0); } }  }
ButtonPressAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ButtonPressListener { public void buttonPressed(org.apache.pivot.wtk.Button arg0) { if (buttonPressed != null) { buttonPressed.call(arg0); } }  CallableWithArgs<Void> getButtonPressed(); void setButtonPressed(CallableWithArgs<Void> buttonPressed); void buttonPressed(org.apache.pivot.wtk.Button arg0); }
ButtonPressAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ButtonPressListener { public void buttonPressed(org.apache.pivot.wtk.Button arg0) { if (buttonPressed != null) { buttonPressed.call(arg0); } }  CallableWithArgs<Void> getButtonPressed(); void setButtonPressed(CallableWithArgs<Void> buttonPressed); void buttonPressed(org.apache.pivot.wtk.Button arg0);  }