Lines Matching refs:window
63 * @param window
65 * @throws IllegalArgumentException if window is not a {@link RootPaneContainer}
67 public static void setWindowCanFullScreen(final Window window, final boolean canFullScreen) {
68 if (!(window instanceof RootPaneContainer)) throw new IllegalArgumentException("Can't mark a non-RootPaneContainer as full screen-able");
69 final RootPaneContainer rpc = (RootPaneContainer)window;
75 * @param window to attach the {@link FullScreenListener} to
77 * @throws IllegalArgumentException if window is not a {@link RootPaneContainer}
79 public static void addFullScreenListenerTo(final Window window, final FullScreenListener listener) {
80 if (!(window instanceof RootPaneContainer)) throw new IllegalArgumentException("Can't attach FullScreenListener to a non-RootPaneContainer");
82 FullScreenHandler.addFullScreenListenerTo((RootPaneContainer)window, listener);
87 * @param window to remove the {@link FullScreenListener} from
89 * @throws IllegalArgumentException if window is not a {@link RootPaneContainer}
91 public static void removeFullScreenListenerFrom(final Window window, final FullScreenListener listener) {
92 if (!(window instanceof RootPaneContainer)) throw new IllegalArgumentException("Can't remove FullScreenListener from non-RootPaneContainer");
94 FullScreenHandler.removeFullScreenListenerFrom((RootPaneContainer)window, listener);