de.kleopatra.view.binding
Interface BindingHandler

All Known Implementing Classes:
DefaultBindingMap.BooleanBindingHandler, DefaultBindingMap.ComboBoxBindingHandler, DefaultBindingMap.FormattedTextBindingHandler, DefaultBindingMap.ListBindingHandler, DefaultBindingMap.RadioBindingHandler, DefaultBindingMap.SpinnerBindingHandler, DefaultBindingMap.TextBindingHandler

public interface BindingHandler

Handler to find and bind a Component to a ValueModel.

Version:
$Revision: 1.3 $ - $Date: 2004/10/01 12:27:06 $
Author:
(C) 2004 Jeanette Winzenburg, Berlin

Method Summary
 void bind(javax.swing.JComponent container, BindingMetaData metaData, ValueModel valueModel)
          Find a fitting component in container and bind it to model.
 

Method Detail

bind

public void bind(javax.swing.JComponent container,
                 BindingMetaData metaData,
                 ValueModel valueModel)
Find a fitting component in container and bind it to model.

The component is searched by name, checked if appropriate for the type of binding as required by metaData and configured with metaData, if appropriate.

Parameters:
container - the parent to search
metaData - binding infos
valueModel - the model to keep in synch with the found component's data.
Throws:
BindingComponentNotFoundException - if no appropriate component is found.
java.lang.NullPointerException - if any of the parameters is null.


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