Search in sources :

Example 1 with CastEvent

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));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 2 with CastEvent

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));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 3 with CastEvent

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));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Example 4 with CastEvent

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);
        }
    }
}
Also used : CastEvent(limelight.ui.events.panel.CastEvent) Element(org.w3c.dom.Element) Method(java.lang.reflect.Method)

Example 5 with 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));
}
Also used : PropPanel(limelight.ui.model.PropPanel) CastEvent(limelight.ui.events.panel.CastEvent) FakeScene(limelight.ui.model.FakeScene) FakePropProxy(limelight.model.api.FakePropProxy) Before(org.junit.Before)

Aggregations

CastEvent (limelight.ui.events.panel.CastEvent)8 FakePropProxy (limelight.model.api.FakePropProxy)7 FakeScene (limelight.ui.model.FakeScene)7 PropPanel (limelight.ui.model.PropPanel)7 Before (org.junit.Before)7 Method (java.lang.reflect.Method)1 Element (org.w3c.dom.Element)1