Package limelight.ui

Examples of limelight.ui.MockPanel


  }

  @Test
  public void dispatching() throws Exception
  {
    MockPanel recipient = new MockPanel();
    MockEventAction action = new MockEventAction();
    recipient.getEventHandler().add(event.getClass(), action);

    event.dispatch(recipient);

    assertEquals(event, action.event);
    assertEquals(source, event.getSource());
View Full Code Here


  private MouseExitedEvent event;

  @Before
  public void setUp() throws Exception
  {
    panel = new MockPanel();
    event = new MouseExitedEvent(0, new Point(0, 0), 0);
  }
View Full Code Here

  }

  @Before
  public void setUp() throws Exception
  {
    panel = new MockPanel();
    event = new TestableKeyEvent(panel, 123, KeyEvent.KEY_ENTER, KeyEvent.LOCATION_LEFT);
  }
View Full Code Here

  private MouseWheelEvent event;

  @Before
  public void setUp() throws Exception
  {
    panel = new MockPanel();
    event = new MouseWheelEvent(123, new Point(1, 2), 0, MouseWheelEvent.UNIT_SCROLL, 3, 4);
  }
View Full Code Here

  }

  @Before
  public void setUp() throws Exception
  {
    panel = new MockPanel();
    location = new Point(123, 456);
    event = new TestableMouseEvent(321, location, 1);
    event.setSource(panel);
  }
View Full Code Here

  {
    panel.setLocation(23, 56);
    assertEquals(100, event.getLocation().x);
    assertEquals(400, event.getLocation().y);

    MockPanel recipient = new MockPanel();
    recipient.setLocation(100, 400);

    event.setRecipient(recipient);

    assertEquals(23, event.getLocation().x);
    assertEquals(56, event.getLocation().y);
View Full Code Here

  private MouseEnteredEvent event;

  @Before
  public void setUp() throws Exception
  {
    panel = new MockPanel();
    event = new MouseEnteredEvent(0, new Point(0, 0), 0);
  }
View Full Code Here

  private IlluminatedEvent event;

  @Before
  public void setUp() throws Exception
  {
    panel = new MockPanel();
    event = new IlluminatedEvent(panel);
  }
View Full Code Here

    root.add(parent);
    child = new MockParentPanel();
    parent.add(child);
    grandChild = new MockParentPanel();
    child.add(grandChild);
    sibling = new MockPanel();
    parent.add(sibling);

    root.setStage(new MockStage());
  }
View Full Code Here

  }

  @Test
  public void shouldCanAddPanels() throws Exception
  {
    Panel panel1 = new MockPanel();
    Panel panel2 = new MockPanel();

    panel.add(panel1);
    panel.add(panel2);

    assertEquals(panel1, panel.getChildren().get(0));
View Full Code Here

TOP

Related Classes of limelight.ui.MockPanel

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.