public class SwingListValidator<B>
extends org.nuiton.validator.bean.list.BeanListValidator<B>
| Modifier and Type | Field and Description |
|---|---|
protected JComponent |
editor |
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
JComponent |
getEditor() |
static <O> SwingListValidator<O> |
newSwingValidator(Class<O> type,
String context,
org.nuiton.validator.NuitonValidatorScope... scopes)
Obtain a new
SwingListValidator for the given parameters. |
static <O> SwingListValidator<O> |
newSwingValidator(String providerName,
Class<O> type,
String context,
org.nuiton.validator.NuitonValidatorScope... scopes)
Obtain a new
SwingListValidator for the given parameters. |
void |
setEditor(JComponent editor) |
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, validateaddPropertyChangeListener, addPropertyChangeListener, containsField, firePropertyChange, getContext, getEffectiveFields, getEffectiveFields, getEffectiveScopes, getModel, getScopes, getType, isCanValidate, isChanged, isValid, removePropertyChangeListener, removePropertyChangeListener, setCanValidate, setChanged, setContext, setScopes, setValidprotected JComponent editor
public SwingListValidator(org.nuiton.validator.NuitonValidatorProvider validatorProvider,
Class<B> beanClass,
String context)
public static <O> SwingListValidator<O> newSwingValidator(Class<O> type, String context, org.nuiton.validator.NuitonValidatorScope... scopes) throws NullPointerException
SwingListValidator for the given parameters.
Note: It will use the default provider of NuitonValidatorO - type of bean to validatetype - type of bean to validatecontext - context of validationscopes - authorized scopes (if null, will use all scopes)BeanListValidator.NullPointerException - if type is nullNuitonValidatorFactory.getDefaultProviderName()public static <O> SwingListValidator<O> newSwingValidator(String providerName, Class<O> type, String context, org.nuiton.validator.NuitonValidatorScope... scopes) throws NullPointerException
SwingListValidator for the given parameters.
Note: It will use the provider of NuitonValidator
defined by the providerName.O - type of bean to validateproviderName - name of NuitonValidator to usetype - type of bean to validatecontext - context of validationscopes - authorized scopes (if null, will use all scopes)BeanListValidator.NullPointerException - if type is nullNuitonValidatorFactory.getProvider(String)public JComponent getEditor()
public void setEditor(JComponent editor)
Copyright © 2008–2018 Ultreia.io. All rights reserved.