Module wicket.bootstrap.extensions
Class TourBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior
de.agilecoders.wicket.extensions.markup.html.bootstrap.tour.TourBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
public class TourBehavior
extends de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior
A behavior that contributes the resources needed for
Bootstrap Tour.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a step to the tourprotected CharSequenceAllows contributing more JavaScript related to the tour.getSteps()protected TourOptionsOverwrite this method to modify the default tour behaviorvoidrenderHead(Component component, IHeaderResponse response) final intsize()Methods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior
renderHeadMethods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
addTo, getBootstrapSettings, instance, removeFromMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
TourBehavior
public TourBehavior()
-
-
Method Details
-
addStep
Adds a step to the tour- Parameters:
step- The tour step- Returns:
thisobject, for chaining.
-
size
public final int size()- Returns:
- The number of the steps in this tour
-
getSteps
- Returns:
- the steps
-
renderHead
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classde.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
-
createExtraConfig
Allows contributing more JavaScript related to the tour. By default starts the tour.- Returns:
- extra tour related JavaScript
-
getTourOptions
Overwrite this method to modify the default tour behavior- Returns:
- the tour options
-