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

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

public class MultiplicityGroupBinding
extends ModelWidgetBindingSupport<MultiplicityGroup>

This goes through each item in the MultiplicityGroup and calls it's binding

Author:
Kuali Student Team

Field Summary
static MultiplicityGroupBinding INSTANCE
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBindingSupport
DIRTY_PATH, RUNTIME_ROOT
 
Constructor Summary
MultiplicityGroupBinding()
           
 
Method Summary
 boolean isItemDeleted(DataModel model, String path, Integer index, MultiplicityGroup mcWidget)
          Checks to see if an item at the given index in the multiplicity has been deleted
 void setModelValue(MultiplicityGroup mcWidget, DataModel model, String path)
          Sets the model with the value from the widget
 void setWidgetValue(MultiplicityGroup mg, 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 MultiplicityGroupBinding INSTANCE
Constructor Detail

MultiplicityGroupBinding

public MultiplicityGroupBinding()
Method Detail

setModelValue

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

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

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

isItemDeleted

public boolean isItemDeleted(DataModel model,
                             String path,
                             Integer index,
                             MultiplicityGroup mcWidget)
Checks to see if an item at the given index in the multiplicity has been deleted

Parameters:
model -
path -
index -


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