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

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

public class MultiplicityGroupItemBinding
extends ModelWidgetBindingSupport<MultiplicityGroupItem>

This binding simply adds an index key to the multiplicity item's parent path and then calls the binding ModelWidgetBinding of the underlying multiplicity item's widget.

Author:
Kuali Student Team

Field Summary
static MultiplicityGroupItemBinding INSTANCE
           
protected static String RT_CREATED
           
protected static String RT_DELETED
           
protected static String RT_UPDATED
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBindingSupport
DIRTY_PATH, RUNTIME_ROOT
 
Constructor Summary
private MultiplicityGroupItemBinding()
           
 
Method Summary
 void setModelValue(MultiplicityGroupItem multiplicityItem, DataModel model, String path)
          Sets the model with the value from the widget
 void setWidgetValue(MultiplicityGroupItem multiplicityItem, DataModel model, String path)
          Sets the passed in widget with the appropriate data from the model
 
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
 

Field Detail

INSTANCE

public static MultiplicityGroupItemBinding INSTANCE

RT_CREATED

protected static final String RT_CREATED

RT_UPDATED

protected static final String RT_UPDATED

RT_DELETED

protected static final String RT_DELETED
Constructor Detail

MultiplicityGroupItemBinding

private MultiplicityGroupItemBinding()
Method Detail

setModelValue

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

Parameters:
multiplicityItem - 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(MultiplicityGroupItem multiplicityItem,
                           DataModel model,
                           String path)
Description copied from interface: ModelWidgetBinding
Sets the passed in widget with the appropriate data from the model

Parameters:
multiplicityItem - 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)


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