Package com.storedobject.vaadin
Class DetailComponent.ToggledEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<DetailComponent>
com.storedobject.vaadin.DetailComponent.ToggledEvent
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- DetailComponent
public static class DetailComponent.ToggledEvent
extends com.vaadin.flow.component.ComponentEvent<DetailComponent>
Class that represents the "toggled event".
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionToggledEvent(DetailComponent source, boolean fromClient, boolean expanded) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck if this was a collapsing event or not.booleanCheck if this was an expanding event or not.Methods inherited from class com.vaadin.flow.component.ComponentEventgetSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObjecttoString
- 
Constructor Details- 
ToggledEventConstructor.- Parameters:
- source- Event source (will be a- DetailComponent).
- fromClient- Whether this happened from the client side or not
- expanded- Whether expanded or not
 
 
- 
- 
Method Details- 
isExpandedpublic boolean isExpanded()Check if this was an expanding event or not.- Returns:
- True if it was aa expanding event.
 
- 
isCollapsedpublic boolean isCollapsed()Check if this was a collapsing event or not.- Returns:
- True if it was a collapsing event.
 
 
-