org.kuali.student.common.ui.client.configurable.mvc.binding
Class MultiplicityTableBinding

java.lang.Object
  extended by org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBindingSupport<MultiplicityTable>
      extended by org.kuali.student.common.ui.client.configurable.mvc.binding.MultiplicityTableBinding
All Implemented Interfaces:
ModelWidgetBinding<MultiplicityTable>

public class MultiplicityTableBinding
extends ModelWidgetBindingSupport<MultiplicityTable>

This class handles transferring data between the model and the widgets


Field Summary
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBindingSupport
DIRTY_PATH, RUNTIME_ROOT
 
Constructor Summary
MultiplicityTableBinding()
           
 
Method Summary
 void setModelValue(MultiplicityTable table, DataModel model, String path)
          Sets the model with the value from the widget
 void setWidgetValue(MultiplicityTable table, DataModel model, String path)
          Sets the passed in widget with the appropriate data from the model
private  QueryPath translatePath(String path, QueryPath fullPath, DataModel model)
          This method checks the meta data for an initial lookup for this field.
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBindingSupport
ensureDirtyFlagPath, nullsafeEquals, nullsafeEquals, setDirtyFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplicityTableBinding

public MultiplicityTableBinding()
Method Detail

setModelValue

public void setModelValue(MultiplicityTable table,
                          DataModel model,
                          String path)
Description copied from interface: ModelWidgetBinding
Sets the model with the value from the widget

Parameters:
table - Widget to interpret the data from
path - where in the model to store the data
See Also:
ModelWidgetBinding.setModelValue(Object, org.kuali.student.common.ui.client.mvc.DataModel, String)

setWidgetValue

public void setWidgetValue(MultiplicityTable table,
                           DataModel model,
                           String path)
Description copied from interface: ModelWidgetBinding
Sets the passed in widget with the appropriate data from the model

Parameters:
table - the widget to have its value set
model - DataModel to retrieve the data from
path - where in the model to get the data
See Also:
ModelWidgetBinding.setWidgetValue(Object, org.kuali.student.common.ui.client.mvc.DataModel, String)

translatePath

private QueryPath translatePath(String path,
                                QueryPath fullPath,
                                DataModel model)
This method checks the meta data for an initial lookup for this field. If found, the field path is translated to lookup the id_translation data in the _runtimeData structure in the model

Parameters:
path -
fullPath -
model -
Returns:


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.