groovy.swing.binding
Class JTextComponentTextBinding

java.lang.Object
  extended by org.codehaus.groovy.binding.AbstractFullBinding
      extended by groovy.swing.binding.JTextComponentTextBinding
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.DocumentListener, BindingUpdatable, FullBinding

 class JTextComponentTextBinding
extends AbstractFullBinding
implements java.beans.PropertyChangeListener, javax.swing.event.DocumentListener


Field Summary
(package private)  boolean bound
           
(package private)  javax.swing.text.JTextComponent boundTextComponent
           
 
Fields inherited from class org.codehaus.groovy.binding.AbstractFullBinding
converter, reverseConverter, sourceBinding, targetBinding, validator
 
Constructor Summary
JTextComponentTextBinding(PropertyBinding source, TargetBinding target)
           
 
Method Summary
 void bind()
          Causes automatic updating of bound values to be turned on.
 void changedUpdate(javax.swing.event.DocumentEvent event)
           
 void insertUpdate(javax.swing.event.DocumentEvent event)
           
 void propertyChange(java.beans.PropertyChangeEvent event)
           
 void rebind()
          Causes the current bindings to be reset.
 void removeUpdate(javax.swing.event.DocumentEvent event)
           
 void setSourceBinding(SourceBinding source)
           
 void setTargetBinding(TargetBinding target)
           
 void unbind()
          Causes automatic updating of bound values to be turned off.
 
Methods inherited from class org.codehaus.groovy.binding.AbstractFullBinding
getConverter, getReverseConverter, getSourceBinding, getTargetBinding, getValidator, reverseUpdate, setConverter, setReverseConverter, setValidator, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bound

boolean bound

boundTextComponent

javax.swing.text.JTextComponent boundTextComponent
Constructor Detail

JTextComponentTextBinding

public JTextComponentTextBinding(PropertyBinding source,
                                 TargetBinding target)
Method Detail

bind

public void bind()
Description copied from interface: BindingUpdatable
Causes automatic updating of bound values to be turned on. This is idempotent between calls to unbind and rebind; i.e. multiple calls to bind will have only the effect of the first call.

Specified by:
bind in interface BindingUpdatable

unbind

public void unbind()
Description copied from interface: BindingUpdatable
Causes automatic updating of bound values to be turned off. This is idempotent between calls to bind and rebind; i.e. multiple calls to unbind will have only the effect of the first call.

Specified by:
unbind in interface BindingUpdatable

rebind

public void rebind()
Description copied from interface: BindingUpdatable
Causes the current bindings to be reset. If the binding is not bound, it is a no-op. If the binding is bound, it will be turned off, then turned on against current values.

Specified by:
rebind in interface BindingUpdatable

setSourceBinding

public void setSourceBinding(SourceBinding source)
Specified by:
setSourceBinding in interface FullBinding
Overrides:
setSourceBinding in class AbstractFullBinding

setTargetBinding

public void setTargetBinding(TargetBinding target)
Specified by:
setTargetBinding in interface FullBinding
Overrides:
setTargetBinding in class AbstractFullBinding

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent event)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent event)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent event)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener


Copyright © ${year} The Codehaus. All Rights Reserved.