Adds a function to get a set of all components.
@@ -452,4 +452,10 @@ public class Screen extends Component {
return sum;
}
+
+ public Set<Component> getComponents() {
+ final Set<Component> set = new LinkedHashSet<>(components);
+ set.addAll(layerComponents);
+ return set;
+ }
}
\ No newline at end of file
