Package io.jmix.ui.component
Class DataGrid.ColumnCollapsingChangeEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.component.DataGrid.AbstractDataGridEvent
io.jmix.ui.component.DataGrid.ColumnCollapsingChangeEvent
- All Implemented Interfaces:
HasUserOriginated
,Serializable
public static class DataGrid.ColumnCollapsingChangeEvent
extends DataGrid.AbstractDataGridEvent
implements HasUserOriginated
An event that is fired when a column's collapsing changes.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final DataGrid.Column
protected final boolean
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionColumnCollapsingChangeEvent
(DataGrid component, DataGrid.Column column, boolean collapsed) Constructor for a column visibility change event.ColumnCollapsingChangeEvent
(DataGrid component, DataGrid.Column column, boolean collapsed, boolean userOriginated) Constructor for a column visibility change event. -
Method Summary
Modifier and TypeMethodDescriptionGets the column that became hidden or visible.boolean
boolean
Returns whether this event was triggered by user interaction or programmatically.Methods inherited from class io.jmix.ui.component.DataGrid.AbstractDataGridEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
column
-
collapsed
protected final boolean collapsed -
userOriginated
protected final boolean userOriginated
-
-
Constructor Details
-
ColumnCollapsingChangeEvent
Constructor for a column visibility change event.- Parameters:
component
- the DataGrid from which this event originatescolumn
- the column that changed its visibilitycollapsed
-true
if the column was collapsed,false
if it became visible
-
ColumnCollapsingChangeEvent
public ColumnCollapsingChangeEvent(DataGrid component, DataGrid.Column column, boolean collapsed, boolean userOriginated) Constructor for a column visibility change event.- Parameters:
component
- the DataGrid from which this event originatescolumn
- the column that changed its visibilitycollapsed
-true
if the column was collapsed,false
if it became visibleuserOriginated
-true
if an event is a result of user interaction,false
if from the API call
-
-
Method Details
-
getColumn
Gets the column that became hidden or visible.- Returns:
- the column that became hidden or visible.
- See Also:
-
isCollapsed
public boolean isCollapsed()- Returns:
true
if the column was collapsed,false
if it was set visible
-
isUserOriginated
public boolean isUserOriginated()Description copied from interface:HasUserOriginated
Returns whether this event was triggered by user interaction or programmatically.- Specified by:
isUserOriginated
in interfaceHasUserOriginated
- Returns:
true
if this event originates by user interaction,false
otherwise.
-