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
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.button.Buttonprotected Grid.Column<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationAdds a listener is called when the action button is clicked.voidGrid.Column<?>protected voidprotected voidvoidsetActionButtonIcon(com.vaadin.flow.component.icon.Icon icon) Sets the action button icon.voidsetColumn(Grid.Column<?> column) 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.dnd.DragSource
addDragEndListener, addDragStartListener, getDragData, getDraggableElement, getDragImage, getDragSourceComponent, getEffectAllowed, getElement, isDraggable, setDragData, setDraggable, setDragImage, setDragImage, setEffectAllowedMethods 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, setWidthFullMethods 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
-
-
Constructor Details
-
ColumnsGrouperItem
public ColumnsGrouperItem()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
initComponent
protected void initComponent() -
getColumnKey
- Returns:
- column key or
nullif column is not set
-
getColumnHeaderText
- Returns:
- column header text or
nullif column is not set.
-
getColumn
- Returns:
- column that is represented by this item
-
setColumn
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()
-