de.kleopatra.view.binding
Class DefaultBindingMap.TextBindingHandler
java.lang.Object
de.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).
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 |
DefaultBindingMap.TextBindingHandler
public DefaultBindingMap.TextBindingHandler()
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 searchmetaData
- binding infosmodel
- 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.