Package limelight.ui.events.panel

Examples of limelight.ui.events.panel.CharTypedEvent


  @Test
  public void buttonPressedEventInvokedWhenSpaceTyped() throws Exception
  {
    panel.getEventHandler().add(ButtonPushedEvent.class, action);

    new CharTypedEvent(0, ' ').dispatch(panel);

    assertEquals(true, action.invoked);
  }
View Full Code Here


  @Test
  public void buttonPressedEventNotInvokedWhenSpaceTypedEventIsConsumed() throws Exception
  {
    panel.getEventHandler().add(ButtonPushedEvent.class, action);

    new CharTypedEvent(0, ' ').consumed().dispatch(panel);

    assertEquals(false, action.invoked);
  }
View Full Code Here

  @Test
  public void buttonPressedNotEventInvokedWhenOtherCharsTypes() throws Exception
  {
    panel.getEventHandler().add(ButtonPushedEvent.class, action);

    new CharTypedEvent(0, 'a').dispatch(panel);

    assertEquals(false, action.invoked);
  }
View Full Code Here

TOP

Related Classes of limelight.ui.events.panel.CharTypedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.