use of limelight.ui.events.panel.CastEvent in project limelight by slagyr.
the class ButtonTest method setUp.
@Before
public void setUp() throws Exception {
button = new Button();
propPanel = new PropPanel(new FakePropProxy());
new FakeScene().add(propPanel);
button.install(new CastEvent(propPanel));
}
use of limelight.ui.events.panel.CastEvent 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.events.panel.CastEvent 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.events.panel.CastEvent in project limelight by slagyr.
the class JavaPlayer method invokeCastEvents.
private void invokeCastEvents(Object player, PropPanel prop, Element playerElement) {
final CastEvent castEvent = new CastEvent(prop);
for (Element child : Xml.loadChildElements(playerElement)) {
if ("onCast".equals(child.getNodeName())) {
String methodName = child.getTextContent().trim();
final Method method = findMethod(methodName);
new JavaEventAction(player, method).invoke(castEvent);
}
}
}
use of limelight.ui.events.panel.CastEvent 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));
}