Class SizeableGitHubButton
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.flowingcode.vaadin.addons.githubbuttons.BaseGitHubButton
-
- com.flowingcode.vaadin.addons.githubbuttons.SizeableGitHubButton
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,java.io.Serializable
- Direct Known Subclasses:
MdoGitHubButton
,NtkmeGitHubButton
public class SizeableGitHubButton extends BaseGitHubButton
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SizeableGitHubButton()
SizeableGitHubButton(java.lang.String repo, java.lang.String user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ButtonSize
getSize()
void
setSize(ButtonSize size)
Sets size of the button.-
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
-
-
-
-
Method Detail
-
setSize
public void setSize(ButtonSize size)
Sets size of the button. Use ButtonSize.LARGER for a bigger size button. Default value 'none'.- Parameters:
size
- the size of the button
-
getSize
public ButtonSize getSize()
- Returns:
- ButtonSize return the size
-
-