Package org.vaadin.miki.markers
Interface HasComponentAsIcon
- All Known Subinterfaces:
WithComponentAsIconMixin<SELF>
- All Known Implementing Classes:
IndexedButton,SimpleButtonState
public interface HasComponentAsIcon
Marker interface for objects that accept a general
Component as an icon.- Since:
- 2020-07-07
- Author:
- miki
-
Method Summary
-
Method Details
-
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.
-