4748495051525354
return; if(isPushEvent(event)) { final Panel panel = event.getRecipient(); new ButtonPushedEvent().dispatch(panel); } }
767778798081828384
@Test public void pushSelectsButton() throws Exception { assertEquals(false, panel.isSelected()); new ButtonPushedEvent().dispatch(panel); assertEquals(true, panel.isSelected()); }
868788899091929394
@Test public void consumedPushDoesNothing() throws Exception { assertEquals(false, panel.isSelected()); new ButtonPushedEvent().consumed().dispatch(panel); assertEquals(false, panel.isSelected()); }
858687888990919293
@Test public void consumedPushesDoNothing() throws Exception { assertEquals(false, panel.isSelected()); new ButtonPushedEvent().consumed().dispatch(panel); assertEquals(false, panel.isSelected()); }