Class ToogleMenuButton
- 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.togglemenubutton.ToogleMenuButton
-
- 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 ToogleMenuButton extends com.vaadin.flow.component.button.Button
Custom button that allows toggle a given section or component in the page- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToogleMenuButton(String buttonText, String sectionId)
ToogleMenuButton(String buttonText, String sectionId, com.vaadin.flow.server.Command visibleCommand, com.vaadin.flow.server.Command noVisibleCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.server.Command
getNoVisibleCommand()
com.vaadin.flow.server.Command
getVisibleCommand()
boolean
isMenuVisible()
void
setMenuVisible(boolean menuVisible)
void
setNoVisibleCommand(com.vaadin.flow.server.Command noVisibleCommand)
void
setVisibleCommand(com.vaadin.flow.server.Command visibleCommand)
void
toogleMenu()
-
Methods inherited from class com.vaadin.flow.component.button.Button
click, clickInClient, getIcon, isAutofocus, isDisableOnClick, isIconAfterText, 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, getUI, hasListener, isTemplateMapped, isVisible, onAttach, 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, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
-
-
-
-
Method Detail
-
getVisibleCommand
public com.vaadin.flow.server.Command getVisibleCommand()
-
setVisibleCommand
public void setVisibleCommand(com.vaadin.flow.server.Command visibleCommand)
-
getNoVisibleCommand
public com.vaadin.flow.server.Command getNoVisibleCommand()
-
setNoVisibleCommand
public void setNoVisibleCommand(com.vaadin.flow.server.Command noVisibleCommand)
-
toogleMenu
public void toogleMenu()
-
isMenuVisible
public boolean isMenuVisible()
-
setMenuVisible
public void setMenuVisible(boolean menuVisible)
-
-