Class Widgets


  • public final class Widgets
    extends java.lang.Object
    Utilities pertaining to widgets and their containers.
    • Method Detail

      • getAllWidgets

        public static java.lang.Iterable<? extends VisualWidgetHandle> getAllWidgets​(WidgetContainer container,
                                                                                     boolean onlyVisible)
        Provides all widgets in this container including widgets from nested containers.
        Parameters:
        onlyVisible - only currently visible widgets will be returned (it is up to implementation to decide what to return if the container is not shown)
      • getAllContainers

        public static java.lang.Iterable<WidgetContainer> getAllContainers​(WidgetContainer container,
                                                                           boolean onlyVisible)
        Returns this and all nested containers.
        Parameters:
        onlyVisible - only currently visible widgets will be returned (it is up to implementation to decide what to return if the container is not shown)
      • getWidgetScenePosition

        public static java.awt.Rectangle getWidgetScenePosition​(VisualWidgetHandle w)