| Demonstrates an elegant means how to defer updates of a details view
after selecting an element in a master list. This can be useful
if changing the details requires time consuming additional operations,
for example a database lookup, a heavy computation, or a remote access.
This class 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.
The master JList is bound to a SelectionInList that holds the list of Albums
and the currently selected Album. The SelectionInList is used as bean channel
for the details PresentationModel. And so, whenever the SelectionInList's
selection changes, the details PresentationModel will automatically update
the bean used to display the details.
This example implements the deferred details update by using a delayed
version of the SelectionInList as the presentation model's bean channel.
Changes in the SelectionInList's selection are held back for a specified
delay before the selection becomes the presentation model's new bean.
author: Karsten Lentzsch version: $Revision: 1.10 $ See Also: MasterDetailsDelayedReadExample.initComponents() See Also: DelayedReadValueModel See Also: com.jgoodies.binding.PresentationModel See Also: com.jgoodies.binding.tutorial.basics.MasterDetailsSelectionInListExample |