public abstract class AbstractDashletFactory extends Object implements DashletFactory
Dashlet objects.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_boostable
boostable flag
|
protected boolean |
m_dashboardSuitable
Are this dashlet suitable for displaying in the dashboard view.
|
protected String |
m_name
The name of the provided
Dashlet |
protected Map<String,String> |
m_requiredParameterDescriptions
A map holding the required parameter descriptions for the
Dashlet |
protected Map<String,String> |
m_requiredParameters
A map holding the required parameters for the
Dashlet |
| Constructor and Description |
|---|
AbstractDashletFactory()
Constructor for instantiating a new factory.
|
AbstractDashletFactory(String name)
Constructor for instantiating a new factory with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequiredParameter(String key,
String defaultValue)
Add a required parameter for this factory.
|
DashletConfigurationWindow |
configurationWindow(DashletSpec dashletSpec)
Returns the window used for configuring a
DashletSpec instance. |
com.vaadin.ui.Component |
getHelpComponent()
Returns the help component for the
Dashlet. |
abstract String |
getHelpContentHTML()
Returns the help content
String |
String |
getName()
Returns the name of the
Dashlet instances this object provides. |
Map<String,String> |
getRequiredParameterDescriptions()
Returns the
Map with the required parameter descriptions. |
Map<String,String> |
getRequiredParameters()
Returns the
Map 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.
|
boolean |
providesHelpComponent()
Returns true, if the factory provides a help component for the
Dashlet. |
void |
setBoostable(boolean boostable)
This method sets the boostable flag.
|
void |
setDashboardSuitable(boolean dashletSuitable)
This method sets whether this dashlet is suitable for displaying in the dashboard view.
|
void |
setName(String name)
Sets the name of the
Dashlet instances this object provides. |
void |
setRequiredParameterDescriptions(Map<String,String> requiredParameterDescriptions)
This method sets the required parameter descriptions
Map. |
void |
setRequiredParameters(Map<String,String> requiredParameters)
This method sets the required parameters
Map. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewDashletInstanceprotected Map<String,String> m_requiredParameters
Dashletprotected Map<String,String> m_requiredParameterDescriptions
Dashletprotected boolean m_boostable
protected boolean m_dashboardSuitable
public AbstractDashletFactory()
public AbstractDashletFactory(String name)
name - the dashlet's nameprotected void addRequiredParameter(String key, String defaultValue)
key - the key to usedefaultValue - the default value for this parameterpublic String getName()
Dashlet instances this object provides.getName in interface DashletFactorypublic void setName(String name)
Dashlet instances this object provides.name - the namepublic Map<String,String> getRequiredParameters()
Map with the required parameters and default values.getRequiredParameters in interface DashletFactoryMap holding the requires parameterspublic Map<String,String> getRequiredParameterDescriptions()
Map with the required parameter descriptions.Map holding the requires parameter descriptionspublic void setRequiredParameters(Map<String,String> requiredParameters)
Map.requiredParameters - the parameter Map to be setpublic void setRequiredParameterDescriptions(Map<String,String> requiredParameterDescriptions)
Map.requiredParameterDescriptions - the parameter description Map to be setpublic void setBoostable(boolean boostable)
public void setDashboardSuitable(boolean dashletSuitable)
public boolean isSuitableForDashboard()
isSuitableForDashboard in interface DashletFactorypublic boolean isBoostable()
isBoostable in interface DashletFactorypublic boolean providesHelpComponent()
Dashlet.providesHelpComponent in interface DashletFactorypublic com.vaadin.ui.Component getHelpComponent()
Dashlet.getHelpComponent in interface DashletFactorypublic abstract String getHelpContentHTML()
Stringpublic DashletConfigurationWindow configurationWindow(DashletSpec dashletSpec)
DashletSpec instance.configurationWindow in interface DashletFactorydashletSpec - the DashletSpec instanceDashletConfigurationWindowCopyright © 2020. All rights reserved.