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,com.vaadin.flow.component.HasStyle,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.HasEnabled
Toolbar menu item component.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNo argument constructorToolbarIconButton(com.vaadin.flow.server.Command command) Create a new instance ofToolbarIconButtonwith a left-button command.ToolbarIconButton(String title) Create a new instance ofToolbarIconButtonwith a titleToolbarIconButton(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(String title, com.vaadin.flow.server.Command command) Create a new instance ofMenuItemwith a title and a left-button command.ToolbarIconButton(String title, String icon, com.vaadin.flow.server.Command command) Create a new instance ofMenuItemwith a title, an icon, and left-button command. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetIcon()default StringgetImage()getTitle()default ToolbarIconButtonsetCommand(MouseClickEvent.MouseButton button, com.vaadin.flow.server.Command command) default ToolbarIconButtonsetCommand(com.vaadin.flow.server.Command command) default ToolbarIconButtondefault ToolbarIconButtonMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
ToolbarIconButton
public ToolbarIconButton()No argument constructor -
ToolbarIconButton
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
Create a new instance ofMenuItemwith a title and a left-button command. -
ToolbarIconButton
public ToolbarIconButton(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
Create a new instance ofMenuItemwith a title, an icon, and left-button command.
-
-
Method Details
-
getTitle
-
setTitle
-
setCommand
-
setCommand
default ToolbarIconButton setCommand(MouseClickEvent.MouseButton button, com.vaadin.flow.server.Command command) -
getIcon
-
setIcon
-
getImage
-
setImage
-