org.viewaframework.binding.core
Interface Adapter<T>

Type Parameters:
T - Type of elements this adapter is going to take care of.
All Superinterfaces:
Observable
All Known Subinterfaces:
BeanAdapter<T>
All Known Implementing Classes:
BasicBeanAdapter, LazyBeanAdapter

public interface Adapter<T>
extends Observable

Very important interface. Here started everything.

Author:
Mario Garcia

Method Summary
 String getName()
          Returns the name of the adapter
 T getSource()
          Returns the source this adapter is taken care of
 boolean isSync(Adapter<T> source)
          Returns true if the current object is synchronized with the object passed as parameter
 void setName(String name)
          Sets the name of the adapter
 void setSource(T source)
          Sets the source object
 void sync(Adapter<T> target)
          Synchronizes all values of the current bean with the bean passed as parameter.
 
Methods inherited from interface org.viewaframework.binding.core.Observable
addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener
 

Method Detail

getName

String getName()
Returns the name of the adapter

Returns:
The name of the adapter

getSource

T getSource()
Returns the source this adapter is taken care of

Returns:

isSync

boolean isSync(Adapter<T> source)
Returns true if the current object is synchronized with the object passed as parameter

Parameters:
source - The reference object
Returns:
true if both are synchronized

setName

void setName(String name)
Sets the name of the adapter

Parameters:
name -

setSource

void setSource(T source)
Sets the source object

Parameters:
source -

sync

void sync(Adapter<T> target)
Synchronizes all values of the current bean with the bean passed as parameter.

Parameters:
value -


Copyright © 2010. All Rights Reserved.