public static final class HTMLDialog.Builder extends Object
HTMLDialog
. The HTMLDialog
annotation
generates boilderplate code for you
and can do some compile times checks helping you to warnings
as soon as possible.Modifier and Type | Method and Description |
---|---|
HTMLDialog.Builder |
addTechIds(String... ids)
Requests some of provided technologies.
|
<C> C |
component(Class<C> type)
Obtains the component from the builder.
|
HTMLDialog.Builder |
loadFinished(Runnable run)
Registers a runnable to be executed when the page
becomes ready.
|
static HTMLDialog.Builder |
newDialog(String url)
Starts creation of a new HTML dialog.
|
String |
showAndWait()
Displays the dialog.
|
public static HTMLDialog.Builder newDialog(String url)
HTMLDialog
.url
- URL (usually using nbresloc
protocol)
of the page to display in the dialog.public HTMLDialog.Builder loadFinished(Runnable run)
run
- runnable to runpublic HTMLDialog.Builder addTechIds(String... ids)
technology ids
. One can specify the preferred ones
to use in this NetBeans component by using calling this method.ids
- list of preferred technology ids to add to the builderpublic String showAndWait()
null
if the dialog was closed without selecting a buttonpublic <C> C component(Class<C> type)
javafx.embed.swing.JFXPanel
.class or
javafx.scene.web.WebView
.class. After calling this
method the builder becomes useless.C
- requested component typetype
- either javafx.embed.swing.JFXPanel
or javafx.scene.web.WebView
class