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 Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionToggledEvent(DetailComponent source, boolean fromClient, boolean expanded) Constructor. -
Method Summary
Modifier 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.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ToggledEvent
Constructor.- Parameters:
source- Event source (will be aDetailComponent).fromClient- Whether this happened from the client side or notexpanded- Whether expanded or not
-
-
Method Details
-
isExpanded
public boolean isExpanded()Check if this was an expanding event or not.- Returns:
- True if it was aa expanding event.
-
isCollapsed
public boolean isCollapsed()Check if this was a collapsing event or not.- Returns:
- True if it was a collapsing event.
-