|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DashboardTabViewFactory
A factory which provides a way to create ViewComponent
s for dashboards displaying other dashboards available
as tabs. A host application should use this for embedding dashboards in the desired locations by creating a view and
then calling the ViewComponent.writeTo(java.io.Writer)
method.
Method Summary | |
---|---|
ViewComponent |
createDashboardView(Iterable<DashboardTab> tabs,
DashboardState selectedTabDashboardState,
String username,
int maxGadgets,
GadgetRequestContext gadgetRequestContext)
Returns a ViewComponent that will render the DashboardState and DashboardTab s
customizing the view based on the permissions the user has to view/edit the dashboard and the
specified Locale . |
Method Detail |
---|
ViewComponent createDashboardView(Iterable<DashboardTab> tabs, DashboardState selectedTabDashboardState, @Nullable String username, int maxGadgets, GadgetRequestContext gadgetRequestContext)
Returns a ViewComponent
that will render the DashboardState
and DashboardTab
s
customizing the view based on the permissions the user has to view/edit the dashboard and the
specified Locale
.
This can be used by host applications to place dashboards in a place of their choosing, including tabs to navigate to other dashboards.
tabs
- a list of dashboards a particular user can see. This can be empty if no tabs are desired.selectedTabDashboardState
- state of the dashboard to be rendered by the ViewComponent
username
- user that is viewing the dashboard and whose permissions will be checkedmaxGadgets
- the (application-wide) maximum number of supported gadgetsgadgetRequestContext
- the context of this request
ViewComponent
that will render the DashboardState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |