use of org.eclipse.smarthome.model.sitemap.Group in project smarthome by eclipse.
the class ItemUIRegistryImpl method getChildren.
@Override
public EList<Widget> getChildren(LinkableWidget w) {
EList<Widget> widgets = null;
if (w instanceof Group && w.getChildren().isEmpty()) {
widgets = getDynamicGroupChildren((Group) w);
} else {
widgets = w.getChildren();
}
EList<Widget> result = new BasicEList<Widget>();
for (Widget widget : widgets) {
Widget resolvedWidget = resolveDefault(widget);
if (resolvedWidget != null) {
result.add(resolvedWidget);
}
}
return result;
}
Aggregations