Search in sources :

Example 6 with PropPanel

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

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

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

the class AbstractButtonPanelTest method aButtonParentWillAlsoGetThePushEvent.

@Test
public void aButtonParentWillAlsoGetThePushEvent() throws Exception {
    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);
}
Also used : PropPanel(limelight.ui.model.PropPanel) MouseClickedEvent(limelight.ui.events.panel.MouseClickedEvent) FakePropProxy(limelight.model.api.FakePropProxy) Test(org.junit.Test)

Example 9 with PropPanel

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

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