Class ColumnToggleContextMenu

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.contextmenu.ContextMenuBase<com.vaadin.flow.component.contextmenu.ContextMenu,com.vaadin.flow.component.contextmenu.MenuItem,com.vaadin.flow.component.contextmenu.SubMenu>
com.vaadin.flow.component.contextmenu.ContextMenu
hu.rts.mike.example.dev.crm.component.grid.ColumnToggleContextMenu
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.contextmenu.HasMenuItems, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.shared.HasOverlayClassName, Serializable

public class ColumnToggleContextMenu extends com.vaadin.flow.component.contextmenu.ContextMenu
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase

    com.vaadin.flow.component.contextmenu.ContextMenuBase.OpenedChangeEvent<TComponent extends com.vaadin.flow.component.contextmenu.ContextMenuBase<TComponent,?,?>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase

    EVENT_DETAIL
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColumnToggleContextMenu(com.vaadin.flow.component.Component target)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addColumnToggleItem(String label, com.vaadin.flow.component.grid.Grid.Column<?> column)
     
    com.vaadin.flow.component.contextmenu.MenuItem
     
    void
     
    private static void
    setColumnVisibility(com.vaadin.flow.component.grid.Grid.Column<?> column, boolean isVisible)
     

    Methods inherited from class com.vaadin.flow.component.contextmenu.ContextMenu

    addItem, addItem, createMenuManager

    Methods inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase

    add, addComponentAtIndex, addItem, addItem, addOpenedChangeListener, close, getChildren, getItems, getMenuManager, getTarget, isOpened, isOpenOnClick, onBeforeOpenMenu, remove, removeAll, setOpenOnClick, setTarget

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, 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, 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.HasComponents

    add, add, addComponentAsFirst, remove

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

    getElement

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

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.shared.HasOverlayClassName

    getOverlayClassName, setOverlayClassName

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

  • Constructor Details

    • ColumnToggleContextMenu

      public ColumnToggleContextMenu(com.vaadin.flow.component.Component target)
  • Method Details

    • addColumnToggleItem

      public void addColumnToggleItem(String label, com.vaadin.flow.component.grid.Grid.Column<?> column)
    • setColumnVisibility

      private static void setColumnVisibility(com.vaadin.flow.component.grid.Grid.Column<?> column, boolean isVisible)
    • getItemByColumnKey

      public com.vaadin.flow.component.contextmenu.MenuItem getItemByColumnKey(String key)
    • removeTarget

      public void removeTarget()