org.kuali.student.common.ui.client.configurable.mvc.binding
Interface ModelWidgetBinding<WidgetType>

All Known Implementing Classes:
CluSetEditorWidget.CluSetBinding, CluSetEditorWidget.CluSetRangeBinding, CourseProposalConfigurer.KeyListModelWigetBinding, CredentialProgramsBinding, DateBinding, DocumentListBinding, DynamicAttributeListBinding, HasDataValueBinding, HasTextBinding, HasValueBinding, ItemListFieldBinding, ListOfStringBinding, ListToTextBinding, LOBuilderBinding, MajorKeyProgramInfoEditConfiguration.DiplomaBinding, ModelWidgetBindingSupport, MultiplicityCompositeBinding, MultiplicityGroupBinding, MultiplicityGroupItemBinding, MultiplicityItemBinding, MultiplicityTableBinding, RichTextBinding, SectionBinding, SelectItemWidgetBinding, TreeStringBinding, VariationInformationEditConfiguration.DiplomaBinding, VariationsBinding

public interface ModelWidgetBinding<WidgetType>

A model widget binding is used to translate data from the model to something the client side widget can use to display it's data. It is also used to translate from widget data to the appropriate expected model data.

Author:
Kuali Student Team

Method Summary
 void setModelValue(WidgetType widget, DataModel model, String path)
          Sets the model with the value from the widget
 void setWidgetValue(WidgetType widget, DataModel model, String path)
          Sets the passed in widget with the appropriate data from the model
 

Method Detail

setModelValue

void setModelValue(WidgetType widget,
                   DataModel model,
                   String path)
Sets the model with the value from the widget

Parameters:
widget - Widget to interpret the data from
DataModel - model to have a value/values added to
path - where in the model to store the data

setWidgetValue

void setWidgetValue(WidgetType widget,
                    DataModel model,
                    String path)
Sets the passed in widget with the appropriate data from the model

Parameters:
widget - the widget to have its value set
model - DataModel to retrieve the data from
path - where in the model to get the data


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