use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class RadioButtonPanelTest method changingGroupName.
@Test
public void changingGroupName() throws Exception {
Scene scene = new FakeScene();
PropPanel parent1 = new PropPanel(new FakePropProxy("parent1"));
RadioButtonPanel radio1 = new RadioButtonPanel();
parent1.add(radio1);
scene.add(parent1);
final RadioButtonGroup group1 = scene.getButtonGroups().get("group1");
final RadioButtonGroup group2 = scene.getButtonGroups().get("group2");
radio1.setGroup("group1");
radio1.setGroup("group2");
assertEquals(0, group1.getButtons().size());
assertEquals(1, group2.getButtons().size());
}
use of limelight.model.api.FakePropProxy 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.model.api.FakePropProxy 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.model.api.FakePropProxy in project limelight by slagyr.
the class ScrollBarPanelTest method parentIsMarkedAsChanged.
@Test
public void parentIsMarkedAsChanged() throws Exception {
Scene root = new FakeScene();
root.setStage(new MockStage());
PropPanel parent = new PropPanel(new FakePropProxy());
root.add(parent);
parent.add(verticalScrollBar);
Layouts.on(parent, parent.getDefaultLayout());
verticalScrollBar.setValue(50);
assertEquals(true, parent.needsLayout());
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScrollLayoutTest method addChildWithSize.
private PropPanel addChildWithSize(ParentPanelBase parent, String width, String height) {
PropPanel panel = new PropPanel(new FakePropProxy());
panel.getStyle().setWidth(width);
panel.getStyle().setHeight(height);
parent.add(panel);
return panel;
}
Aggregations