Package org.opencms.gwt.client.ui
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
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
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the width of the text box labels.protected com.google.gwt.user.client.ui.LabelLabel for displaying error messages.protected RunnableAction to execute if the password was successfully changed.protected CmsTextBoxInput field to the new password.protected CmsTextBoxInput field for the new password confirmation.protected com.google.gwt.user.client.ui.LabelLabel for the new password confirmation.protected com.google.gwt.user.client.ui.LabelLabel for the new password.protected CmsTextBoxInput field for the old password.protected com.google.gwt.user.client.ui.LabelLabel for the old password.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTries to change the password using the data entered by the user.static voidOpens a popup dialog for changing the password.protected voidDisplays 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, setWidgetMethods 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, unsinkEventsMethods 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
-
Field Details
-
LABEL_WIDTH
Constant for the width of the text box labels.- See Also:
-
m_errorLabel
Label for displaying error messages. -
m_finishAction
Action to execute if the password was successfully changed. -
m_newPassword1
Input field to the new password. -
m_newPassword2
Input field for the new password confirmation. -
m_newPasswordConfirmLabel
Label for the new password confirmation. -
m_newPasswordLabel
Label for the new password. -
m_oldPassword
Input field for the old password. -
m_oldPasswordLabel
Label for the old password.
-
-
Constructor Details
-
CmsChangePasswordWidget
Creates a new instance.- Parameters:
finishAction- the action to execute when the password is successfully changed
-
-
Method Details
-
showDialog
Opens a popup dialog for changing the password. -
changePassword
Tries to change the password using the data entered by the user. -
showError
Displays an error message.- Parameters:
error- the error message to display
-