Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.jgoodies.binding.binder
Class ListBindingBuilderImpl

    java.lang.Object
      com.jgoodies.binding.binder.ListBindingBuilderImpl

All Implemented Interfaces:
  ListBindingBuilder

    public class ListBindingBuilderImpl

extends Object
implements ListBindingBuilder

Holds a ListModel and ListSelectionModel that can be bound to a list or table.

Since:
  2.3
Version:
  $Revision: 1.2 $
Author:
  Karsten Lentzsch

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

### ListBindingBuilderImpl

    public ListBindingBuilderImpl(ListModel listModel,
                                  ListSelectionModel listSelectionModel)

  Creates a ListBindingBuilderImpl for the given list model and list selection model.

  Parameters:
    `listModel` - provides the data to be bound to a component
    `listSelectionModel` - provides the selection model to be bound to a component
  Throws:
    `NullPointerException` - if `listModel` or `listSelectionModel` is `null`

Method Detail

### to

    public void to(JTable table)

  Description copied from interface: `ListBindingBuilder`
  Sets this builder's ListModel and ListSelectionModel in the given table. As a precondition, the table's model must implement ListModelBindable, so this builder's ListModel can be set in the TableModel.

  Example:
  `binder.bind(contactSelectionInList).to(contactTable);`

  Specified by:
    `to` in interface `ListBindingBuilder`
  Parameters:
    `table` - the component to set the data and selection model in

### to

    public void to(JList list)

  Description copied from interface: `ListBindingBuilder`
  Sets this builder's ListModel and ListSelectionModel in the given list.

  Example:
  `binder.bind(contactSelectionInList).to(contactList);`

  Specified by:
    `to` in interface `ListBindingBuilder`
  Parameters:
    `list` - the component to set the data and selection model in

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2011 JGoodies Karsten Lentzsch. All Rights Reserved.