https://developer.salesforce.com/page/Wrapper_Class

http://www.sfdcpoint.com/salesforce/wrapper-class-in-apex/

Wrapper Class 模板可以归类为:

public class AccountSelectClassController{

    //Our collection of the class/wrapper objects wrapAccount
public List<wrapAccount> wrapAccountList {get; set;} ******
****** // This is our wrapper/container class. A container class is a class, a data structure, or an abstract data type whose instances are collections of other objects. In this example a wrapper class contains both the standard salesforce object Account and a Boolean value
public class wrapAccount {
public Account acc {get; set;}
public Boolean selected {get; set;} //This is the contructor method. When we create a new wrapAccount object we pass a Account that is set to the acc property. We also set the selected value to false
public wrapAccount(Account a) {
acc = a;
selected = false;
}
}
}

  

最新文章

  1. Android性能分析之TraceView的使用
  2. 【汇总】Android 常用方法整理
  3. eclipse汉化过程
  4. LightOJ 1140 How Many Zeroes
  5. ms sql server缓存清除与内存释放
  6. bzoj1009
  7. AIX Study之--AIX网卡配置管理(ent0、en0、et0)
  8. C#中将图片文件转化为二进制数组-用于数据库存储
  9. c++单元测试框架googletest
  10. 【iOS】用Layer创建一个三维模型以及拖动
  11. HDU 1754 I Hate It (段树单点更新)
  12. NYoj 最舒适的路线
  13. 企业IT管理员IE11升级指南【8】—— Win7 IE8和Win7 IE11对比
  14. (Linux)CentOS7下安装JDK 1.8
  15. ansible资产配置
  16. python数据类型分类
  17. the fist blood of java-eclipse 哈哈哈哈 封装的运用
  18. Oracle 重启数据库实例
  19. windows10添加开机自启动程序
  20. Tkinter Radiobutton

热门文章

  1. 基于 .NET7.0 开发Telegram 机器人(入门)
  2. flex实现圣杯布局
  3. log4j 完美版配置
  4. Vue25 mixin
  5. websocket-sharp 实现websocket
  6. 10分钟了解MVVM,实现简易MVVM
  7. 鼎阳SDS6204长波形读取的潜力挖掘及上海光源测试
  8. 【Vue】vue项目目录介绍 es6的导入导出语法 vue项目开发规范 Vue项目编写步骤
  9. 大规模 IoT 边缘容器集群管理的几种架构-2-HashiCorp 解决方案 Nomad
  10. mssql 常用sql 语句