com.google.code.validationframework.binding
Class Bindable<T>

java.lang.Object
  extended by com.google.code.validationframework.binding.Bindable<T>
All Implemented Interfaces:
Master<T>, Slave<T>, Serializable
Direct Known Subclasses:
BindableBoolean, BindableByte, BindableCharacter, BindableDouble, BindableFloat, BindableInteger, BindableLong, BindableNumber, BindableObject, BindableShort, BindableString

public class Bindable<T>
extends Object
implements Master<T>, Slave<T>

See Also:
Serialized Form

Constructor Summary
Bindable()
           
Bindable(T value)
           
 
Method Summary
 void addSlave(Slave<T> slave)
           
 T getValue()
           
protected  void notifySlaves()
           
 void removeSlave(Slave<T> slave)
           
 void setValue(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bindable

public Bindable()

Bindable

public Bindable(T value)
Method Detail

addSlave

public void addSlave(Slave<T> slave)
Specified by:
addSlave in interface Master<T>

removeSlave

public void removeSlave(Slave<T> slave)
Specified by:
removeSlave in interface Master<T>

getValue

public T getValue()
Specified by:
getValue in interface Master<T>

setValue

public void setValue(T value)
Specified by:
setValue in interface Slave<T>

notifySlaves

protected void notifySlaves()


Copyright © 2013. All Rights Reserved.