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