|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.binding.binder.ListBindingBuilderImpl
public class ListBindingBuilderImpl
Holds a ListModel and ListSelectionModel that can be bound to a list or table.
| Constructor Summary | |
|---|---|
ListBindingBuilderImpl(ListModel listModel,
ListSelectionModel listSelectionModel)
Creates a ListBindingBuilderImpl for the given list model and list selection model. |
|
| Method Summary | |
|---|---|
void |
to(JList list)
Sets this builder's ListModel and ListSelectionModel in the given list. |
void |
to(JTable table)
Sets this builder's ListModel and ListSelectionModel in the given table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListBindingBuilderImpl(ListModel listModel,
ListSelectionModel listSelectionModel)
listModel - provides the data to be bound to a componentlistSelectionModel - provides the selection model to be bound
to a component
NullPointerException - if listModel
or listSelectionModel is null| Method Detail |
|---|
public void to(JTable table)
ListBindingBuilder
Example:
binder.bind(contactSelectionInList).to(contactTable);
to in interface ListBindingBuildertable - the component to set the data and selection model inpublic void to(JList list)
ListBindingBuilder
Example:
binder.bind(contactSelectionInList).to(contactList);
to in interface ListBindingBuilderlist - the component to set the data and selection model in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||