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