cdx.scorebot.util.swing.binding
Class IntermediateField<TYPE>

java.lang.Object
  extended by cdx.scorebot.util.swing.binding.IntermediateField<TYPE>
All Implemented Interfaces:
BoundComponent, BoundContainer

public class IntermediateField<TYPE>
extends java.lang.Object
implements BoundContainer

Describes a text field which holds a value of type TYPE

Author:
David Underhill

Constructor Summary
IntermediateField()
          Instantiates an unbound intermediate holderBound
IntermediateField(java.lang.Object boundItem, java.lang.String varName)
          Instantiates a bound intermediate holder; generic type MUST be String
IntermediateField(java.lang.Object boundItem, java.lang.String getterName, java.lang.String setterName)
          Instantiates a bound intermediate holder; generic type MUST be String
IntermediateField(java.lang.String varName)
          Instantiates an unbound intermediate holder; generic type MUST be String
IntermediateField(java.lang.String getterName, java.lang.String setterName)
          Instantiates a bound intermediate holder; generic type MUST be String
 
Method Summary
 IntermediateFieldDelegate<TYPE> getBindingDelegate()
          gets the delete which controls the binding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntermediateField

public IntermediateField()
Instantiates an unbound intermediate holderBound


IntermediateField

public IntermediateField(java.lang.String varName)
Instantiates an unbound intermediate holder; generic type MUST be String

Parameters:
varName - the name of the variable; assumes the getter and setter name will be get and set followed by varName with its first letter capitalized (ex: if varName is "value" then the getter will be getValue).

IntermediateField

public IntermediateField(java.lang.Object boundItem,
                         java.lang.String varName)
Instantiates a bound intermediate holder; generic type MUST be String

Parameters:
boundItem - the object this is bound to (contains the value to be modified as specified by varName)
varName - the name of the variable; assumes the getter and setter name will be get and set followed by varName with its first letter capitalized (ex: if varName is "value" then the getter will be getValue).

IntermediateField

public IntermediateField(java.lang.String getterName,
                         java.lang.String setterName)
Instantiates a bound intermediate holder; generic type MUST be String

Parameters:
getterName - how to get the bound value from the bound object
setterName - how to set the bound value from the bound object

IntermediateField

public IntermediateField(java.lang.Object boundItem,
                         java.lang.String getterName,
                         java.lang.String setterName)
Instantiates a bound intermediate holder; generic type MUST be String

Parameters:
boundItem - the object this is bound to (contains the value to be modified as specified by the getter and setter name)
getterName - how to get the bound value from the bound object
setterName - how to set the bound value from the bound object
Method Detail

getBindingDelegate

public IntermediateFieldDelegate<TYPE> getBindingDelegate()
gets the delete which controls the binding

Specified by:
getBindingDelegate in interface BoundComponent
Specified by:
getBindingDelegate in interface BoundContainer