zoukankan      html  css  js  c++  java
  • 074_Wrapper_Class

    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;
            }
        }
    }
    

      

    此刻,静下心来学习
  • 相关阅读:
    学习总结(二十六)
    学习总结(二十五)
    在知乎学习怎么参加工作
    连分数系列
    Kalman Filter
    五子棋的学习
    Dijkstra
    三等分角、化圆为方、倍立方体
    女朋友走丢数学模型
    传染病模型
  • 原文地址:https://www.cnblogs.com/bandariFang/p/9764344.html
Copyright © 2011-2022 走看看