GXT ModelData Cloning

It's easy to clone a GXT ModelData.

 public static void cloneModelData(ModelData source, ModelData dest) {
        Iterator<String> iterator = source.getPropertyNames().iterator();
        while (iterator.hasNext()) {
            String key = iterator.next();
            dest.set(key, source.get(key));
        }
    }

1 comments:

leon said...

Thanks for sharing

 
Copyright © peyotest