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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Constructor Details
-
BaseGitHubButton
public BaseGitHubButton() -
BaseGitHubButton
-
-
Method Details
-
setRepo
Sets the repository name.- Parameters:
repo- the repository name
-
getRepo
- Returns:
- String return the repo
-
setUser
Sets the user or organization name.- Parameters:
user- the user or org name
-
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
Specifies where to open the github link. Default '_self'.- Parameters:
target- where to open the link
-
getTarget
- Returns:
- String return the target
-