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));
}
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));
}
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);
}
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);
}
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");
}
Aggregations