use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class TextInputPanelTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
root = new FakeScene();
panel = new MockTextInputPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
root.add(parent);
stage = new MockStage();
root.setStage(stage);
model = panel.getModel();
model.setText("Some Text");
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class TextPanelMouseProcessorTest method setUpWithText.
private void setUpWithText(String text, boolean multiline) {
if (multiline)
panel = new TextAreaPanel();
else
panel = new TextBoxPanel();
panel.setSize(150, 75);
root = new FakeScene();
root.add(panel);
stage = new MockStage();
root.setStage(stage);
model = panel.getModel();
model.setTypedLayoutFactory(MockTypedLayoutFactory.instance);
model.setText(text);
model.setCaretLocation(TextLocation.origin);
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class TextPanelBorderPainterTest method setUp.
@Before
public void setUp() throws Exception {
FakeScene root = new FakeScene();
parent = new PropPanel(new FakePropProxy());
root.add(parent);
stage = new MockStage();
root.setStage(stage);
panel = new TextBoxPanel();
parent.add(panel);
graphics = new MockGraphics();
TextPanelBorderPainter.normalBorder = normalDrawable = new MockDrawable();
TextPanelBorderPainter.focusedBorder = focusDrawable = new MockDrawable();
painter = TextPanelBorderPainter.instance;
parent.getStyle().setBorderColor("transparent");
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class InputPanelTest method setUp.
@Before
public void setUp() throws Exception {
panel = new TestableInputPanel();
root = new FakeScene();
root.add(panel);
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class RadioButtonPanelTest method setUp.
@Before
public void setUp() throws Exception {
panel = new RadioButtonPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
root = new FakeScene();
root.add(parent);
}
Aggregations