Package org.neotropic.util.visual.menu
Class MenuButton<T>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.button.GeneratedVaadinButton<com.vaadin.flow.component.button.Button>
-
- com.vaadin.flow.component.button.Button
-
- org.neotropic.util.visual.menu.MenuButton<T>
-
- Type Parameters:
T
- The type of the menu items.
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.button.Button>
,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.button.Button>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.button.Button>
,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.button.Button>
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasText
,com.vaadin.flow.component.HasTheme
,Serializable
public class MenuButton<T> extends com.vaadin.flow.component.button.Button
Button that displays a menu below when clicked.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MenuButton(MenuLayout menuLayout, String btnText, com.vaadin.flow.component.Component icon)
MenuButton(MenuLayout menuLayout, String btnText, String target, com.vaadin.flow.component.Component icon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMenuItem(T item, String itemLabel, String itemHref, Runnable runnableSelectedItem)
-
Methods inherited from class com.vaadin.flow.component.button.Button
click, clickInClient, getIcon, isAutofocus, isDisableOnClick, isIconAfterText, onAttach, setAutofocus, setDisableOnClick, setIcon, setIconAfterText, setText
-
Methods inherited from class com.vaadin.flow.component.button.GeneratedVaadinButton
addThemeVariants, addToPrefix, addToSuffix, isAutofocusBoolean, isDisabledBoolean, remove, removeAll, removeThemeVariants, setDisabled
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, 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.ClickNotifier
addClickListener, addClickShortcut
-
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
-
-
-
Constructor Detail
-
MenuButton
public MenuButton(MenuLayout menuLayout, String btnText, String target, com.vaadin.flow.component.Component icon)
-
MenuButton
public MenuButton(MenuLayout menuLayout, String btnText, com.vaadin.flow.component.Component icon)
-
-