Class BaseGitHubButton
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.flowingcode.vaadin.addons.githubbuttons.BaseGitHubButton
-
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,Serializable
- Direct Known Subclasses:
GitHubButton,SizeableGitHubButton
public class BaseGitHubButton extends Component
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseGitHubButton()BaseGitHubButton(String repo, String user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRepo()StringgetTarget()StringgetUser()booleanisCount()voidsetCount(boolean count)Sets whether to show count or not.voidsetRepo(String repo)Sets the repository name.voidsetTarget(String target)Specifies where to open the github link.voidsetUser(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
-
-
-
-
Method Detail
-
setRepo
public void setRepo(String repo)
Sets the repository name.- Parameters:
repo- the repository name
-
getRepo
public String getRepo()
- Returns:
- String return the repo
-
setUser
public void setUser(String user)
Sets the user or organization name.- Parameters:
user- the user or org name
-
getUser
public 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(String target)
Specifies where to open the github link. Default '_self'.- Parameters:
target- where to open the link
-
getTarget
public String getTarget()
- Returns:
- String return the target
-
-