javafx.scene.web
Class PopupFeatures
- javafx.scene.web.PopupFeatures
public final class PopupFeatures extends Object
This class describes features of a Web popup window as specified by JavaScript
window.open function. Instances are passed into popup handlers registered on a WebEngine using WebEngine.setCreatePopupHandler(javafx.util.Callback<javafx.scene.web.PopupFeatures, javafx.scene.web.WebEngine>) method.-
Constructor Summary
Constructors Constructor and Description PopupFeatures(boolean menu, boolean status, boolean toolbar, boolean resizable)Creates a new instance.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description booleanhasMenu()Returns whether menu bar should be present.booleanhasStatus()Returns whether status bar should be present.booleanhasToolbar()Returns whether tool bar should be present.booleanisResizable()Returns whether popup window should be resizable.
-
Constructor Detail
-
PopupFeatures
public PopupFeatures(boolean menu, boolean status, boolean toolbar, boolean resizable)Creates a new instance.Parameters:
menu- whether menu bar should be present
-
-
Method Detail
-
hasMenu
public final boolean hasMenu()
Returns whether menu bar should be present.
-
hasStatus
public final boolean hasStatus()
Returns whether status bar should be present.
-
hasToolbar
public final boolean hasToolbar()
Returns whether tool bar should be present.
-
isResizable
public final boolean isResizable()
Returns whether popup window should be resizable.
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.