Search in sources :

Example 6 with FakeScene

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

the class ImageTest method setUp.

@Before
public void setUp() throws Exception {
    image = new Image();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    image.install(new CastEvent(propPanel));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 7 with FakeScene

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

the class RadioButtonTest method setUp.

@Before
public void setUp() throws Exception {
    button = new RadioButton();
    propPanel = new PropPanel(new FakePropProxy());
    new FakeScene().add(propPanel);
    button.install(new CastEvent(propPanel));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 8 with FakeScene

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

the class TextInputPanelTest method requiresLayoutAfterConsumableSizeChanges.

@Test
public void requiresLayoutAfterConsumableSizeChanges() throws Exception {
    FakeScene root = new FakeScene();
    root.add(panel);
    panel.getRoot();
    root.resetLayoutRequired();
    panel.consumableAreaChanged();
    assertEquals(true, root.isLayoutRequired());
}
Also used : FakeScene(limelight.ui.model.FakeScene) Test(org.junit.Test)

Example 9 with FakeScene

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

the class ButtonPanelTest method setUp.

@Before
public void setUp() throws Exception {
    panel = new ButtonPanel();
    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 10 with FakeScene

use of limelight.ui.model.FakeScene 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)

Aggregations

FakeScene (limelight.ui.model.FakeScene)29 FakePropProxy (limelight.model.api.FakePropProxy)17 PropPanel (limelight.ui.model.PropPanel)17 Before (org.junit.Before)15 MockStage (limelight.ui.model.MockStage)11 Test (org.junit.Test)11 CastEvent (limelight.ui.events.panel.CastEvent)7 Scene (limelight.ui.model.Scene)7 MockGraphics (limelight.ui.MockGraphics)2 RadioButtonGroup (limelight.ui.RadioButtonGroup)2 FakeFileSystem (limelight.io.FakeFileSystem)1 FakeProduction (limelight.model.FakeProduction)1 RichStyle (limelight.styles.RichStyle)1 StageActivatedEvent (limelight.ui.events.stage.StageActivatedEvent)1 MockDrawable (limelight.ui.model.MockDrawable)1 TextBoxPanel (limelight.ui.model.inputs.TextBoxPanel)1 Opts (limelight.util.Opts)1