Class ShareEasyClickEvent
java.lang.Object
com.flowingcode.vaadin.addons.shareeasy.ShareEasyClickEvent
- All Implemented Interfaces:
Serializable
Event fired when one of the share drivers is clicked.
- Author:
- Paola De Bartolo / Flowing Code
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionShareEasyClickEvent(Component source, String driverName, String link) Creates a new share click event. -
Method Summary
Modifier and TypeMethodDescriptionGets the clicked driver as adefault driver, if it corresponds to one.Gets the name of the clicked driver.getLink()Gets the share link associated with the clicked driver.Gets the component the Share Easy instance is attached to.
-
Constructor Details
-
ShareEasyClickEvent
Creates a new share click event.- Parameters:
source- the component the Share Easy instance is attached todriverName- the name of the clicked driver, e.g. "telegram"link- the share link associated with the driver (the copied URL for the copy driver); may benullfor custom drivers without a link
-
-
Method Details
-
getSource
Gets the component the Share Easy instance is attached to.- Returns:
- the source component
-
getDriverName
Gets the name of the clicked driver.- Returns:
- the driver name, e.g. "telegram"
-
getDriver
Gets the clicked driver as adefault driver, if it corresponds to one. -
getLink
Gets the share link associated with the clicked driver. For the copy driver this is the URL that was copied to the clipboard.- Returns:
- the share link, or
nullfor custom drivers without a link
-