use of limelight.ui.model.PropPanel in project limelight by slagyr.
the class DropDownPanelTest method selectedOptionsIsHighlightedAtFirst.
@Test
public void selectedOptionsIsHighlightedAtFirst() throws Exception {
panel.setChoicesVargs(1, 2, 3);
panel.setSelectedChoice(3);
new ButtonPushedEvent().dispatch(panel);
final PropPanel selected = panel.getPopup().getSelectedItem();
assertEquals("3", selected.getText());
assertEquals(root.getStyles().get("limelight_builtin_drop_down_popup_list_item_selected"), selected.getStyle().getScreen());
}
use of limelight.ui.model.PropPanel in project limelight by slagyr.
the class InputPanelUtilTest method setUp.
public void setUp() throws Exception {
input = new TestableInputPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(input);
KeyboardFocusManager.installed();
}
use of limelight.ui.model.PropPanel 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);
}
use of limelight.ui.model.PropPanel in project limelight by slagyr.
the class Mouse method pointFor.
private static Point pointFor(PropProxy prop, int x, int y) {
final PropPanel propPanel = (PropPanel) prop.getPeer();
Point absoluteLocation = propPanel.getAbsoluteLocation();
int localX = absoluteLocation.x + x;
int localY = absoluteLocation.y + y;
return new Point(localX, localY);
}
use of limelight.ui.model.PropPanel in project limelight by slagyr.
the class CheckBoxTest method setUp.
@Before
public void setUp() throws Exception {
checkBox = new CheckBox();
propPanel = new PropPanel(new FakePropProxy());
new FakeScene().add(propPanel);
checkBox.install(new CastEvent(propPanel));
}
Aggregations