Demonstrates a "hand-made" way how to connect a master list with a bound
details view. It builds a JList of Albums with an attached details panel
that presents the current Album selection. The details panel's components
are bound to the domain using ValueModels returned by a PresentationModel.
This example handles selection changes with a custom ListSelectionListener,
the AlbumSelectionHandler, that sets the JList's selected values as new
bean of the details PresentationModel. A simpler means to achieve the same
effect is demonstrated by the MasterDetailsSelectionInListExample that uses
the SelectionInList as bean channel for the details PresentationModel.
Another variant of this example is the MasterDetailsCopyingExample
that copies the details data on list selection changes, instead of binding
the details UI components to the details PresentationModel's ValueModels.
author: Karsten Lentzsch version: $Revision: 1.14 $ See Also: com.jgoodies.binding.PresentationModel See Also: com.jgoodies.binding.tutorial.basics.MasterDetailsCopyingExample See Also: com.jgoodies.binding.tutorial.basics.MasterDetailsSelectionInListExample |