Package org.linkki.core.vaadin.component
Interface HasIcon
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
- All Known Implementing Classes:
LinkkiAnchor,LinkkiText
@CssImport("./styles/linkki-has-icon.css") public interface HasIcon extends com.vaadin.flow.component.HasStyleA component that can have aVaadinIcon.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.flow.component.icon.VaadinIcongetIcon()Returns the icon of this component.voidsetIcon(com.vaadin.flow.component.icon.VaadinIcon icon)Sets the icon of this component.
-
-
-
Method Detail
-
getIcon
@CheckForNull com.vaadin.flow.component.icon.VaadinIcon getIcon()
Returns the icon of this component. When no icon is present,nullis returned.
-
setIcon
void setIcon(@Nullable com.vaadin.flow.component.icon.VaadinIcon icon)Sets the icon of this component. A value ofnullcan be used to remove the icon.
-
-