@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
Modelgenerated class and calling
|Modifier and Type||Required Element and Description|
The type of component to generate.
URL of the page to display.
public abstract String url
nbreslocprotocol - as such the HTML page can be L10Ned later by adding classical L10N suffixes. E.g.
index_cs.htmlwill take preceedence over
index.htmlif the user is running in Czech
public abstract Class<?> type
JComponent.class. To request JavaFX component, return
public 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.