@Retention(value=SOURCE) @Target(value=METHOD) public @interface HTMLComponent
HTMLComponent.className()
that will return a component of requested HTMLComponent.type()
which can
later be embedded into Swing or JavaFX UI elements. When the factory
method is called, it returns immediately and starts loading of
the specified HTML page
. Once the page is ready
it calls back method annotated by this annotation to finish
initialization. The method is supposed to make the page live, preferably
by using Model
generated class and calling
applyBindings()
on it.public abstract String url
nbresloc
protocol - as such the HTML page can be L10Ned
later by adding classical L10N suffixes. E.g. index_cs.html
will take preceedence over index.html
if the user is
running in Czech Locale
.public abstract Class<?> type
JComponent
.class. To request JavaFX
component, return javafx.scene.Node
.class.JComponent
or javafx.scene.Node
classpublic abstract String className
public abstract String[] techIds
technology ids
. One can specify the preferred ones
to use in this NetBeans component by using this attribute.