public abstract class AbstractWelcomeStep extends Object implements WelcomeStep, Configurable, PluginAware
WelcomeStep which is Configurable| Modifier and Type | Field and Description |
|---|---|
protected String[] |
_actions
The JS actions
|
protected I18nizableText |
_description
The HTML description of the step
|
protected String[] |
_images
The images
|
protected int |
_order
The order of the step
|
protected String |
_pluginName
The name of the plugin that has declared this component
|
protected Map<String,Set<String>> |
_targetIds
The JS target ids to listen for messages
|
protected I18nizableText |
_title
The HTML title of the step
|
| Constructor and Description |
|---|
AbstractWelcomeStep() |
| Modifier and Type | Method and Description |
|---|---|
private Map<String,Set<String>> |
_getTargetIds(Configuration configuration) |
void |
configure(Configuration configuration) |
String[] |
getActions()
Gets the JS actions to execute when clicking on '<a>' elements of description.
|
I18nizableText |
getDescription()
Gets the text describing how to perform the step.
|
String[] |
getImages()
Gets the paths of the images to insert in the '<img/>' elements of description.
|
Map<String,Set<String>> |
getListenedTargetIds()
Gets the JS target ids (as regular expressions) to listen for each message type for potential changes in the steps and thus refresh the admin welcome tool.
|
int |
getOrder()
Gets the order of the step.
|
I18nizableText |
getTitle()
Gets the title of the step.
|
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPerformed, toMapprotected String _pluginName
protected int _order
protected I18nizableText _title
protected I18nizableText _description
protected Map<String,Set<String>> _targetIds
public AbstractWelcomeStep()
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)id - Unique identifier of this componentpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic I18nizableText getTitle()
WelcomeStepgetTitle in interface WelcomeSteppublic I18nizableText getDescription()
WelcomeStepgetDescription in interface WelcomeSteppublic String[] getActions()
WelcomeStepgetActions in interface WelcomeSteppublic String[] getImages()
WelcomeStepgetImages in interface WelcomeSteppublic Map<String,Set<String>> getListenedTargetIds()
WelcomeStepgetListenedTargetIds in interface WelcomeSteppublic int getOrder()
WelcomeStepgetOrder in interface WelcomeStepprivate Map<String,Set<String>> _getTargetIds(Configuration configuration) throws ConfigurationException
ConfigurationException