Package limelight.ui.model

Examples of limelight.ui.model.PropPanel$HoverOffAction


  }

  @Test
  public void setsPainterOnParent() throws Exception
  {
    PropPanel newParent = new PropPanel(new FakePropProxy());

    panel.setParent(newParent);

    assertEquals(TextInputPanel.TextInputPropPainter.instance, newParent.getPainter());
  }
View Full Code Here


  @Before
  public void setUp() throws Exception
  {
    panel = new DropDownPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);

    root = new FakeScene();
    root.add(parent);
    root.styleStore = BuiltInStyles.all();
View Full Code Here

    panel.setChoicesVargs(1, 2, 3);

    new ButtonPushedEvent().dispatch(panel);

    assertEquals(2, root.getChildren().size());
    PropPanel curtains = (PropPanel) root.getChildren().get(1);
    assertEquals("limelight_builtin_curtains", curtains.getName());

    PropPanel list = (PropPanel) curtains.getChildren().get(0);
    assertEquals("limelight_builtin_drop_down_popup_list", list.getName());

    assertEquals(3, list.getChildren().size());
    final PropPanel item1 = (PropPanel) list.getChildren().get(0);
    assertEquals("limelight_builtin_drop_down_popup_list_item", item1.getName());
    assertEquals("1", item1.getText());
    final PropPanel item2 = (PropPanel) list.getChildren().get(1);
    assertEquals("limelight_builtin_drop_down_popup_list_item", item2.getName());
    assertEquals("2", item2.getText());
    final PropPanel item3 = (PropPanel) list.getChildren().get(2);
    assertEquals("limelight_builtin_drop_down_popup_list_item", item3.getName());
    assertEquals("3", item3.getText());
  }
View Full Code Here

  {
    panel.setChoicesVargs(1, 2, 3);
    panel.setSelectedChoice(3);
    new ButtonPushedEvent().dispatch(panel);

    final PropPanel selected = panel.getPopup().getSelectedItem();
    assertEquals("3", selected.getText());
    assertEquals(root.getStyles().get("limelight_builtin_drop_down_popup_list_item_selected"), selected.getStyle().getScreen());
  }
View Full Code Here

  public void clickingOnListDoesNotCloseThePopup() throws Exception
  {
    panel.setChoicesVargs(1, 2, 3);
    new ButtonPushedEvent().dispatch(panel);

    final PropPanel popupList = panel.getPopup().getPopupList();
    new MouseClickedEvent(0, null, 0).dispatch(panel);

    assertEquals(true, isPopupOpen());
  }
View Full Code Here

  private TestableInputPanel input3;

  public void setUp() throws Exception
  {
    input = new TestableInputPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(input);
    KeyboardFocusManager.installed();
  }
View Full Code Here

  @Before
  public void setUp()
  {
    assumeTrue(TestUtil.notHeadless());
    panel = new TextAreaPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);

    root = new FakeScene();
    root.add(parent);
    root.setStage(new MockStage());
View Full Code Here

  public void setUp()
  {
    assumeTrue(TestUtil.notHeadless());
    root = new FakeScene();
    panel = new MockTextInputPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    root.add(parent);
    stage = new MockStage();
    root.setStage(stage);
    model = panel.getModel();
View Full Code Here

  public void getProp() throws Exception
  {
    assertEquals(null, event.getProp());

    final FakePropProxy propProxy = new FakePropProxy();
    PropPanel propPanel = new PropPanel(propProxy);
    event.setRecipient(propPanel);

    assertEquals(propProxy, event.getProp());
  }
View Full Code Here

    final Opts options = Opts.with("backgroundColor", "red", "shouldAllowClose", false);
    ScenePanel scene = (ScenePanel)production.loadScene("aScene", options.merge("name", "aScene", "path", "aScene"));

    scene.illuminate();
    assertEquals(2, scene.getChildren().size());
    final PropPanel child1 = (PropPanel)scene.getChildren().get(0);
    assertEquals("child", child1.getName());
    final PropPanel child2 = (PropPanel)scene.getChildren().get(1);
    assertEquals("child2", child2.getName());

    assertEquals(1, child1.getChildren().size());
    final PropPanel grandChild = (PropPanel)child1.getChildren().get(0);
    assertEquals("grandchild", grandChild.getName());
    assertEquals(0, child2.getChildren().size());
  }
View Full Code Here

TOP

Related Classes of limelight.ui.model.PropPanel$HoverOffAction

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.