Class BaseGitHubButton

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, java.io.Serializable
    Direct Known Subclasses:
    GitHubButton, SizeableGitHubButton

    public class BaseGitHubButton
    extends com.vaadin.flow.component.Component
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRepo()  
      java.lang.String getTarget()  
      java.lang.String getUser()  
      boolean isCount()  
      void setCount​(boolean count)
      Sets whether to show count or not.
      void setRepo​(java.lang.String repo)
      Sets the repository name.
      void setTarget​(java.lang.String target)
      Specifies where to open the github link.
      void setUser​(java.lang.String user)
      Sets the user or organization name.
      • 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

      • BaseGitHubButton

        public BaseGitHubButton()
      • BaseGitHubButton

        public BaseGitHubButton​(java.lang.String repo,
                                java.lang.String user)
    • Method Detail

      • setRepo

        public void setRepo​(java.lang.String repo)
        Sets the repository name.
        Parameters:
        repo - the repository name
      • getRepo

        public java.lang.String getRepo()
        Returns:
        String return the repo
      • setUser

        public void setUser​(java.lang.String user)
        Sets the user or organization name.
        Parameters:
        user - the user or org name
      • getUser

        public java.lang.String getUser()
        Returns:
        String return the user
      • setCount

        public void setCount​(boolean count)
        Sets whether to show count or not.
        Parameters:
        count - if true, it shows count.
      • isCount

        public boolean isCount()
        Returns:
        boolean return the count
      • setTarget

        public void setTarget​(java.lang.String target)
        Specifies where to open the github link. Default '_self'.
        Parameters:
        target - where to open the link
      • getTarget

        public java.lang.String getTarget()
        Returns:
        String return the target