Class CmsChangePasswordWidget

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsChangePasswordWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsChangePasswordWidget extends com.google.gwt.user.client.ui.Composite
Widget used to change the current user's password.

  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant for the width of the text box labels.
    protected com.google.gwt.user.client.ui.Label
    Label for displaying error messages.
    protected Runnable
    Action to execute if the password was successfully changed.
    protected CmsTextBox
    Input field to the new password.
    protected CmsTextBox
    Input field for the new password confirmation.
    protected com.google.gwt.user.client.ui.Label
    Label for the new password confirmation.
    protected com.google.gwt.user.client.ui.Label
    Label for the new password.
    protected CmsTextBox
    Input field for the old password.
    protected com.google.gwt.user.client.ui.Label
    Label for the old password.

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Tries to change the password using the data entered by the user.
    static void
    Opens a popup dialog for changing the password.
    protected void
    Displays an error message.

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

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

    • LABEL_WIDTH

      public static final String LABEL_WIDTH
      Constant for the width of the text box labels.
      See Also:
    • m_errorLabel

      @UiField protected com.google.gwt.user.client.ui.Label m_errorLabel
      Label for displaying error messages.
    • m_finishAction

      Action to execute if the password was successfully changed.
    • m_newPassword1

      @UiField(provided=true) protected CmsTextBox m_newPassword1
      Input field to the new password.
    • m_newPassword2

      @UiField(provided=true) protected CmsTextBox m_newPassword2
      Input field for the new password confirmation.
    • m_newPasswordConfirmLabel

      @UiField(provided=true) protected com.google.gwt.user.client.ui.Label m_newPasswordConfirmLabel
      Label for the new password confirmation.
    • m_newPasswordLabel

      @UiField(provided=true) protected com.google.gwt.user.client.ui.Label m_newPasswordLabel
      Label for the new password.
    • m_oldPassword

      @UiField(provided=true) protected CmsTextBox m_oldPassword
      Input field for the old password.
    • m_oldPasswordLabel

      @UiField(provided=true) protected com.google.gwt.user.client.ui.Label m_oldPasswordLabel
      Label for the old password.
  • Constructor Details

    • CmsChangePasswordWidget

      public CmsChangePasswordWidget(Runnable finishAction)
      Creates a new instance.

      Parameters:
      finishAction - the action to execute when the password is successfully changed
  • Method Details

    • showDialog

      public static void showDialog()
      Opens a popup dialog for changing the password.

    • changePassword

      public void changePassword()
      Tries to change the password using the data entered by the user.

    • showError

      protected void showError(String error)
      Displays an error message.

      Parameters:
      error - the error message to display