|
||||||||||
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(List<?> data,
ListSelectionModel selectionModel)
|
|
ListBindingBuilderImpl(ListModel dataModel,
ListSelectionModel selectionModel)
Creates a ListBindingBuilderImpl for the given list model and list selection model. |
|
ListBindingBuilderImpl(Object[] data,
ListSelectionModel selectionModel)
|
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(Object[] data, ListSelectionModel selectionModel)
public ListBindingBuilderImpl(List<?> data, ListSelectionModel selectionModel)
public ListBindingBuilderImpl(ListModel dataModel, ListSelectionModel selectionModel)
dataModel
- provides the data to be bound to a componentselectionModel
- provides the selection model to be bound
to a component
NullPointerException
- if dataModel
or selectionModel
is null
Method Detail |
---|
public void to(JTable table)
ListBindingBuilder
Example:
binder.bind(contactSelectionInList).to(contactTable);
to
in interface ListBindingBuilder
table
- the component to set the data and selection model inpublic void to(JList list)
ListBindingBuilder
Example:
binder.bind(contactSelectionInList).to(contactList);
to
in interface ListBindingBuilder
list
- 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 |