Search in sources :

Example 11 with PropPanel

use of limelight.ui.model.PropPanel in project limelight by slagyr.

the class TextAreaPanelTest method setUp.

@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());
    graphics = new MockGraphics();
    model = panel.getModel();
    model.setText("Some Text");
}
Also used : PropPanel(limelight.ui.model.PropPanel) MockGraphics(limelight.ui.MockGraphics) FakeScene(limelight.ui.model.FakeScene) MockStage(limelight.ui.model.MockStage) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 12 with PropPanel

use of limelight.ui.model.PropPanel in project limelight by slagyr.

the class TextBoxPanelTest method setUp.

@Before
public void setUp() {
    assumeTrue(TestUtil.notHeadless());
    panel = new TextBoxPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    graphics = new MockGraphics();
    model = panel.getModel();
    model.setText("Some Text");
}
Also used : PropPanel(limelight.ui.model.PropPanel) MockGraphics(limelight.ui.MockGraphics) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 13 with PropPanel

use of limelight.ui.model.PropPanel in project limelight by slagyr.

the class CheckBoxPanelTest method setUp.

@Before
public void setUp() throws Exception {
    panel = new CheckBoxPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    root = new FakeScene();
    root.add(parent);
}
Also used : PropPanel(limelight.ui.model.PropPanel) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 14 with PropPanel

use of limelight.ui.model.PropPanel in project limelight by slagyr.

the class DropDownPanelTest method clickingOnListDoesNotCloseThePopup.

@Test
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());
}
Also used : PropPanel(limelight.ui.model.PropPanel) Test(org.junit.Test)

Example 15 with PropPanel

use of limelight.ui.model.PropPanel in project limelight by slagyr.

the class DropDownPanelTest method setUp.

@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();
    root.setProduction(new FakeProduction());
}
Also used : PropPanel(limelight.ui.model.PropPanel) FakeProduction(limelight.model.FakeProduction) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Aggregations

PropPanel (limelight.ui.model.PropPanel)34 FakePropProxy (limelight.model.api.FakePropProxy)22 FakeScene (limelight.ui.model.FakeScene)17 Before (org.junit.Before)16 Test (org.junit.Test)9 CastEvent (limelight.ui.events.panel.CastEvent)7 MouseClickedEvent (limelight.ui.events.panel.MouseClickedEvent)4 Event (limelight.events.Event)3 EventAction (limelight.events.EventAction)3 MockGraphics (limelight.ui.MockGraphics)3 SimplePropProxy (limelight.ui.SimplePropProxy)3 MouseEnteredEvent (limelight.ui.events.panel.MouseEnteredEvent)3 PanelEvent (limelight.ui.events.panel.PanelEvent)3 MockStage (limelight.ui.model.MockStage)3 RadioButtonGroup (limelight.ui.RadioButtonGroup)2 Scene (limelight.ui.model.Scene)2 ScenePanel (limelight.ui.model.ScenePanel)2 FakeFileSystem (limelight.io.FakeFileSystem)1 FakeProduction (limelight.model.FakeProduction)1 PropProxy (limelight.model.api.PropProxy)1