Class JmixUserMenu.UserChangedEvent<USER>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<JmixUserMenu<USER>>
io.jmix.flowui.kit.component.usermenu.JmixUserMenu.UserChangedEvent<USER>
Type Parameters:
USER - the type of the user associated with the menu
All Implemented Interfaces:
Serializable
Enclosing class:
JmixUserMenu<USER>

public static class JmixUserMenu.UserChangedEvent<USER> extends com.vaadin.flow.component.ComponentEvent<JmixUserMenu<USER>>
Represents an event that is triggered when the user associated with the JmixUserMenu component changes.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final USER
     

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserChangedEvent(JmixUserMenu<USER> source, @Nullable USER user, boolean fromClient)
    Creates a new user changed event.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable USER
    Returns the user associated with the event.

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, getUI, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • user

      protected final USER user
  • Constructor Details

    • UserChangedEvent

      public UserChangedEvent(JmixUserMenu<USER> source, @Nullable USER user, boolean fromClient)
      Creates a new user changed event.
      Parameters:
      source - the source component
      fromClient - true if the event originated from the client side, false otherwise
  • Method Details

    • getUser

      public @Nullable USER getUser()
      Returns the user associated with the event.
      Returns:
      the user associated with the event, or null if no user is associated