public static class DataGrid.ColumnCollapsingChangeEvent extends DataGrid.AbstractDataGridEvent implements HasUserOriginated
Modifier and Type | Field and Description |
---|---|
protected boolean |
collapsed |
protected DataGrid.Column |
column |
protected boolean |
userOriginated |
Constructor and Description |
---|
ColumnCollapsingChangeEvent(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.
|
Modifier and Type | Method and Description |
---|---|
DataGrid.Column |
getColumn()
Gets the column that became hidden or visible.
|
boolean |
isCollapsed() |
boolean |
isUserOriginated()
Returns whether this event was triggered by user interaction or programmatically.
|
getSource
protected final DataGrid.Column column
protected final boolean collapsed
protected final boolean userOriginated
public ColumnCollapsingChangeEvent(DataGrid component, DataGrid.Column column, boolean collapsed)
component
- the DataGrid from which this event originatescolumn
- the column that changed its visibilitycollapsed
- true
if the column was collapsed,
false
if it became visiblepublic ColumnCollapsingChangeEvent(DataGrid component, DataGrid.Column column, boolean collapsed, boolean userOriginated)
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 callpublic DataGrid.Column getColumn()
DataGrid.Column.isCollapsed()
public boolean isCollapsed()
true
if the column was collapsed, false
if it was set visiblepublic boolean isUserOriginated()
HasUserOriginated
isUserOriginated
in interface HasUserOriginated
true
if this event originates by user interaction, false
otherwise.