@NpmPackage(value="@polymer/paper-icon-button",
version="3.0.2")
@JsModule(value="@polymer/paper-icon-button/paper-icon-button.js")
@Tag(value="paper-icon-button")
public class ToolbarIconButton
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasEnabled
| Modifier and Type | Class and Description |
|---|---|
static class |
HasMenuItemCommands.Data |
| Constructor and Description |
|---|
ToolbarIconButton()
No argument constructor
|
ToolbarIconButton(com.vaadin.flow.server.Command command)
Create a new instance of
ToolbarIconButton with a left-button command. |
ToolbarIconButton(String title)
Create a new instance of
ToolbarIconButton with a title |
ToolbarIconButton(String title,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a title and a left-button command. |
ToolbarIconButton(String title,
com.vaadin.flow.component.icon.IconFactory icon,
com.vaadin.flow.server.Command command)
Create a new instance of
ToolbarIconButton with a title, an IconFactory, and
left-button command. |
ToolbarIconButton(String title,
String icon,
com.vaadin.flow.server.Command command)
Create a new instance of
MenuItem with a title, an icon, and left-button command. |
| Modifier and Type | Method and Description |
|---|---|
default String |
getIcon() |
default String |
getImage() |
String |
getTitle() |
default T |
setCommand(com.vaadin.flow.server.Command command) |
default T |
setCommand(MouseClickEvent.MouseButton button,
com.vaadin.flow.server.Command command) |
default T |
setIcon(String icon) |
default T |
setImage(String imageUrl) |
ToolbarIconButton |
setTitle(String title) |
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisiblepublic ToolbarIconButton()
public ToolbarIconButton(String title)
ToolbarIconButton with a titlepublic ToolbarIconButton(com.vaadin.flow.server.Command command)
ToolbarIconButton with a left-button command.public ToolbarIconButton(String title, com.vaadin.flow.server.Command command)
MenuItem with a title and a left-button command.public ToolbarIconButton(String title, com.vaadin.flow.component.icon.IconFactory icon, com.vaadin.flow.server.Command command)
ToolbarIconButton with a title, an IconFactory, and
left-button command.public String getTitle()
public ToolbarIconButton setTitle(String title)
public T setCommand(com.vaadin.flow.server.Command command)
public T setCommand(MouseClickEvent.MouseButton button, com.vaadin.flow.server.Command command)
public String getIcon()
public T setIcon(String icon)
public String getImage()
public T setImage(String imageUrl)
Copyright © 2018–2021 Flowing Code. All rights reserved.