org.viewaframework.binding.core
Class AbstractListBinding<SS,TS>

java.lang.Object
  extended by org.viewaframework.binding.core.AbstractListBinding<SS,TS>
Type Parameters:
SS - Source
SP - Source property
TS - Target
TP - Target property
All Implemented Interfaces:
Binding<SS>, ListableBinding<SS,TS>
Direct Known Subclasses:
ComboBoxListBinding, ListBinding, TableListBinding

public abstract class AbstractListBinding<SS,TS>
extends Object
implements ListableBinding<SS,TS>

Abstract implementation of the ListableBinding interface

Author:
Mario Garcia

Constructor Summary
AbstractListBinding(SS source, EventList<TS> list)
          Constructor
 
Method Summary
 BeanAdapter<SS> getSource()
           
 EventList<TS> getTarget()
           
 void setSource(BeanAdapter<SS> source)
           
 void setTarget(EventList<TS> target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.viewaframework.binding.core.Binding
bind, unbind
 

Constructor Detail

AbstractListBinding

public AbstractListBinding(SS source,
                           EventList<TS> list)
Constructor

Parameters:
source - The source component
list - The list used by the underline model
Method Detail

getSource

public BeanAdapter<SS> getSource()
Specified by:
getSource in interface ListableBinding<SS,TS>
Returns:

getTarget

public EventList<TS> getTarget()
Specified by:
getTarget in interface ListableBinding<SS,TS>
Returns:

setSource

public void setSource(BeanAdapter<SS> source)
Specified by:
setSource in interface ListableBinding<SS,TS>

setTarget

public void setTarget(EventList<TS> target)
Specified by:
setTarget in interface ListableBinding<SS,TS>


Copyright © 2010. All Rights Reserved.