Package org.vaadin.miki.markers
Interface HasComponentAsIcon
-
- All Known Subinterfaces:
WithComponentAsIconMixin<SELF>
- All Known Implementing Classes:
IndexedButton,SimpleButtonState
public interface HasComponentAsIconMarker interface for objects that accept a generalComponentas an icon.- Since:
- 2020-07-07
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.flow.component.ComponentgetIcon()Returns current icon.voidsetIcon(com.vaadin.flow.component.Component icon)Sets givenComponentas an icon of this object.
-
-
-
Method Detail
-
setIcon
void setIcon(com.vaadin.flow.component.Component icon)
Sets givenComponentas an icon of this object.- Parameters:
icon- AComponentto be used as an icon. Can benullto clear current icon.
-
getIcon
com.vaadin.flow.component.Component getIcon()
Returns current icon.- Returns:
- A
Componentthat serves as an icon for this object. Can benull.
-
-