Class 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.HasEnabled
    Toolbar menu item component.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ToolbarIconButton()
      No argument constructor
      ToolbarIconButton​(com.vaadin.flow.server.Command command)
      Create a new instance of ToolbarIconButton with a left-button command.
      ToolbarIconButton​(java.lang.String title)
      Create a new instance of ToolbarIconButton with a title
      ToolbarIconButton​(java.lang.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​(java.lang.String title, com.vaadin.flow.server.Command command)
      Create a new instance of MenuItem with 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 of MenuItem with 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.String getIcon()  
      default java.lang.String getImage()  
      java.lang.String getTitle()  
      default T setCommand​(MouseClickEvent.MouseButton button, com.vaadin.flow.server.Command command)  
      default T setCommand​(com.vaadin.flow.server.Command command)  
      default T setIcon​(java.lang.String icon)  
      default T setImage​(java.lang.String imageUrl)  
      ToolbarIconButton setTitle​(java.lang.String title)  
      • Methods 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, scrollIntoView, set, setElement, setId, setVisible
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
    • Constructor Detail

      • ToolbarIconButton

        public ToolbarIconButton()
        No argument constructor
      • ToolbarIconButton

        public ToolbarIconButton​(java.lang.String title)
        Create a new instance of ToolbarIconButton with a title
      • ToolbarIconButton

        public ToolbarIconButton​(com.vaadin.flow.server.Command command)
        Create a new instance of ToolbarIconButton with a left-button command.
      • ToolbarIconButton

        public ToolbarIconButton​(java.lang.String title,
                                 com.vaadin.flow.server.Command command)
        Create a new instance of MenuItem with 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 of ToolbarIconButton with a title, an IconFactory, 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 of MenuItem with a title, an icon, and left-button command.
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
      • setCommand

        public default T setCommand​(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)