Package org.vaadin.miki.markers
Interface HasIcon
-
- All Known Subinterfaces:
WithIconMixin<SELF>
public interface HasIconMarker interface for objects that have anIcon.- Since:
- 2020-07-07
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.flow.component.icon.IcongetIcon()Returns current icon.voidsetIcon(com.vaadin.flow.component.icon.Icon icon)Sets an icon associated with this object.
-
-
-
Method Detail
-
setIcon
void setIcon(com.vaadin.flow.component.icon.Icon icon)
Sets an icon associated with this object.- Parameters:
icon- Icon to set. Can benullto remove current icon.
-
getIcon
com.vaadin.flow.component.icon.Icon getIcon()
Returns current icon.- Returns:
- Current
Icon. Can benullif no icon has been associated.
-
-