Class TextShareEasy
java.lang.Object
com.flowingcode.vaadin.addons.shareeasy.TextShareEasy
Represents a
ShareEasy instance with Text mode.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextShareEasycreate()voidforComponent(com.vaadin.flow.component.Component component) Initializes the Sharee component with the specified Vaadin component.elemental.json.JsonObjectGets the JSON representation of the Sharee options.withCustomDrivers(Map<String, CustomDriverOptions> customDrivers) Sets custom drivers (new social options).withCustomLanguageKeys(LanguageKeys languageKeys) Sets custom language keys for the default locale.withCustomLanguageKeys(String locale, LanguageKeys languageKeys) Sets custom language keys for the specified locale.withDrivers(ShareEasyDriver... drivers) Sets the social media drivers to be displayed (default and/or custom drivers).withLocale(Locale locale) Sets the language to be displayed.withRipple(boolean ripple) Enables or disables the ripple effect.withShareLink(String shareLink) Sets the share link for the shared content.withShareText(String shareText) Sets the share text for the shared content.withShowTransitionDuration(String showTransitionDuration) Sets the duration of the show transition for sharing.
-
Field Details
-
withDefaultDriversListFirst
protected boolean withDefaultDriversListFirst
-
-
Constructor Details
-
TextShareEasy
public TextShareEasy()
-
-
Method Details
-
create
-
getJsonObjectOptions
public elemental.json.JsonObject getJsonObjectOptions()Gets the JSON representation of the Sharee options.- Returns:
- The JsonObject representing the Sharee options
-
withRipple
Enables or disables the ripple effect.- Parameters:
ripple- True to enable the ripple effect, false to disable- Returns:
- The current instance of the BaseSharee class
-
withShowTransitionDuration
Sets the duration of the show transition for sharing.- Parameters:
showTransitionDuration- The duration of the show transition- Returns:
- The current instance of the BaseSharee class
-
forComponent
public void forComponent(com.vaadin.flow.component.Component component) Initializes the Sharee component with the specified Vaadin component.- Parameters:
component- The Vaadin component to associate with the Sharee instance
-
withCustomDrivers
Sets custom drivers (new social options).- Parameters:
customDrivers- The custom drivers- Returns:
- The current instance of the BaseSharee class
-