Class AbstractLogin.LoginEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    AbstractLogin

    @DomEvent("login")
    public static class AbstractLogin.LoginEvent
    extends com.vaadin.flow.component.ComponentEvent<AbstractLogin>
    `login` is fired when the user either clicks Submit button or presses an Enter key. Event is fired only if client-side validation passed.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      LoginEvent​(AbstractLogin source, boolean fromClient, java.lang.String username, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPassword()  
      java.lang.String getUsername()  
      • Methods inherited from class com.vaadin.flow.component.ComponentEvent

        getSource, 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
    • Constructor Detail

      • LoginEvent

        public LoginEvent​(AbstractLogin source,
                          boolean fromClient,
                          @EventData("event.detail.username")
                          java.lang.String username,
                          @EventData("event.detail.password")
                          java.lang.String password)
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
      • getPassword

        public java.lang.String getPassword()