Class ColumnsGrouperItem

java.lang.Object
com.vaadin.flow.component.Component
io.jmix.groupgridflowui.component.columnsgrouper.ColumnsGrouperItem
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.dnd.DragSource<ColumnsGrouperItem>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable, org.springframework.beans.factory.InitializingBean

@Tag("jmix-columns-grouper-item") @JsModule("./src/columnsgrouper/jmix-columns-grouper-item.js") public class ColumnsGrouperItem extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.dnd.DragSource<ColumnsGrouperItem>, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, org.springframework.beans.factory.InitializingBean
Component representing a column in the ColumnsGrouper.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.vaadin.flow.component.button.Button
     
    protected Grid.Column<?>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.shared.Registration
    Adds a listener is called when the action button is clicked.
    void
     
     
     
     
    protected void
     
    protected void
     
    void
    setActionButtonIcon(com.vaadin.flow.component.icon.Icon icon)
    Sets the action button icon.
    void
    Sets the column represented by this item.

    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, 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.dnd.DragSource

    addDragEndListener, addDragStartListener, getDragData, getDraggableElement, getDragImage, getDragSourceComponent, getEffectAllowed, getElement, isDraggable, setDragData, setDraggable, setDragImage, setDragImage, setEffectAllowed

    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

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

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

    • actionButton

      protected com.vaadin.flow.component.button.Button actionButton
    • column

      protected Grid.Column<?> column
  • Constructor Details

    • ColumnsGrouperItem

      public ColumnsGrouperItem()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • initComponent

      protected void initComponent()
    • getColumnKey

      @Nullable public String getColumnKey()
      Returns:
      column key or null if column is not set
    • getColumnHeaderText

      @Nullable public String getColumnHeaderText()
      Returns:
      column header text or null if column is not set.
    • getColumn

      public Grid.Column<?> getColumn()
      Returns:
      column that is represented by this item
    • setColumn

      public void setColumn(Grid.Column<?> column)
      Sets the column represented by this item.
      Parameters:
      column - column to set
    • setActionButtonIcon

      public void setActionButtonIcon(@Nullable com.vaadin.flow.component.icon.Icon icon)
      Sets the action button icon.
      Parameters:
      icon - icon to set
    • addActionButtonClickListener

      public com.vaadin.flow.shared.Registration addActionButtonClickListener(Consumer<ColumnsGrouperItemButtonClickEvent> listener)
      Adds a listener is called when the action button is clicked.
      Parameters:
      listener - listener to add
      Returns:
      a registration for removing the listener
    • initActionButton

      protected void initActionButton()