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 nullpublic void to(JTable table)
ListBindingBuilder
Example:
binder.bind(contactListModel, contactListSelectionModel).to(contactTable);
to in interface ListBindingBuildertable - 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 ListBindingBuilderlist - the component to set the data and selection model inCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.