- java.lang.Object
-
- javafx.scene.web.PromptData
-
public final class PromptData extends Object
This class encapsulates data passed into JavaScriptprompt()
function: a message and a default value. Instances are passed intoprompt
handlers registered on aWebEngine
usingWebEngine.setPromptHandler(javafx.util.Callback<javafx.scene.web.PromptData, java.lang.String>)
method.- Since:
- JavaFX 2.0
- See Also:
WebEngine
,WebEngine.setPromptHandler(javafx.util.Callback<javafx.scene.web.PromptData, java.lang.String>)
-
-
Constructor Summary
Constructors Constructor Description PromptData(String message, String defaultValue)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultValue()
Returns the default value carried by this data object.String
getMessage()
Returns the message carried by this data object.
-