接口的使用
cn.taketoday.ui.Model
使用Model的程序包
-
cn.taketoday.ui中Model的使用
实现Model的cn.taketoday.ui中的类修饰符和类型类说明classImplementation of theModelinterface based on aConcurrentHashMapfor use in concurrent scenarios.classclassImplementation ofMapfor use when building model data for use with UI tools.返回Model的cn.taketoday.ui中的方法修饰符和类型方法说明Model.addAllAttributes(Collection<?> attributeValues) Copy all attributes in the suppliedCollectioninto thisMap, using attribute name generation for each element.Model.addAllAttributes(Map<String, ?> attributes) Copy all attributes in the suppliedMapinto thisMap.Model.addAttribute(Object attributeValue) Add the supplied attribute to thisMapusing agenerated name.Model.addAttribute(String attributeName, Object attributeValue) Add the supplied attribute under the supplied name.Model.mergeAttributes(Map<String, ?> attributes) Copy all attributes in the suppliedMapinto thisMap, with existing objects of the same name taking precedence (i.e. not getting replaced).