0 Replies Latest reply on May 3, 2010 4:29 AM by kiran7881

    Need help in implementing ActionScript class for a java Bean

    kiran7881 Level 1

      Hi ,

       

      I have written a java Method whose result would be an ArrayList .

      I want to populate this in a DataGrid  ,I am getting confused in mapping the java bean to Action class


      Assume if this is my java Bean

       

       

      package utils ;
      public class Customer
      {
      private String name ;
      private String country ;
      public String getName() {
        return name;
      }
      public void setName(String name) {
        this.name = name;
      }
      public String getCountry() {
        return country;
      }
      public void setCountry(String country) {
        this.country = country;
      }
      }

      I have written some Action class as shown , but i am not sure whether this is correct or not .

       

      Need your help on this

       

      Customer.as

       

      [Bindable]
      [RemoteClass(alias="utils.Customer")]
      public class CustomerClass
      {
      public var name:String;
      public var country:String;
      }

       

      // Need your help in completing this ActionScript class

       

      Thanks in advance .