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
public class CmsChangePasswordWidget extends com.google.gwt.user.client.ui.Composite
Widget used to change the current user's password.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LABEL_WIDTH
Constant for the width of the text box labels.protected com.google.gwt.user.client.ui.Label
m_errorLabel
Label for displaying error messages.protected java.lang.Runnable
m_finishAction
Action to execute if the password was successfully changed.protected CmsTextBox
m_newPassword1
Input field to the new password.protected CmsTextBox
m_newPassword2
Input field for the new password confirmation.protected com.google.gwt.user.client.ui.Label
m_newPasswordConfirmLabel
Label for the new password confirmation.protected com.google.gwt.user.client.ui.Label
m_newPasswordLabel
Label for the new password.protected CmsTextBox
m_oldPassword
Input field for the old password.protected com.google.gwt.user.client.ui.Label
m_oldPasswordLabel
Label for the old password.
-
Constructor Summary
Constructors Constructor Description CmsChangePasswordWidget(java.lang.Runnable finishAction)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changePassword()
Tries to change the password using the data entered by the user.static void
showDialog()
Opens a popup dialog for changing the password.protected void
showError(java.lang.String error)
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
-
-
-
-
Field Detail
-
LABEL_WIDTH
public static final java.lang.String LABEL_WIDTH
Constant for the width of the text box labels.- See Also:
- Constant Field Values
-
m_errorLabel
@UiField protected com.google.gwt.user.client.ui.Label m_errorLabel
Label for displaying error messages.
-
m_finishAction
protected java.lang.Runnable 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 Detail
-
CmsChangePasswordWidget
public CmsChangePasswordWidget(java.lang.Runnable finishAction)
Creates a new instance.- Parameters:
finishAction
- the action to execute when the password is successfully changed
-
-
Method Detail
-
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(java.lang.String error)
Displays an error message.- Parameters:
error
- the error message to display
-
-