コード例 #1
0
  /**
   * Create the Datatype BindingList from the supplied BindingList
   *
   * @param bindings the bindingList from which to init the arrays
   */
  private BindingList createBindingList(BindingList bindings) {
    BindingList newBindingList = new BindingList();

    if (bindings != null && bindings.size() > 0) {
      // Set the array values from the supplied bindingList
      for (int i = 0; i < bindings.size(); i++) {
        Binding binding = bindings.get(i);
        newBindingList.add(binding);
      }
    }

    return newBindingList;
  }