jaxx.runtime.validator.swing
Class SwingValidatorMessageListModel
java.lang.Object
javax.swing.AbstractListModel
jaxx.runtime.validator.swing.SwingValidatorMessageListModel
- All Implemented Interfaces:
- Serializable, EventListener, ListModel, BeanValidatorListener
public class SwingValidatorMessageListModel
- extends AbstractListModel
- implements BeanValidatorListener
The model of the list of validation's messages
- Author:
- chemit
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validators
protected transient List<SwingValidator<?>> validators
- list of registred validators
data
protected List<SwingValidatorMessage> data
- list of messages actual displayed
SwingValidatorMessageListModel
public SwingValidatorMessageListModel()
isEmpty
public boolean isEmpty()
registerValidator
public void registerValidator(SwingValidator<?> validator)
clear
public void clear()
getSize
public int getSize()
- Specified by:
getSize in interface ListModel
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt in interface ListModel
onFieldChanged
public void onFieldChanged(BeanValidatorEvent event)
- Description copied from interface:
BeanValidatorListener
- Invoked when a validator detects some changes on a field.
- Specified by:
onFieldChanged in interface BeanValidatorListener
- Parameters:
event - the event
ensureRowIndex
protected void ensureRowIndex(int index)
throws ArrayIndexOutOfBoundsException
- Throws:
ArrayIndexOutOfBoundsException
addMessages
protected void addMessages(SwingValidator<?> validator,
BeanValidatorField<?> field,
BeanValidatorScope scope,
boolean sort,
String... messages)
removeMessages
protected void removeMessages(SwingValidator<?> validator,
BeanValidatorField<?> field,
BeanValidatorScope scope,
boolean notify,
String... messages)
Copyright © 2008-2010 CodeLutin. All Rights Reserved.