de.kleopatra.view.binding
Class DefaultBindingMap.BooleanBindingHandler

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

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

Handler for AbstractButtons (CheckBox-like).


Constructor Summary
DefaultBindingMap.BooleanBindingHandler()
           
 
Method Summary
 void bind(javax.swing.JComponent container, BindingMetaData metaData, ValueModel model)
          binds an AbstractButton to the valueModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBindingMap.BooleanBindingHandler

public DefaultBindingMap.BooleanBindingHandler()
Method Detail

bind

public void bind(javax.swing.JComponent container,
                 BindingMetaData metaData,
                 ValueModel model)
binds an AbstractButton to the valueModel.

Assumes that the valueModel has to return a boolean value.

PENDING: does not check for radio button, currently client is responsible for not accidentally finding a radio-type or action-type button.

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


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