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
Modifier and TypeClassDescriptionprotected class
The validation timer. -
Constructor Summary
-
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.HandlerRegistration
addValueChangeHandler
(com.google.gwt.event.logical.shared.ValueChangeHandler<CmsValidationContext> handler) void
clear()
Destroys the current handler instance.static void
clearValidation
(I_CmsAttributeHandler handler) Clears validation message for an attribute handler.void
displayValidation
(String entityId, org.opencms.acacia.shared.CmsValidationResult validationResult) Displays the given error messages within the form.void
fireEvent
(com.google.gwt.event.shared.GwtEvent<?> event) Returns the validation context.void
onValueChange
(com.google.gwt.event.logical.shared.ValueChangeEvent<org.opencms.acacia.shared.CmsEntity> event) void
registerEntity
(org.opencms.acacia.shared.CmsEntity entity) Registers the validation handler for the given entity.void
setContentService
(org.opencms.acacia.shared.rpc.I_CmsContentServiceAsync contentService) Sets the content service used for validation.void
setFormTabPanel
(CmsTabbedPanel<?> tabPanel) Sets the form tabbed panel.void
setPaused
(boolean paused, org.opencms.acacia.shared.CmsEntity entity) Sets the validation to pause.void
setRootHandler
(CmsRootHandler rootHandler) Sets the root attribute handler.protected void
validate
(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
-