Class LoginOverlay

    • Constructor Detail

      • LoginOverlay

        public LoginOverlay()
      • LoginOverlay

        public LoginOverlay​(LoginI18n i18n)
    • Method Detail

      • close

        public void close()
        Closes the login overlay.

        Note: This method also removes the overlay component from the DOM after closing it, unless you have added the component manually.

      • setOpened

        public void setOpened​(boolean opened)
        Opens or closes the login overlay. On open component becomes enabled HasEnabled.setEnabled(boolean)

        Note: Overlay will be attached or detached from the DOM automatically, if it was not added manually.

        Parameters:
        opened - true to open the login overlay, false to close it
      • setTitle

        public void setTitle​(String title)
        Sets the application title. Detaches the component title if it was set earlier. Note: the method calls setTitle(Component), which will reset the custom title, if it was set. Custom title can be reset only when the overlay is closed. Title is a part of the I18n object. See AbstractLogin.setI18n(LoginI18n).
        See Also:
        getTitleAsText()
      • setTitle

        public void setTitle​(Component title)
        Sets the application title, null to remove any previous title and to display title set via setTitle(String). Note: the title component has to be set when the overlay is closed.
        Parameters:
        title - the title component to set, or null to remove any previously set title
        See Also:
        getTitle()
      • getTitle

        public Component getTitle()
        Returns custom title component which was set via setTitle(Component)
        Returns:
        the title component, null if nothing was set
      • getDescription

        @Synchronize(property="description",
                     value="description-changed")
        public String getDescription()
        Returns:
        the value of description property