T - collapsed item typepublic class CollapseEvent<T> extends Component.Event implements HasUserOriginated
| Modifier and Type | Class and Description |
|---|---|
static interface |
CollapseEvent.CollapseListener<T>
Item collapse event listener.
|
source| Constructor and Description |
|---|
CollapseEvent(Component source,
T collapsedItem,
boolean userOriginated)
Construct a collapse event.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getCollapsedItem()
Get the collapsed item that triggered this event.
|
boolean |
isUserOriginated()
Returns whether this event was triggered by user interaction, on the
client side, or programmatically, on the server side.
|
getComponentgetConnectorgetSource, toStringpublic CollapseEvent(Component source, T collapsedItem, boolean userOriginated)
source - the hierarchical component this event originated fromcollapsedItem - the item that was collapseduserOriginated - whether the collapse was triggered by a user interaction or
the serverpublic T getCollapsedItem()
public boolean isUserOriginated()
HasUserOriginatedisUserOriginated in interface HasUserOriginatedtrue if this event originates from the client,
false otherwise.Copyright © 2019 Vaadin Ltd. All rights reserved.