use of org.eclipse.smarthome.model.sitemap.Sitemap in project smarthome by eclipse.
the class SitemapResource method blockUnlessChangeOccurs.
private boolean blockUnlessChangeOccurs(String sitemapname, String pageId) {
boolean timeout = false;
Sitemap sitemap = getSitemap(sitemapname);
if (sitemap != null) {
if (pageId.equals(sitemap.getName())) {
EList<Widget> children = itemUIRegistry.getChildren(sitemap);
timeout = waitForChanges(children);
} else {
Widget pageWidget = itemUIRegistry.getWidget(sitemap, pageId);
if (pageWidget instanceof LinkableWidget) {
EList<Widget> children = itemUIRegistry.getChildren((LinkableWidget) pageWidget);
timeout = waitForChanges(children);
}
}
}
return timeout;
}
Aggregations