public abstract class WidgetElement extends Object
DashboardWidget.elements(org.netbeans.spi.dashboard.DashboardDisplayer.Panel)
.Modifier and Type | Class and Description |
---|---|
static class |
WidgetElement.ActionElement
Action element.
|
static class |
WidgetElement.ComponentElement
Component element.
|
static class |
WidgetElement.ImageElement
Image element.
|
static class |
WidgetElement.LinkElement
Link element.
|
static class |
WidgetElement.SeparatorElement
Separator element.
|
static class |
WidgetElement.TextElement
Text element.
|
Modifier and Type | Method and Description |
---|---|
static WidgetElement.ActionElement |
action(Action action)
An action element.
|
static WidgetElement.ActionElement |
actionLink(Action action)
An action element.
|
static WidgetElement.ActionElement |
actionLinkNoIcon(Action action)
An action element.
|
static WidgetElement.ActionElement |
actionNoIcon(Action action)
An action element.
|
static WidgetElement.TextElement |
aside(String text)
An aside text element.
|
static WidgetElement.ComponentElement |
component(java.util.function.Supplier<JComponent> componentSupplier)
An element wrapping a Swing component supplier.
|
static WidgetElement.ImageElement |
image(String resourcePath)
An image element.
|
static WidgetElement.LinkElement |
link(String text,
URI link)
A link to be opened in the default browser or viewer.
|
static WidgetElement.LinkElement |
linkButton(String text,
URI link)
A link to be opened in the default browser or viewer.
|
static WidgetElement.SeparatorElement |
separator()
A separator element.
|
static WidgetElement.TextElement |
subheading(String text)
A sub-heading text element used to group other elements.
|
static WidgetElement.TextElement |
text(String text)
A normal text element.
|
static WidgetElement.TextElement |
unavailable(String text)
A text element providing a label for an unavailable resource (eg.
|
public static WidgetElement.TextElement text(String text)
text
- element textpublic static WidgetElement.TextElement aside(String text)
text
- element textpublic static WidgetElement.TextElement unavailable(String text)
text
- element textpublic static WidgetElement.TextElement subheading(String text)
text
- element textpublic static WidgetElement.ImageElement image(String resourcePath)
ImageUtilities.loadImage(java.lang.String, boolean)
. The resource
will be localized.resourcePath
- path to imagepublic static WidgetElement.ActionElement action(Action action)
action
- button actionpublic static WidgetElement.ActionElement actionNoIcon(Action action)
action
- button actionpublic static WidgetElement.ActionElement actionLink(Action action)
action
- link actionpublic static WidgetElement.ActionElement actionLinkNoIcon(Action action)
action
- link actionpublic static WidgetElement.LinkElement link(String text, URI link)
text
- link textlink
- link destinationpublic static WidgetElement.LinkElement linkButton(String text, URI link)
text
- link textlink
- link destinationpublic static WidgetElement.SeparatorElement separator()
public static WidgetElement.ComponentElement component(java.util.function.Supplier<JComponent> componentSupplier)
componentSupplier
- component supplier