public static final class DashboardDisplayer.WidgetReference extends Object implements Lookup.Provider
FileObject
from which
the reference was created. The ID should be unique per display
registration and suitable for directly returning from DashboardDisplayer.Panel.id()
.Constructor and Description |
---|
WidgetReference(String id,
DashboardWidget widget)
Construct a WidgetReference.
|
WidgetReference(String id,
DashboardWidget widget,
FileObject registration)
Construct a WidgetReference with the provided registration file.
|
Modifier and Type | Method and Description |
---|---|
Lookup |
getLookup() |
String |
id()
Reference ID, usually derived from widget category and filename (eg.
|
DashboardWidget |
widget()
The widget instance.
|
public WidgetReference(String id, DashboardWidget widget)
id
- widget registration IDwidget
- widget instancepublic WidgetReference(String id, DashboardWidget widget, FileObject registration)
FileObject
will be available from the lookup.id
- widget
- registration
- public String id()
Main/Widget1
) and suitable for use with DashboardDisplayer.Panel.id()
.public DashboardWidget widget()
public Lookup getLookup()
getLookup
in interface Lookup.Provider