use of limelight.ui.events.panel.PanelEvent in project limelight by slagyr.
the class Devtool method refresh.
public void refresh(Event e) {
PanelEvent event = (PanelEvent) e;
final Production production = event.getRecipient().getRoot().getProduction();
final List<Stage> stages = production.getTheater().getStages();
for (Stage stage : stages) {
production.openScene(stage.getScene().getResourceLoader().getRoot(), stage, new Opts());
}
// (let [scene (.getRoot (.getRecipient e))
// stage (.getStage scene)
// production (.getProduction scene)
// stages (.getStages (.getTheater production))]
// (println stages)
// (doall (map
// (fn [stage]
// (println "stage: " stage)
// (.openScene production (.getName (.getScene stage)) stage (limelight.util.Opts. {})))
// stages))
}
use of limelight.ui.events.panel.PanelEvent in project limelight by slagyr.
the class DropDownPopup method createListItems.
private void createListItems() {
EventAction itemChosenAction = new EventAction() {
public void invoke(Event e) {
PanelEvent event = (PanelEvent) e;
choose((PropPanel) event.getRecipient());
}
};
EventAction itemSelectedAction = new EventAction() {
public void invoke(Event e) {
PanelEvent event = (PanelEvent) e;
select((PropPanel) event.getRecipient());
}
};
for (Object option : dropDown.getChoices()) {
PropPanel listItem = new PropPanel(new SimplePropProxy(), Util.toMap("name", "limelight_builtin_drop_down_popup_list_item"));
listItem.getStyle().addExtension(stylesStore.get("limelight_builtin_drop_down_popup_list_item"));
listItem.getEventHandler().add(MouseClickedEvent.class, itemChosenAction);
listItem.getEventHandler().add(MouseEnteredEvent.class, itemSelectedAction);
listItem.setText(option.toString());
if (option.equals(dropDown.getSelectedChoice()))
select(listItem);
popupList.add(listItem);
}
}
use of limelight.ui.events.panel.PanelEvent in project limelight by slagyr.
the class PropogateToParentAction method invoke.
public void invoke(Event event) {
PanelEvent panelEvent = (PanelEvent) event;
final Panel parent = panelEvent.getRecipient().getParent();
if (parent != null)
panelEvent.dispatch(parent);
}
Aggregations