Examples of MouseClickedEvent


Examples of limelight.ui.events.panel.MouseClickedEvent

    Object playerObj = player.cast(prop);

    assertEquals("SamplePlayer", playerObj.getClass().getName());
    assertEquals(1, prop.getEventHandler().getActions(MouseClickedEvent.class).size());
    new MouseClickedEvent(0, null, 1).dispatch(prop);
    assertEquals(1, samplePlayerClass.getField("invocations").get(lastSamplePlayer()));
  }
View Full Code Here

Examples of limelight.ui.events.panel.MouseClickedEvent

  @Test
  public void pushingSelectsCheckBox() throws Exception
  {
    assertEquals(false, panel.isSelected());

    new MouseClickedEvent(0, null, 0).dispatch(panel);

    assertEquals(true, panel.isSelected());
  }
View Full Code Here

Examples of limelight.ui.events.panel.MouseClickedEvent

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

    new MouseClickedEvent(0, null, 0).dispatch(panel);

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

Examples of limelight.ui.events.panel.MouseClickedEvent

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

    new MouseClickedEvent(0, null, 0).consumed().dispatch(panel);

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

Examples of limelight.ui.events.panel.MouseClickedEvent

  {
    PropPanel parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    parent.getEventHandler().add(ButtonPushedEvent.class, action);

    new MouseClickedEvent(0, null, 0).dispatch(panel);

    assertEquals(true, action.invoked);
    assertEquals(parent, action.recipient);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.