Package com.saperion.ngc.dialogs
Class UserProfileDialog
- java.lang.Object
- 
- org.zkoss.zk.ui.event.GenericEventListener
- 
- org.zkoss.zk.ui.util.GenericComposer<T>
- 
- org.zkoss.zk.ui.util.GenericAutowireComposer<T>
- 
- org.zkoss.zk.ui.util.GenericForwardComposer
- 
- com.saperion.ngc.dialogs.UserProfileDialog
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- org.zkoss.zk.ui.event.EventListener,- org.zkoss.zk.ui.event.SerializableEventListener,- org.zkoss.zk.ui.util.ComponentActivationListener,- org.zkoss.zk.ui.util.ComponentCloneListener,- org.zkoss.zk.ui.util.Composer,- org.zkoss.zk.ui.util.ComposerExt
 
 public class UserProfileDialog extends org.zkoss.zk.ui.util.GenericForwardComposerUser-profile dialog.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringARG_EVENT_CHILD_HANDLERTheEventChildHandlerused to process events.static java.lang.StringARG_OK_EVENT_LISTENERListener called when user clicked OK.static java.lang.StringARG_PASSWORD_EXPIRED_MODEForce the user to change password, disables other settings.
 - 
Constructor SummaryConstructors Constructor Description UserProfileDialog()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoAfterCompose(org.zkoss.zk.ui.Component comp)java.lang.BooleangetIsPresent()Gets the presence-property.booleangetPasswordChangeDisabled()Checks if changing the password is disabled.java.lang.StringgetPasswordConstraint()Gets the password constraint.booleangetSubstituteAccessEnabled()booleanisPasswordChanged()booleanisPresenceChanged()booleanisPresenceDisabled()Returns a boolean value that tells you whether the the workflow feature is enabled or not.booleanisSubstituteAccessChanged()booleanisSubstituteChanged()voidonChanging$upd_currentPassword()voidonChanging$upd_newPassword()voidonChanging$upd_repeatNewPassword(org.zkoss.zk.ui.event.InputEvent event)OnChanging handler for repeat-new-password box.voidonCheck$upd_presenceCheckbox(org.zkoss.zk.ui.event.CheckEvent event)OnCheck handler for presence checkbox.voidonCheck$upd_substituteAccessCheckbox(org.zkoss.zk.ui.event.CheckEvent event)voidonClick$upd_cancelButton()OnClick handler for cancel-button.voidonClick$upd_okButton()A click on the okay button starts validating all input fields If an error occurs during field validation the window stays open and shows the error messages next to the erroneous input fields.voidonClick$upd_selectSubstituteButton(org.zkoss.zk.ui.event.Event event)Display the User Selection dialogue.voidsetIsPresent(boolean isPresent)Sets the presence-property.voidsetPasswordChanged(boolean passwordChanged)voidsetPasswordChangeDisabled(boolean disabled)Sets if changing the password is disabled.voidsetPasswordConstraint(java.lang.String constraint)Sets the password constraint.voidsetPresenceChanged(boolean presenceChanged)voidsetSubstituteAccessChanged(boolean substituteAccessChanged)voidsetSubstituteAccessEnabled(boolean substituteAccessEnabled)voidsetSubstituteChanged(boolean substituteChanged)static voidshow(org.zkoss.zk.ui.Component parent, java.util.Map<java.lang.String,java.lang.Object> args)Shows the dialog.- 
Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposeralert, didActivate, getPage, willClone, willPassivate
 - 
Methods inherited from class org.zkoss.zk.ui.util.GenericComposerdoBeforeCompose, doBeforeComposeChildren, doCatch, doFinally
 
- 
 
- 
- 
- 
Field Detail- 
ARG_EVENT_CHILD_HANDLERpublic static final java.lang.String ARG_EVENT_CHILD_HANDLER TheEventChildHandlerused to process events.- See Also:
- Constant Field Values
 
 - 
ARG_PASSWORD_EXPIRED_MODEpublic static final java.lang.String ARG_PASSWORD_EXPIRED_MODE Force the user to change password, disables other settings.- See Also:
- Constant Field Values
 
 - 
ARG_OK_EVENT_LISTENERpublic static final java.lang.String ARG_OK_EVENT_LISTENER Listener called when user clicked OK.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
showpublic static void show(org.zkoss.zk.ui.Component parent, java.util.Map<java.lang.String,java.lang.Object> args)Shows the dialog. Possible keys for the args map are:- Parameters:
- parent- parent component for the dialog (usually the root component)
- args- arguments
 
 - 
