Class ViewBuilder<V extends ViewBuilder>

    • Method Detail

      • setWindowTitle

        public V setWindowTitle​(java.lang.String title)
        Sets the title for the window.
        Parameters:
        title - Title for the window.
        Returns:
        Instance of view builder to chain calls.
      • setViewStateListener

        public V setViewStateListener​(ViewStateListener listener)
        Sets the view state listener for the window, that will be invoked when view is opened and closed.
        Parameters:
        listener - Listener object.
        Returns:
        Instance of view builder to chain calls.
      • setUiActionListener

        public V setUiActionListener​(UiActionListener uiActionListener)
        Sets the UI action listener. It allows you to track actions done by users while using GetSocial UI. Also, you can allow or disallow users to perform some action. To perform an action, in UI action listener call UiAction.Pending.proceed(). Without calling it, action won't be invoked. If you don't set a listener, all actions will be performed.
        Parameters:
        uiActionListener - instance of UiActionListener.
        Returns:
        Instance of view builder to chain calls.
      • setCustomErrorMessageProvider

        public V setCustomErrorMessageProvider​(CustomErrorMessageProvider customErrorMessageProvider)
        Sets a custom error message provider.
        Parameters:
        customErrorMessageProvider - instance of CustomErrorMessageProvider.
        Returns:
        Custom error message or the received error message.
      • show

        public boolean show()
        Show window on the screen.
        Returns:
        true if GetSocial window was shown on the screen, false otherwise.