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, wait
isPerformed, toMap
protected 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)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- 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 Configurable
ConfigurationException
public I18nizableText getTitle()
WelcomeStep
getTitle
in interface WelcomeStep
public I18nizableText getDescription()
WelcomeStep
getDescription
in interface WelcomeStep
public String[] getActions()
WelcomeStep
getActions
in interface WelcomeStep
public String[] getImages()
WelcomeStep
getImages
in interface WelcomeStep
public Map<String,Set<String>> getListenedTargetIds()
WelcomeStep
getListenedTargetIds
in interface WelcomeStep
public int getOrder()
WelcomeStep
getOrder
in interface WelcomeStep
private Map<String,Set<String>> _getTargetIds(Configuration configuration) throws ConfigurationException
ConfigurationException