Class WhatsappButton

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, java.io.Serializable

    @Tag("fc-whatsapp-button")
    @NpmPackage(value="@flowingcode/fc-whatsapp-button",
                version="1.0.1")
    @JsModule("@flowingcode/fc-whatsapp-button/dist/src/fc-whatsapp-button.js")
    public class WhatsappButton
    extends com.vaadin.flow.component.Component
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WhatsappButton()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDialCode()  
      java.lang.String getInviteCode()  
      java.lang.String getLabel()  
      java.lang.String getPhone()  
      java.lang.String getText()  
      boolean isLeadingIcon()  
      boolean isRedirect()  
      boolean isResponsive()  
      boolean isShowDialog()  
      void setDialCode​(java.lang.String dialCode)  
      void setInviteCode​(java.lang.String inviteCode)  
      void setLabel​(java.lang.String label)  
      void setLeadingIcon​(boolean leading)  
      void setPhone​(java.lang.String phone)  
      void setRedirect​(boolean redirect)  
      void setResponsive​(boolean responsive)  
      void setShowDialog​(boolean dialog)  
      void setText​(java.lang.String text)  
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
    • Constructor Detail

      • WhatsappButton

        public WhatsappButton()
    • Method Detail

      • getPhone

        public java.lang.String getPhone()
        Returns:
        String return the phone number
      • setPhone

        public void setPhone​(java.lang.String phone)
        Parameters:
        phone - the phone number to set
      • getDialCode

        public java.lang.String getDialCode()
        Returns:
        String return the dialCode
      • setDialCode

        public void setDialCode​(java.lang.String dialCode)
        Parameters:
        dialCode - the dialCode to set
      • getLabel

        public java.lang.String getLabel()
        Returns:
        String return the label
      • setLabel

        public void setLabel​(java.lang.String label)
        Parameters:
        label - the label to set
      • getText

        public java.lang.String getText()
        Returns:
        String return the text
      • setInviteCode

        public void setInviteCode​(java.lang.String inviteCode)
        Parameters:
        text - the text to set
      • getInviteCode

        public java.lang.String getInviteCode()
      • setText

        public void setText​(java.lang.String text)
      • isLeadingIcon

        public boolean isLeadingIcon()
      • setLeadingIcon

        public void setLeadingIcon​(boolean leading)
      • isRedirect

        public boolean isRedirect()
      • setRedirect

        public void setRedirect​(boolean redirect)
      • isResponsive

        public boolean isResponsive()
      • setResponsive

        public void setResponsive​(boolean responsive)
      • isShowDialog

        public boolean isShowDialog()
      • setShowDialog

        public void setShowDialog​(boolean dialog)