Class ShepherdEngine
java.lang.Object
org.vaadin.addons.antlerflow.tour.engines.ShepherdEngine
- All Implemented Interfaces:
TourEngine
@JsModule("./antlerflow/tour/engines/bridge.ts")
@NpmPackage(value="shepherd.js",
version="13.0.3")
public class ShepherdEngine
extends Object
implements TourEngine
Implementation of the
TourEngine interface using the "shepherd.js" library as the
underlying engine for guided tours.
This class facilitates the integration of the "shepherd" tour engine into a Vaadin
application, enabling developers to create guided tours with the methods defined by the TourEngine interface.
The engine is identified by its unique identifier "shepherd", which is specified in the
getId method. The identifier is used to distinguish this engine from others, such as "driver",
for applications that utilize multiple engine types.
Dependencies: -shepherd.js: Version 13.0.3, included as an NPM package. -bridge.ts: JavaScript bridge module for enabling communication between server-side and client-side components. Notes: - This class relies on theEngineType.SHEPHERDenumeration value to retrieve the unique engine identifier. - ThegetIdmethod is used internally by the framework to ensure that the appropriate engine is selected and activated for guided tours.
-
Field Summary
Fields inherited from interface org.vaadin.addons.antlerflow.tour.TourEngine
GSON -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vaadin.addons.antlerflow.tour.TourEngine
cancel, start, wireEvents
-
Constructor Details
-
ShepherdEngine
public ShepherdEngine()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceTourEngine
-