Class DefaultPasswordEditor
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.String>
-
- com.hybris.cockpitng.editor.defaultpassword.DefaultPasswordEditor
-
- All Implemented Interfaces:
CockpitEditorRenderer<java.lang.String>
public class DefaultPasswordEditor extends AbstractCockpitEditorRenderer<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCONFIRM_LABELprotected static java.lang.StringENTER_PASSWORDprotected static java.lang.StringHINT_LABELprotected static java.lang.StringPASSWORD_TYPEstatic java.lang.StringPASSWORDS_NOT_MATCH_LABELprotected static java.lang.StringSETTING_WITH_CONFIRMATIONprotected static java.lang.StringYE_PASSWORD_NO_MATCH-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description DefaultPasswordEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisReadOnly(org.zkoss.zk.ui.Component parent)protected voidonPasswordChangeAttempt(org.zkoss.zul.Textbox passwordChanged, org.zkoss.zul.Textbox password, EditorListener<java.lang.String> listener)protected voidonPasswordChangeAttempt(org.zkoss.zul.Textbox passwordChanged, org.zkoss.zul.Textbox password, EditorListener<java.lang.String> listener, org.zkoss.zul.Label noMatchPasswordLabel)voidrender(org.zkoss.zk.ui.Component parent, EditorContext<java.lang.String> context, EditorListener<java.lang.String> listener)Creates a new editor component and attaches it to the specifiedComponentcomponent.protected booleanwithConfirmation(EditorContext<java.lang.String> context)-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
-
-
-
Field Detail
-
PASSWORD_TYPE
protected static final java.lang.String PASSWORD_TYPE
- See Also:
- Constant Field Values
-
HINT_LABEL
protected static final java.lang.String HINT_LABEL
- See Also:
- Constant Field Values
-
CONFIRM_LABEL
protected static final java.lang.String CONFIRM_LABEL
- See Also:
- Constant Field Values
-
ENTER_PASSWORD
protected static final java.lang.String ENTER_PASSWORD
- See Also:
- Constant Field Values
-
YE_PASSWORD_NO_MATCH
protected static final java.lang.String YE_PASSWORD_NO_MATCH
- See Also:
- Constant Field Values
-
SETTING_WITH_CONFIRMATION
protected static final java.lang.String SETTING_WITH_CONFIRMATION
- See Also:
- Constant Field Values
-
PASSWORDS_NOT_MATCH_LABEL
public static final java.lang.String PASSWORDS_NOT_MATCH_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, EditorContext<java.lang.String> context, EditorListener<java.lang.String> listener)Description copied from interface:CockpitEditorRendererCreates a new editor component and attaches it to the specifiedComponentcomponent.- Parameters:
parent- parent component the editor should be attached tocontext- the context for the editor creationlistener- the listener to notify the rest of the world about value changes and other events
-
onPasswordChangeAttempt
protected void onPasswordChangeAttempt(org.zkoss.zul.Textbox passwordChanged, org.zkoss.zul.Textbox password, EditorListener<java.lang.String> listener)
-
onPasswordChangeAttempt
protected void onPasswordChangeAttempt(org.zkoss.zul.Textbox passwordChanged, org.zkoss.zul.Textbox password, EditorListener<java.lang.String> listener, org.zkoss.zul.Label noMatchPasswordLabel)
-
isReadOnly
protected boolean isReadOnly(org.zkoss.zk.ui.Component parent)
-
withConfirmation
protected boolean withConfirmation(EditorContext<java.lang.String> context)
-
-