@Retention(value=SOURCE) @Target(value=METHOD) public @interface HTMLComponent
className()
that will return a component of requested type()
which can
later be embedded into Swing or JavaFX UI elements. When the factory
method is called, it returns immediatelly 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, preferrably
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 Node
.class.JComponent
or 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.Built on August 30 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.