org.kuali.student.common.ui.client.configurable.mvc.sections
Class SectionBinding

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

public class SectionBinding
extends ModelWidgetBindingSupport<Section>

Model widget binding for a section - calls the bindings on its fields and sub sections. Special handling for sections which can have their sections deleted by the user.

Author:
Kuali Student Team

Field Summary
static SectionBinding INSTANCE
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBindingSupport
DIRTY_PATH, RUNTIME_ROOT
 
Constructor Summary
private SectionBinding()
           
 
Method Summary
 void setModelValue(Section section, DataModel model, String path)
          Sets the model with the value from the widget
private  void setValue(DataModel model, String path, Object value)
           
 void setWidgetValue(Section section, 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 SectionBinding INSTANCE
Constructor Detail

SectionBinding

private SectionBinding()
Method Detail

setModelValue

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

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

setValue

private void setValue(DataModel model,
                      String path,
                      Object value)

setWidgetValue

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

Parameters:
section - 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(java.lang.Object, org.kuali.student.common.ui.client.mvc.DataModel, java.lang.String)


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