Interface DashletFactory
-
- All Known Implementing Classes:
AbstractDashletFactory
,AlarmDetailsDashletFactory
,AlarmsDashletFactory
,BSMDashletFactory
,ChartsDashletFactory
,GrafanaDashletFactory
,ImageDashletFactory
,KscDashletFactory
,MapDashletFactory
,RrdDashletFactory
,RtcDashletFactory
,SummaryDashletFactory
,SurveillanceDashletFactory
,TopologyDashletFactory
,UndefinedDashletFactory
,UrlDashletFactory
public interface DashletFactory
This interface defines the required methods for implementing a factory providingDashlet
instances.- Author:
- Christian Pape
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DashletConfigurationWindow
configurationWindow(DashletSpec dashletSpec)
Returns the window used for configuring aDashletSpec
instance.com.vaadin.ui.Component
getHelpComponent()
Returns the help component for theDashlet
.String
getName()
Returns the name of theDashlet
instances this factory provides.Map<String,String>
getRequiredParameters()
Returns theMap
with the required parameters and default values.boolean
isBoostable()
This method returns whether this dashlet is boostable.boolean
isSuitableForDashboard()
Returns whether this dashlet is suitable for displaying in the dashboard view.Dashlet
newDashletInstance(DashletSpec dashletSpec)
Returns a newDashlet
instance for a givenDashletSpec
.boolean
providesHelpComponent()
Returns true, if the factory provides a help component for theDashlet
.
-
-
-
Method Detail
-
isSuitableForDashboard
boolean isSuitableForDashboard()
Returns whether this dashlet is suitable for displaying in the dashboard view.- Returns:
- true if suitable, false otherwise
-
newDashletInstance
Dashlet newDashletInstance(DashletSpec dashletSpec)
Returns a newDashlet
instance for a givenDashletSpec
.- Parameters:
dashletSpec
- theDashletSpec
to use- Returns:
- the new
Dashlet
instance
-
getName
String getName()
Returns the name of theDashlet
instances this factory provides.- Returns:
- the name
-
getRequiredParameters
Map<String,String> getRequiredParameters()
Returns theMap
with the required parameters and default values.- Returns:
- the
Map
holding the requires parameters
-
providesHelpComponent
boolean providesHelpComponent()
Returns true, if the factory provides a help component for theDashlet
.- Returns:
- true, if help component is provided, false otherwise
-
getHelpComponent
com.vaadin.ui.Component getHelpComponent()
Returns the help component for theDashlet
.- Returns:
- the help component
-
configurationWindow
DashletConfigurationWindow configurationWindow(DashletSpec dashletSpec)
Returns the window used for configuring aDashletSpec
instance.- Parameters:
dashletSpec
- theDashletSpec
instance- Returns:
- the
DashletConfigurationWindow
-
isBoostable
boolean isBoostable()
This method returns whether this dashlet is boostable.
-
-