de.kleopatra.view.binding
Class DefaultBindingMap.TextBindingHandler

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

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

Handler for TextComponents (TextFields and TextAreas).


Constructor Summary
DefaultBindingMap.TextBindingHandler()
           
 
Method Summary
 void bind(javax.swing.JComponent container, BindingMetaData metaData, ValueModel model)
          binds text component to model by replacing the document with a DocumentAdapter.
protected  void bindTextComponent(javax.swing.text.JTextComponent textComponent, BindingMetaData metaData, ValueModel model)
           
protected  void configure(javax.swing.text.JTextComponent textComponent, BindingMetaData metaData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBindingMap.TextBindingHandler

public DefaultBindingMap.TextBindingHandler()
Method Detail

bind

public void bind(javax.swing.JComponent container,
                 BindingMetaData metaData,
                 ValueModel model)
binds text component to model by replacing the document with a DocumentAdapter.

Buffer the commit with metadata's focusLostTrigger if provided. Commits on enter action. PENDING: will not work with JTextPane/JEditorPane because DocumentAdapter is a PlainDocument.

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.

bindTextComponent

protected void bindTextComponent(javax.swing.text.JTextComponent textComponent,
                                 BindingMetaData metaData,
                                 ValueModel model)

configure

protected void configure(javax.swing.text.JTextComponent textComponent,
                         BindingMetaData metaData)


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