Interface DashletFactory
-
- All Known Implementing Classes:
AbstractDashletFactory,AlarmDetailsDashletFactory,AlarmsDashletFactory,BSMDashletFactory,ChartsDashletFactory,GrafanaDashletFactory,ImageDashletFactory,KscDashletFactory,MapDashletFactory,RrdDashletFactory,RtcDashletFactory,SummaryDashletFactory,SurveillanceDashletFactory,TopologyDashletFactory,UndefinedDashletFactory,UrlDashletFactory
public interface DashletFactoryThis interface defines the required methods for implementing a factory providingDashletinstances.- Author:
- Christian Pape
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DashletConfigurationWindowconfigurationWindow(DashletSpec dashletSpec)Returns the window used for configuring aDashletSpecinstance.com.vaadin.ui.ComponentgetHelpComponent()Returns the help component for theDashlet.StringgetName()Returns the name of theDashletinstances this factory provides.Map<String,String>getRequiredParameters()Returns theMapwith the required parameters and default values.booleanisBoostable()This method returns whether this dashlet is boostable.booleanisSuitableForDashboard()Returns whether this dashlet is suitable for displaying in the dashboard view.DashletnewDashletInstance(DashletSpec dashletSpec)Returns a newDashletinstance for a givenDashletSpec.booleanprovidesHelpComponent()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 newDashletinstance for a givenDashletSpec.- Parameters:
dashletSpec- theDashletSpecto use- Returns:
- the new
Dashletinstance
-
getName
String getName()
Returns the name of theDashletinstances this factory provides.- Returns:
- the name
-
getRequiredParameters
Map<String,String> getRequiredParameters()
Returns theMapwith the required parameters and default values.- Returns:
- the
Mapholding 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 aDashletSpecinstance.- Parameters:
dashletSpec- theDashletSpecinstance- Returns:
- the
DashletConfigurationWindow
-
isBoostable
boolean isBoostable()
This method returns whether this dashlet is boostable.
-
-