644 * be ignored.
645 * <p>
646 * If {@code Stage} was constructed as full-screen but not visible
647 * it will enter full-screen mode upon becoming visible, with the same
648 * limitations to when this is allowed to happen as when setting
649 * {@code fullScreen} to {@code true}.
650 * </p>
651 * </li>
652 * <li> If the application was allowed to enter full-screen mode
653 * it will have limited keyboard input. It will only receive KEY_PRESSED
654 * and KEY_RELEASED events from the following keys:
655 * {@code UP, DOWN, LEFT, RIGHT, SPACE, TAB, PAGE_UP, PAGE_DOWN, HOME, END, ENTER}
656 * </li>
657 * </ul>
658 * @defaultValue false
659 */
660 private ReadOnlyBooleanWrapper fullScreen;
661
662 public final void setFullScreen(boolean value) {
663 Toolkit.getToolkit().checkFxUserThread();
664 fullScreenPropertyImpl().set(value);
665 if (getPeer() != null)
666 getPeer().setFullScreen(value);
667 }
668
669 public final boolean isFullScreen() {
670 return fullScreen == null ? false : fullScreen.get();
671 }
672
673 public final ReadOnlyBooleanProperty fullScreenProperty() {
674 return fullScreenPropertyImpl().getReadOnlyProperty();
675 }
676
677 private ReadOnlyBooleanWrapper fullScreenPropertyImpl () {
678 if (fullScreen == null) {
679 fullScreen = new ReadOnlyBooleanWrapper(Stage.this, "fullScreen");
680 }
681 return fullScreen;
682 }
683
684 /**
685 * Defines the icon images to be used in the window decorations and when
686 * minimized. The images should be different sizes of the same image and
|
644 * be ignored.
645 * <p>
646 * If {@code Stage} was constructed as full-screen but not visible
647 * it will enter full-screen mode upon becoming visible, with the same
648 * limitations to when this is allowed to happen as when setting
649 * {@code fullScreen} to {@code true}.
650 * </p>
651 * </li>
652 * <li> If the application was allowed to enter full-screen mode
653 * it will have limited keyboard input. It will only receive KEY_PRESSED
654 * and KEY_RELEASED events from the following keys:
655 * {@code UP, DOWN, LEFT, RIGHT, SPACE, TAB, PAGE_UP, PAGE_DOWN, HOME, END, ENTER}
656 * </li>
657 * </ul>
658 * @defaultValue false
659 */
660 private ReadOnlyBooleanWrapper fullScreen;
661
662 public final void setFullScreen(boolean value) {
663 Toolkit.getToolkit().checkFxUserThread();
664 if (getPeer() != null)
665 getPeer().setFullScreen(value);
666 fullScreenPropertyImpl().set(value);
667 }
668
669 public final boolean isFullScreen() {
670 return fullScreen == null ? false : fullScreen.get();
671 }
672
673 public final ReadOnlyBooleanProperty fullScreenProperty() {
674 return fullScreenPropertyImpl().getReadOnlyProperty();
675 }
676
677 private ReadOnlyBooleanWrapper fullScreenPropertyImpl () {
678 if (fullScreen == null) {
679 fullScreen = new ReadOnlyBooleanWrapper(Stage.this, "fullScreen");
680 }
681 return fullScreen;
682 }
683
684 /**
685 * Defines the icon images to be used in the window decorations and when
686 * minimized. The images should be different sizes of the same image and
|