Package com.vaadin.experimental
Class Feature
- java.lang.Object
-
- com.vaadin.experimental.Feature
-
- All Implemented Interfaces:
Serializable
public final class Feature extends Object implements Serializable
Information about a feature available behind a flag.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetComponentClassName()StringgetId()StringgetMoreInfoLink()StringgetTitle()inthashCode()booleanisEnabled()booleanisRequiresServerRestart()voidsetEnabled(boolean enabled)
-
-
-
Constructor Detail
-
Feature
public Feature(String title, String id, String moreInfoLink, boolean requiresServerRestart, String componentClassName)
Creates a new feature with the given options.- Parameters:
title- the title of the featureid- the unique id of the featuremoreInfoLink- a link to an issue describing the feature on a high levelrequiresServerRestart-trueif toggling the feature requires a server restartcomponentClassName- If the feature is a component, the qualified name of the class otherwise null
-
Feature
public Feature(Feature feature)
Create a copy of the given feature.- Parameters:
feature- feature to create a copy of
-
-
Method Detail
-
getTitle
public String getTitle()
-
getId
public String getId()
-
getMoreInfoLink
public String getMoreInfoLink()
-
getComponentClassName
public String getComponentClassName()
-
isRequiresServerRestart
public boolean isRequiresServerRestart()
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
-