Class JmixGridColumnVisibility.MenuItemImpl
java.lang.Object
io.jmix.flowui.component.gridcolumnvisibility.JmixGridColumnVisibility.MenuItemImpl
- All Implemented Interfaces:
JmixGridColumnVisibility.MenuItem
- Enclosing class:
- JmixGridColumnVisibility
protected static class JmixGridColumnVisibility.MenuItemImpl
extends Object
implements JmixGridColumnVisibility.MenuItem
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataGridColumn<?>
protected com.vaadin.flow.shared.Registration
protected JmixMenuItem
-
Constructor Summary
ModifierConstructorDescriptionprotected
MenuItemImpl
(DataGridColumn<?> column, JmixMenuItem menuItem) -
Method Summary
Modifier and TypeMethodDescriptionprotected JmixMenuItem
getText()
boolean
void
void
setChecked
(boolean checked) void
Sets item text.void
Toggles visibility of referenced data grid column.
-
Field Details
-
column
-
columnVisibilityChangedRegistration
protected com.vaadin.flow.shared.Registration columnVisibilityChangedRegistration
-
-
Constructor Details
-
Method Details
-
getColumn
- Specified by:
getColumn
in interfaceJmixGridColumnVisibility.MenuItem
- Returns:
- referenced data grid column
-
setChecked
public void setChecked(boolean checked) -
isChecked
public boolean isChecked()- Specified by:
isChecked
in interfaceJmixGridColumnVisibility.MenuItem
- Returns:
- whether the item is checked
-
setText
Description copied from interface:JmixGridColumnVisibility.MenuItem
Sets item text.- Specified by:
setText
in interfaceJmixGridColumnVisibility.MenuItem
- Parameters:
text
- item text
-
getText
- Specified by:
getText
in interfaceJmixGridColumnVisibility.MenuItem
- Returns:
- item text
-
getMenuItem
-
removeColumnListeners
public void removeColumnListeners() -
toggleVisibility
public void toggleVisibility()Description copied from interface:JmixGridColumnVisibility.MenuItem
Toggles visibility of referenced data grid column.- Specified by:
toggleVisibility
in interfaceJmixGridColumnVisibility.MenuItem
-