Class RailModeChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<SideNavRail>
org.vaadin.addons.componentfactory.sidenavrail.RailModeChangedEvent
- All Implemented Interfaces:
Serializable
Fired when
SideNavRail.setRailMode(boolean) actually changes the rail-mode state. No-op
calls (same value) do not fire. Register via SideNavRail.addRailModeChangedListener(com.vaadin.flow.component.ComponentEventListener<org.vaadin.addons.componentfactory.sidenavrail.RailModeChangedEvent>).- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionRailModeChangedEvent(SideNavRail source, boolean fromClient, boolean railMode) -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
Method Details
-
isRailMode
public boolean isRailMode()The new rail-mode value after the change.- Returns:
trueif the rail just switched into rail mode,falseif it switched back to normal mode
-