Vaadin 14 offers two implementations of AbstractLogin
:
➥ What is the difference?
➥ Why should I use one rather than the other?
The Javadoc description for each is identical, with no hint of their difference. The component catalog page for Login
shows examples for both, but no mention of the difference.
I see from the source code for AbstractLogin.java
, LoginForm.java
, and LoginOverflay.java
that LoginForm
is not much more than just AbstractLogin
. In contrast, LoginOverlay
adds several more methods. Some are just decoration such as a header. But some are more mysterious, such as initEnsureDetachListener
, and checking for illegal state with UI.getCurrent
.
I am quite curious about why LoginOverlay
needs these additional methods above and beyond what LoginForm
has. I am curious not only about providing login features in my apps, but also to learn more about making my own composite components using the login widget as an example or model.