In the update model values phase, the setter methods on the CD are invoked with the converted and validated values stored in the GUI components.
在更新模型值的阶段中,会使用保存在GUI组件中的经过转换和有效性验证的值来调用CD的赋值方法。
Method chaining works best for the creation of simple data objects, yet here I'm using it both for the setter methods on Appointment and in AppointmentCalendar to start the method chain.
方法链接对于简单数据对象的创建最有效,但是这里我同时为Appointment上和AppointmentCalendar中的setter方法启用方法链接。
In this case, you might lack setter methods to modify field properties and, instead, rely on constructors to set these values.
在这种情况下,您可能会缺少用于修改字段属性的setter方法,相反,您依靠构造器来设置这些值。
应用推荐