public class ListBindingBuilderImpl extends Object implements ListBindingBuilder
Constructor and Description |
---|
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) |
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 componentNullPointerException
- if dataModel
or selectionModel
is null
public void to(JTable table)
ListBindingBuilder
Example:
binder.bind(contactListModel, contactListSelectionModel).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(contactListModel, contactListSelectionModel).to(contactList);
to
in interface ListBindingBuilder
list
- the component to set the data and selection model inCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.