Top Description Fields Constructors Methods
javafx.scene.web

public final Class PromptData

extends Object
Class Inheritance
Imports
javafx.beans.NamedArg

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 method.
Since
JavaFX 2.0
See Also
WebEngine, WebEngine#setPromptHandler

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
PromptData(String
the message carried by this data object
message
,
String
the default value carried by this data object
defaultValue
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public final String

Returns:

the default value
getDefaultValue
()

Returns the default value carried by this data object.

public final String

Returns:

the message
getMessage
()

Returns the message carried by this data object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultValueback to summary
private final String defaultValue
messageback to summary
private final String message

Constructor Detail

PromptDataback to summary
public PromptData(String message, String defaultValue)

Creates a new instance.

Parameters
message:String

the message carried by this data object

defaultValue:String

the default value carried by this data object

Method Detail

getDefaultValueback to summary
public final String getDefaultValue()

Returns the default value carried by this data object.

Returns:String

the default value

getMessageback to summary
public final String getMessage()

Returns the message carried by this data object.

Returns:String

the message