doAfterComposepublic void doAfterCompose(org.zkoss.zk.ui.Component comp) throws java.lang.Exception- Specified by:
- doAfterComposein interface- org.zkoss.zk.ui.util.Composer
- Overrides:
- doAfterComposein class- org.zkoss.zk.ui.util.GenericForwardComposer
- Throws:
- java.lang.Exception
- See Also:
- GenericForwardComposer.doAfterCompose(org.zkoss.zk.ui.Component)
 
 - 
onClick$upd_okButtonpublic void onClick$upd_okButton() A click on the okay button starts validating all input fields If an error occurs during field validation the window stays open and shows the error messages next to the erroneous input fields. Only if all steps of validation were successful the password will be changed and the dialog closes.
 - 
onClick$upd_cancelButtonpublic void onClick$upd_cancelButton() OnClick handler for cancel-button.
 - 
onChanging$upd_repeatNewPasswordpublic void onChanging$upd_repeatNewPassword(org.zkoss.zk.ui.event.InputEvent event) OnChanging handler for repeat-new-password box.- Parameters:
- event- the event
 
 - 
onChanging$upd_newPasswordpublic void onChanging$upd_newPassword() 
 - 
onChanging$upd_currentPasswordpublic void onChanging$upd_currentPassword() 
 - 
onCheck$upd_substituteAccessCheckboxpublic void onCheck$upd_substituteAccessCheckbox(org.zkoss.zk.ui.event.CheckEvent event) 
 - 
onClick$upd_selectSubstituteButtonpublic void onClick$upd_selectSubstituteButton(org.zkoss.zk.ui.event.Event event) Display the User Selection dialogue.- Parameters:
- event- Event that is thrown onClick to the select substitute button.
 
 - 
onCheck$upd_presenceCheckboxpublic void onCheck$upd_presenceCheckbox(org.zkoss.zk.ui.event.CheckEvent event) OnCheck handler for presence checkbox.- Parameters:
- event- the event
 
 - 
getIsPresentpublic java.lang.Boolean getIsPresent() Gets the presence-property.- Returns:
- if user is present
 
 - 
setIsPresentpublic void setIsPresent(boolean isPresent) Sets the presence-property.- Parameters:
- isPresent- if user is present or not
 
 - 
getPasswordConstraintpublic java.lang.String getPasswordConstraint() Gets the password constraint.- Returns:
- the password constraint
 
 - 
setPasswordConstraintpublic void setPasswordConstraint(java.lang.String constraint) Sets the password constraint.- Parameters:
- constraint- the new password constraint
 
 - 
setPasswordChangeDisabledpublic void setPasswordChangeDisabled(boolean disabled) Sets if changing the password is disabled.- Parameters:
- disabled- if changing the password is disabled or not
 
 - 
getPasswordChangeDisabledpublic boolean getPasswordChangeDisabled() Checks if changing the password is disabled.- Returns:
- if changing the password is disabled or not
 
 - 
isPresenceDisabledpublic boolean isPresenceDisabled() Returns a boolean value that tells you whether the the workflow feature is enabled or not. It is used to disable checkbox to set the current presence state.- Returns:
- true if the workflow feature is disabled, false else.
 
 - 
setSubstituteAccessEnabledpublic void setSubstituteAccessEnabled(boolean substituteAccessEnabled) 
 - 
getSubstituteAccessEnabledpublic boolean getSubstituteAccessEnabled() 
 - 
isSubstituteAccessChangedpublic boolean isSubstituteAccessChanged() 
 - 
setSubstituteAccessChangedpublic void setSubstituteAccessChanged(boolean substituteAccessChanged) 
 - 
isSubstituteChangedpublic boolean isSubstituteChanged() 
 - 
setSubstituteChangedpublic void setSubstituteChanged(boolean substituteChanged) 
 - 
isPresenceChangedpublic boolean isPresenceChanged() 
 - 
setPresenceChangedpublic void setPresenceChanged(boolean presenceChanged) 
 - 
isPasswordChangedpublic boolean isPasswordChanged() 
 - 
setPasswordChangedpublic void setPasswordChanged(boolean passwordChanged) 
 
- 
 
-