Class GridMenuItemActionWrapper<T>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
io.jmix.flowui.kit.component.grid.GridMenuItemActionWrapper<T>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,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.HasText
,com.vaadin.flow.component.shared.HasPrefix
,com.vaadin.flow.component.shared.HasSuffix
,com.vaadin.flow.component.shared.HasTooltip
,HasAction
,Serializable
- Direct Known Subclasses:
GridContextMenuItemComponent
public class GridMenuItemActionWrapper<T>
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
implements com.vaadin.flow.component.HasText, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.shared.HasPrefix, com.vaadin.flow.component.shared.HasSuffix, com.vaadin.flow.component.shared.HasTooltip, HasAction
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpace
-
Field Summary
Modifier and TypeFieldDescriptionprotected GridMenuItemActionSupport
protected static final String
protected com.vaadin.flow.component.grid.contextmenu.GridMenuItem<T>
protected static final String
protected com.vaadin.flow.component.Component
protected static final String
protected com.vaadin.flow.component.Component
protected static final String
protected com.vaadin.flow.component.html.Span
protected com.vaadin.flow.component.shared.Tooltip
-
Constructor Summary
ConstructorDescriptionGridMenuItemActionWrapper
(com.vaadin.flow.component.grid.contextmenu.GridMenuItem<T> menuItem) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(com.vaadin.flow.component.Component... components) void
void
addComponentAsFirst
(com.vaadin.flow.component.Component component) void
addComponentAtIndex
(int index, com.vaadin.flow.component.Component component) com.vaadin.flow.shared.Registration
addMenuItemClickListener
(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<T>> clickListener) protected GridMenuItemActionSupport
com.vaadin.flow.component.grid.contextmenu.GridMenuItem<T>
com.vaadin.flow.component.Component
com.vaadin.flow.component.Component
getText()
com.vaadin.flow.component.shared.Tooltip
protected com.vaadin.flow.component.shared.Tooltip
com.vaadin.flow.component.HasText.WhiteSpace
protected com.vaadin.flow.component.html.Div
boolean
boolean
boolean
isEmpty()
void
remove
(com.vaadin.flow.component.Component... components) void
void
void
setCheckable
(boolean checkable) void
setChecked
(boolean checked) void
setMenuItem
(com.vaadin.flow.component.grid.contextmenu.GridMenuItem<T> menuItem) void
setPrefixComponent
(com.vaadin.flow.component.Component component) protected void
setPrefixComponentInternal
(com.vaadin.flow.component.Component prefixComponent) void
setSuffixComponent
(com.vaadin.flow.component.Component component) protected void
setSuffixComponentInternal
(com.vaadin.flow.component.Component suffixComponent) void
protected void
setTextComponentInternal
(com.vaadin.flow.component.html.Span textComponent) com.vaadin.flow.component.shared.Tooltip
setTooltipText
(String text) void
setWhiteSpace
(com.vaadin.flow.component.HasText.WhiteSpace value) protected void
updateContent
(com.vaadin.flow.component.Component prefixComponent, com.vaadin.flow.component.html.Span textComponent, com.vaadin.flow.component.Component suffixComponent) Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, 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, 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
ITEM_COMPONENT_CLASS_NAME
- See Also:
-
PREFIX_COMPONENT_CLASS_NAME
- See Also:
-
TEXT_COMPONENT_CLASS_NAME
- See Also:
-
SUFFIX_COMPONENT_CLASS_NAME
- See Also:
-
textComponent
protected com.vaadin.flow.component.html.Span textComponent -
prefixComponent
protected com.vaadin.flow.component.Component prefixComponent -
suffixComponent
protected com.vaadin.flow.component.Component suffixComponent -
tooltip
protected com.vaadin.flow.component.shared.Tooltip tooltip -
actionSupport
-
-
Constructor Details
-
GridMenuItemActionWrapper
public GridMenuItemActionWrapper()
-
-
Method Details
-
initContent
protected com.vaadin.flow.component.html.Div initContent()- Overrides:
initContent
in classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
-
getMenuItem
-
getAction
-
setAction
-
addMenuItemClickListener
public com.vaadin.flow.shared.Registration addMenuItemClickListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<T>> clickListener) -
isCheckable
public boolean isCheckable() -
setCheckable
public void setCheckable(boolean checkable) -
isChecked
public boolean isChecked() -
setChecked
public void setChecked(boolean checked) -
getText
- Specified by:
getText
in interfacecom.vaadin.flow.component.HasText
-
setText
- Specified by:
setText
in interfacecom.vaadin.flow.component.HasText
-
updateContent
protected void updateContent(@Nullable com.vaadin.flow.component.Component prefixComponent, @Nullable com.vaadin.flow.component.html.Span textComponent, @Nullable com.vaadin.flow.component.Component suffixComponent) -
setPrefixComponentInternal
protected void setPrefixComponentInternal(@Nullable com.vaadin.flow.component.Component prefixComponent) -
setTextComponentInternal
protected void setTextComponentInternal(@Nullable com.vaadin.flow.component.html.Span textComponent) -
setSuffixComponentInternal
protected void setSuffixComponentInternal(@Nullable com.vaadin.flow.component.Component suffixComponent) -
getPrefixComponent
@Nullable public com.vaadin.flow.component.Component getPrefixComponent()- Specified by:
getPrefixComponent
in interfacecom.vaadin.flow.component.shared.HasPrefix
-
setPrefixComponent
public void setPrefixComponent(@Nullable com.vaadin.flow.component.Component component) - Specified by:
setPrefixComponent
in interfacecom.vaadin.flow.component.shared.HasPrefix
-
getSuffixComponent
@Nullable public com.vaadin.flow.component.Component getSuffixComponent()- Specified by:
getSuffixComponent
in interfacecom.vaadin.flow.component.shared.HasSuffix
-
setSuffixComponent
public void setSuffixComponent(@Nullable com.vaadin.flow.component.Component component) - Specified by:
setSuffixComponent
in interfacecom.vaadin.flow.component.shared.HasSuffix
-
getTooltip
public com.vaadin.flow.component.shared.Tooltip getTooltip()- Specified by:
getTooltip
in interfacecom.vaadin.flow.component.shared.HasTooltip
-
getTooltipInternal
protected com.vaadin.flow.component.shared.Tooltip getTooltipInternal() -
setTooltipText
- Specified by:
setTooltipText
in interfacecom.vaadin.flow.component.shared.HasTooltip
-
getWhiteSpace
public com.vaadin.flow.component.HasText.WhiteSpace getWhiteSpace()- Specified by:
getWhiteSpace
in interfacecom.vaadin.flow.component.HasText
-
setWhiteSpace
public void setWhiteSpace(com.vaadin.flow.component.HasText.WhiteSpace value) - Specified by:
setWhiteSpace
in interfacecom.vaadin.flow.component.HasText
-
add
public void add(com.vaadin.flow.component.Component... components) - Specified by:
add
in interfacecom.vaadin.flow.component.HasComponents
-
add
- Specified by:
add
in interfacecom.vaadin.flow.component.HasComponents
-
remove
public void remove(com.vaadin.flow.component.Component... components) - Specified by:
remove
in interfacecom.vaadin.flow.component.HasComponents
-
removeAll
public void removeAll()- Specified by:
removeAll
in interfacecom.vaadin.flow.component.HasComponents
-
addComponentAtIndex
public void addComponentAtIndex(int index, com.vaadin.flow.component.Component component) - Specified by:
addComponentAtIndex
in interfacecom.vaadin.flow.component.HasComponents
-
addComponentAsFirst
public void addComponentAsFirst(com.vaadin.flow.component.Component component) - Specified by:
addComponentAsFirst
in interfacecom.vaadin.flow.component.HasComponents
-
getActionSupport
-
createActionSupport
-
isEmpty
public boolean isEmpty()
-