Package org.nuiton.jaxx.validator.swing
Class SwingListValidator<B>
- java.lang.Object
-
- org.nuiton.validator.bean.AbstractValidator<O>
-
- org.nuiton.validator.bean.list.BeanListValidator<B>
-
- org.nuiton.jaxx.validator.swing.SwingListValidator<B>
-
public class SwingListValidator<B> extends org.nuiton.validator.bean.list.BeanListValidator<B>Created on 9/17/14.- Since:
- 2.13
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuiton.validator.bean.list.BeanListValidator
org.nuiton.validator.bean.list.BeanListValidator.NuitonValidatorContext<O extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected JComponenteditor
-
Constructor Summary
Constructors Constructor Description SwingListValidator(org.nuiton.validator.NuitonValidatorProvider validatorProvider, Class<B> beanClass, String context)SwingListValidator(org.nuiton.validator.NuitonValidatorProvider validatorProvider, Class<B> beanClass, String context, org.nuiton.validator.NuitonValidatorScope... scopes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponentgetEditor()static <O> SwingListValidator<O>newSwingValidator(Class<O> type, String context, org.nuiton.validator.NuitonValidatorScope... scopes)Obtain a newSwingListValidatorfor the given parameters.static <O> SwingListValidator<O>newSwingValidator(String providerName, Class<O> type, String context, org.nuiton.validator.NuitonValidatorScope... scopes)Obtain a newSwingListValidatorfor the given parameters.voidsetEditor(JComponent editor)-
Methods inherited from class org.nuiton.validator.bean.AbstractValidator
addPropertyChangeListener, addPropertyChangeListener, containsField, firePropertyChange, getContext, getEffectiveFields, getEffectiveFields, getEffectiveScopes, getModel, getScopes, getType, isCanValidate, isChanged, isValid, removePropertyChangeListener, removePropertyChangeListener, setCanValidate, setChanged, setContext, setScopes, setValid
-
Methods inherited from class org.nuiton.validator.bean.list.BeanListValidator
addAllBeans, addBean, addBeanListValidatorListener, convert, doValidate, doValidate, fireFieldChanged, getBeanListValidatorListeners, getBeans, getContext, getDelegate, getHighestScope, hasErrors, hasFatalErrors, hasInfos, hasWarnings, isValid, isValid0, mergeMessages, newValidator, newValidator, rebuildDelegateValidator, removeAllBeans, removeAllBeans, removeBean, removeBeanListValidatorListener, validate, validate
-
-
-
-
Field Detail
-
editor
protected JComponent editor
-
-
Method Detail
-
newSwingValidator
public static <O> SwingListValidator<O> newSwingValidator(Class<O> type, String context, org.nuiton.validator.NuitonValidatorScope... scopes) throws NullPointerException
Obtain a newSwingListValidatorfor the given parameters. Note: It will use the default provider ofNuitonValidator- Type Parameters:
O- type of bean to validate- Parameters:
type- type of bean to validatecontext- context of validationscopes- authorized scopes (ifnull, will use all scopes)- Returns:
- the new instanciated
BeanListValidator. - Throws:
NullPointerException- if type isnull- See Also:
NuitonValidatorFactory.getDefaultProviderName()
-
newSwingValidator
public static <O> SwingListValidator<O> newSwingValidator(String providerName, Class<O> type, String context, org.nuiton.validator.NuitonValidatorScope... scopes) throws NullPointerException
Obtain a newSwingListValidatorfor the given parameters. Note: It will use the provider ofNuitonValidatordefined by theproviderName.- Type Parameters:
O- type of bean to validate- Parameters:
providerName- name ofNuitonValidatorto usetype- type of bean to validatecontext- context of validationscopes- authorized scopes (ifnull, will use all scopes)- Returns:
- the new instanciated
BeanListValidator. - Throws:
NullPointerException- if type isnull- See Also:
NuitonValidatorFactory.getProvider(String)
-
getEditor
public JComponent getEditor()
-
setEditor
public void setEditor(JComponent editor)
-
-