javafx.scene.web
Class PromptData
- javafx.scene.web.PromptData
public final class PromptData extends Object
This class encapsulates data passed into JavaScript
prompt() function: a message and a default value. Instances are passed into prompt handlers registered on a WebEngine using WebEngine.setPromptHandler(javafx.util.Callback<javafx.scene.web.PromptData, java.lang.String>) method.Since:
JavaFX 2.0
-
Constructor Summary
Constructors Constructor and Description PromptData(String message, String defaultValue)Creates a new instance.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description StringgetDefaultValue()Returns default value carried by this data object.StringgetMessage()Returns message carried by this data object.
-
Constructor Detail
-
PromptData
public PromptData(String message, String defaultValue)Creates a new instance.
-
-
Method Detail
-
getMessage
public final String getMessage()
Returns message carried by this data object.
-
getDefaultValue
public final String getDefaultValue()
Returns default value carried by this data object.
-
© 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.