de.kleopatra.view.binding
Class DefaultBindingMap.ListBindingHandler

java.lang.Object
  extended byde.kleopatra.view.binding.DefaultBindingMap.ListBindingHandler
All Implemented Interfaces:
BindingHandler
Enclosing class:
DefaultBindingMap

public static class DefaultBindingMap.ListBindingHandler
extends java.lang.Object
implements BindingHandler

Handler for Lists.


Constructor Summary
DefaultBindingMap.ListBindingHandler()
           
 
Method Summary
 void bind(javax.swing.JComponent container, BindingMetaData metaData, ValueModel listHolder)
          Creates a SelectionInList out of listHolder (and selectionValueModel, if provided by the metaData).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBindingMap.ListBindingHandler

public DefaultBindingMap.ListBindingHandler()
Method Detail

bind

public void bind(javax.swing.JComponent container,
                 BindingMetaData metaData,
                 ValueModel listHolder)
Creates a SelectionInList out of listHolder (and selectionValueModel, if provided by the metaData). The JList is bound to the sil using the SelectionInList's list model as list data provider and the SelectionInList's selection index holder for the selection model.

NOTE: the listHolder must vend a list-like value as accepted by a SelectionInList.

Specified by:
bind in interface BindingHandler
Parameters:
container - the parent to search
metaData - binding infos
listHolder - the model to keep in synch with the found component's data.


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.