Module wicket.bootstrap.extensions
Class AbstractValidationConfig
java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.AbstractValidationConfig
- All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config,Serializable,IClusterable
- Direct Known Subclasses:
SimpleValidationConfig,TooltipValidationConfig
public abstract class AbstractValidationConfig
extends de.agilecoders.wicket.jquery.AbstractConfig
Base configuration for validation behaviors.
Config contains two parameters:
appendToParent flag - target for validation message. If appendToParent is set to true message will be append to input parent element in DOM. Otherwise message will be append to input element. By default appendToParent is false
errorClass - is css validation class which appends to parent element in DOM. By default uses bootstrap "is-invalid" class.
- Since:
- 08.11.14
- Author:
- Alexey Volkov
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedsets flag of append to parent to false -
Method Summary
Modifier and TypeMethodDescriptionappendToParent(boolean appendToParent) booleanwithErrorClass(String errorClass) Methods inherited from class de.agilecoders.wicket.jquery.AbstractConfig
all, contains, get, getString, isEmpty, newKey, put, remove, toJsonString, wrapMethods inherited from class de.agilecoders.wicket.jquery.CombinableConfig
combine, withFallback
-
Constructor Details
-
AbstractValidationConfig
protected AbstractValidationConfig()sets flag of append to parent to false
-
-
Method Details
-
appendToParent
- Parameters:
appendToParent- appendToParent- Returns:
- current instance
-
isAppendToParent
public boolean isAppendToParent()- Returns:
- append to parent flag
-
withErrorClass
- Parameters:
errorClass- error class- Returns:
- current instance
-
getErrorClass
- Returns:
- error class
-