Package com.flowingcode.addons.applayout
Class ToolbarIconButton
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.flowingcode.addons.applayout.ToolbarIconButton
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,java.io.Serializable
@NpmPackage(value="@polymer/paper-icon-button", version="3.0.2") @JsModule("@polymer/paper-icon-button/paper-icon-button.js") @Tag("paper-icon-button") public class ToolbarIconButton extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasEnabledToolbar menu item component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToolbarIconButton()No argument constructorToolbarIconButton(com.vaadin.flow.server.Command command)Create a new instance ofToolbarIconButtonwith a left-button command.ToolbarIconButton(java.lang.String title)Create a new instance ofToolbarIconButtonwith a titleToolbarIconButton(java.lang.String title, com.vaadin.flow.component.icon.IconFactory icon, com.vaadin.flow.server.Command command)Create a new instance ofToolbarIconButtonwith a title, anIconFactory, and left-button command.ToolbarIconButton(java.lang.String title, com.vaadin.flow.server.Command command)Create a new instance ofMenuItemwith a title and a left-button command.ToolbarIconButton(java.lang.String title, java.lang.String icon, com.vaadin.flow.server.Command command)Create a new instance ofMenuItemwith a title, an icon, and left-button command.
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default java.lang.StringgetIcon()default java.lang.StringgetImage()java.lang.StringgetTitle()default TsetCommand(MouseClickEvent.MouseButton button, com.vaadin.flow.server.Command command)default TsetCommand(com.vaadin.flow.server.Command command)default TsetIcon(java.lang.String icon)default TsetImage(java.lang.String imageUrl)ToolbarIconButtonsetTitle(java.lang.String title)-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
-
-
-
Constructor Detail
-
ToolbarIconButton
public ToolbarIconButton()
No argument constructor
-
ToolbarIconButton
public ToolbarIconButton(java.lang.String title)
Create a new instance ofToolbarIconButtonwith a title
-
ToolbarIconButton
public ToolbarIconButton(com.vaadin.flow.server.Command command)
Create a new instance ofToolbarIconButtonwith a left-button command.
-
ToolbarIconButton
public ToolbarIconButton(java.lang.String title, com.vaadin.flow.server.Command command)Create a new instance ofMenuItemwith a title and a left-button command.
-
ToolbarIconButton
public ToolbarIconButton(java.lang.String title, com.vaadin.flow.component.icon.IconFactory icon, com.vaadin.flow.server.Command command)Create a new instance ofToolbarIconButtonwith a title, anIconFactory, and left-button command.
-
ToolbarIconButton
public ToolbarIconButton(java.lang.String title, java.lang.String icon, com.vaadin.flow.server.Command command)Create a new instance ofMenuItemwith a title, an icon, and left-button command.
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
-
setTitle
public ToolbarIconButton setTitle(java.lang.String title)
-
setCommand
public default T setCommand(com.vaadin.flow.server.Command command)
-
setCommand
public default T setCommand(MouseClickEvent.MouseButton button, com.vaadin.flow.server.Command command)
-
getIcon
public default java.lang.String getIcon()
-
setIcon
public default T setIcon(java.lang.String icon)
-
getImage
public default java.lang.String getImage()
-
setImage
public default T setImage(java.lang.String imageUrl)
-
-