Package org.opencms.acacia.client
Class CmsValidationHandler
java.lang.Object
org.opencms.acacia.client.CmsValidationHandler
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasValueChangeHandlers<CmsValidationContext>,com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.acacia.shared.CmsEntity>,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers
public final class CmsValidationHandler
extends Object
implements com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.acacia.shared.CmsEntity>, com.google.gwt.event.logical.shared.HasValueChangeHandlers<CmsValidationContext>
Validation handler.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThe validation timer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <H extends com.google.gwt.event.shared.EventHandler>
com.google.gwt.event.shared.HandlerRegistrationaddHandler(H handler, com.google.gwt.event.shared.GwtEvent.Type<H> type) Adds this handler to the widget.com.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<CmsValidationContext> handler) voidclear()Destroys the current handler instance.static voidclearValidation(I_CmsAttributeHandler handler) Clears validation message for an attribute handler.voiddisplayValidation(String entityId, org.opencms.acacia.shared.CmsValidationResult validationResult) Displays the given error messages within the form.voidfireEvent(com.google.gwt.event.shared.GwtEvent<?> event) Returns the validation context.voidonValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<org.opencms.acacia.shared.CmsEntity> event) voidregisterEntity(org.opencms.acacia.shared.CmsEntity entity) Registers the validation handler for the given entity.voidsetContentService(org.opencms.acacia.shared.rpc.I_CmsContentServiceAsync contentService) Sets the content service used for validation.voidsetFormTabPanel(CmsTabbedPanel<?> tabPanel) Sets the form tabbed panel.voidsetPaused(boolean paused, org.opencms.acacia.shared.CmsEntity entity) Sets the validation to pause.voidsetRootHandler(CmsRootHandler rootHandler) Sets the root attribute handler.voidsetSynchronizedValues(Collection<String> synchronizedValues) voidupdateValidationContext(org.opencms.acacia.shared.CmsValidationResult validationResult) Update the validation context, i.e., replace it with the one generated from the validation result.protected voidvalidate(org.opencms.acacia.shared.CmsEntity entity) Validates the given entity.
-
Constructor Details
-
CmsValidationHandler
public CmsValidationHandler()
-
-
Method Details
-
clearValidation
Clears validation message for an attribute handler.- Parameters:
handler- the handler for which to clear the validation message
-
clear
Destroys the current handler instance. -
getValidationContext
Returns the validation context.- Returns:
- the validation context
-
setFormTabPanel
Sets the form tabbed panel.- Parameters:
tabPanel- the tabbed panel
-
setRootHandler
Sets the root attribute handler.- Parameters:
rootHandler- the root attribute handler
-
setSynchronizedValues
-