|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
com.jgoodies.validation.view.ValidationResultListAdapter
public final class ValidationResultListAdapter
Converts a ValidationResultModel into a ListModel.
Useful to bind JLists and JTables to a
validation result model.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ValidationResultListAdapter(ValidationResultModel model)
Constructs a ValidationResultListAdapter that converts the given model into a ListModel. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getElementAt(int index)
Returns the validation result message at the given index. |
int |
getSize()
Returns the number of validation result messages. |
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationResultListAdapter(ValidationResultModel model)
model - the model that provides the validation result| Method Detail |
|---|
public java.lang.Object getElementAt(int index)
index - the index of the message to return
ListModel.getElementAt(int)public int getSize()
ListModel.getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||