org.viewaframework.binding.swing.list
Class ListBindingModelListener<T,TV,SV>

java.lang.Object
  extended by org.viewaframework.binding.core.AbstractBindingListener<T,TV,SV>
      extended by org.viewaframework.binding.swing.list.ListBindingModelListener<T,TV,SV>
Type Parameters:
T -
TV -
SV -
All Implemented Interfaces:
PropertyChangeListener, EventListener, SynchronizedListener

public class ListBindingModelListener<T,TV,SV>
extends AbstractBindingListener<T,TV,SV>

Author:
Mario Garcia

Constructor Summary
ListBindingModelListener(BeanAdapter<T> target)
           
 
Method Summary
 Object getNewValue(PropertyChangeEvent evt)
           
 void handleProperty(PropertyChangeEvent evt)
          Once we know that source and target are not synchronized and also that the right property is at hand we make the value transfer within this method
 boolean isPropertyToHandle(PropertyChangeEvent evt)
          Whether the property triggered is the one to handle
 boolean isSynchronized(PropertyChangeEvent evt)
           
 void propertyChange(PropertyChangeEvent evt)
           
 
Methods inherited from class org.viewaframework.binding.core.AbstractBindingListener
getSourceProperty, getTarget, getTargetProperty, setSourceProperty, setTarget, setTargetProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListBindingModelListener

public ListBindingModelListener(BeanAdapter<T> target)
Parameters:
target -
Method Detail

getNewValue

public Object getNewValue(PropertyChangeEvent evt)
Returns:

handleProperty

public void handleProperty(PropertyChangeEvent evt)
Description copied from class: AbstractBindingListener
Once we know that source and target are not synchronized and also that the right property is at hand we make the value transfer within this method

Overrides:
handleProperty in class AbstractBindingListener<T,TV,SV>
Parameters:
evt - event

isPropertyToHandle

public boolean isPropertyToHandle(PropertyChangeEvent evt)
Description copied from class: AbstractBindingListener
Whether the property triggered is the one to handle

Overrides:
isPropertyToHandle in class AbstractBindingListener<T,TV,SV>
Returns:

isSynchronized

public boolean isSynchronized(PropertyChangeEvent evt)
Specified by:
isSynchronized in interface SynchronizedListener
Overrides:
isSynchronized in class AbstractBindingListener<T,TV,SV>
Returns:

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class AbstractBindingListener<T,TV,SV>


Copyright © 2010. All Rights Reserved.