Class UnifiedValidatorMessage
- java.lang.Object
-
- org.nuiton.jaxx.validator.swing.unified.UnifiedValidatorMessage
-
- All Implemented Interfaces:
Serializable,Comparable<UnifiedValidatorMessage>
public class UnifiedValidatorMessage extends Object implements Comparable<UnifiedValidatorMessage>, Serializable
Created on 8/15/14.- Since:
- 2.10
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Objectbeanthe bean on which event occurs.protected JComponenteditorthe optional field's editorprotected Stringfieldthe field that produce the messageprotected Stringmessagethe label of the message (to be displayed somewhere)protected org.nuiton.validator.NuitonValidatorScopescopethe scope of the messageprotected booleansimpleValidatorprotected org.nuiton.validator.bean.AbstractValidator<?>validatorthe validator that produce the message
-
Constructor Summary
Constructors Constructor Description UnifiedValidatorMessage(org.nuiton.validator.bean.AbstractValidator<?> validator, Object bean, String field, String message, org.nuiton.validator.NuitonValidatorScope scope, JComponent editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(UnifiedValidatorMessage o)booleanequals(Object o)ObjectgetBean()JComponentgetEditor()StringgetField()StringgetI18nError(String error)StringgetMessage()org.nuiton.validator.NuitonValidatorScopegetScope()org.nuiton.validator.bean.AbstractValidator<?>getValidator()inthashCode()booleanisSimpleValidator()StringtoString()
-
-
-
Field Detail
-
validator
protected final org.nuiton.validator.bean.AbstractValidator<?> validator
the validator that produce the message
-
bean
protected final Object bean
the bean on which event occurs.
-
field
protected final String field
the field that produce the message
-
message
protected final String message
the label of the message (to be displayed somewhere)
-
scope
protected final org.nuiton.validator.NuitonValidatorScope scope
the scope of the message
-
editor
protected final JComponent editor
the optional field's editor
-
simpleValidator
protected final boolean simpleValidator
-
-
Constructor Detail
-
UnifiedValidatorMessage
public UnifiedValidatorMessage(org.nuiton.validator.bean.AbstractValidator<?> validator, Object bean, String field, String message, org.nuiton.validator.NuitonValidatorScope scope, JComponent editor)
-
-
Method Detail
-
getValidator
public org.nuiton.validator.bean.AbstractValidator<?> getValidator()
-
getField
public String getField()
-
getScope
public org.nuiton.validator.NuitonValidatorScope getScope()
-
getMessage
public String getMessage()
-
getBean
public Object getBean()
-
getEditor
public JComponent getEditor()
-
isSimpleValidator
public boolean isSimpleValidator()
-
compareTo
public int compareTo(UnifiedValidatorMessage o)
- Specified by:
compareToin interfaceComparable<UnifiedValidatorMessage>
-
-