Class NtkmeGitHubButton
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.flowingcode.vaadin.addons.githubbuttons.BaseGitHubButton
-
- com.flowingcode.vaadin.addons.githubbuttons.SizeableGitHubButton
-
- com.flowingcode.vaadin.addons.githubbuttons.NtkmeGitHubButton
-
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,Serializable
@Tag("wc-ntkme-github-button") @NpmPackage(value="@flowingcode/wc-ngx-github-buttons", version="1.0.0") @JsModule("@flowingcode/wc-ngx-github-buttons/elements/ngxGithubButtons.js") public class NtkmeGitHubButton extends SizeableGitHubButton
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NtkmeGitHubButton()NtkmeGitHubButton(String repo, String user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NtkmeGitHubButtonTypegetType()booleanisStandardIcon()voidsetStandardIcon(boolean standardIcon)Sets whether to use the github logo instead of other iconsvoidsetType(NtkmeGitHubButtonType type)Sets the button's type.-
Methods inherited from class com.flowingcode.vaadin.addons.githubbuttons.SizeableGitHubButton
getSize, setSize
-
Methods inherited from class com.flowingcode.vaadin.addons.githubbuttons.BaseGitHubButton
getRepo, getTarget, getUser, isCount, setCount, setRepo, setTarget, setUser
-
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
-
setType
public void setType(NtkmeGitHubButtonType type)
Sets the button's type. Type can be 'star, follow, watch, fork, issue, download'. Default value 'star'.- Parameters:
type- the type of the button
-
getType
public NtkmeGitHubButtonType getType()
- Returns:
- String return the type
-
setStandardIcon
public void setStandardIcon(boolean standardIcon)
Sets whether to use the github logo instead of other icons- Parameters:
standardIcon- is true shows standard github logo
-
isStandardIcon
public boolean isStandardIcon()
- Returns:
- boolean return if the standardIcon is displayed
-
-