facets.core.superficial
Class SNumeric.Coupler

java.lang.Object
  extended by facets.core.superficial.SNumeric.Coupler
All Implemented Interfaces:
TargetCoupler, java.io.Serializable
Enclosing class:
SNumeric

public static class SNumeric.Coupler
extends java.lang.Object
implements TargetCoupler

Connects a SNumeric to the application.

A SNumeric.Coupler supplies policy and/or client-specific mechanism to a SNumeric.

See Also:
Serialized Form

Constructor Summary
SNumeric.Coupler()
           
 
Method Summary
 NumberPolicy policy(SNumeric n)
          Returns the policy to be used by a SNumeric constructed with this SNumeric.Coupler.
 void valueSet(SNumeric n)
          Defines client-specific mechanism for a SNumeric.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SNumeric.Coupler

public SNumeric.Coupler()
Method Detail

policy

public NumberPolicy policy(SNumeric n)
Returns the policy to be used by a SNumeric constructed with this SNumeric.Coupler.


valueSet

public void valueSet(SNumeric n)
Defines client-specific mechanism for a SNumeric.

This method is called whenever setValue is called on n.