示例#1
0
文件: ListStore.java 项目: Jullil/gxt
 /**
  * Inserts the model to the store at the given index and fires the <i>Add</i> event.
  *
  * @param model the model to insert
  * @param index the insert location
  */
 public void insert(M model, int index) {
   List<M> temp = new ArrayList<M>();
   temp.add(model);
   insert(temp, index);
 }
示例#2
0
文件: ListStore.java 项目: Jullil/gxt
 /**
  * Adds the model to the store and fires the <i>Add</i> event.
  *
  * @param model the model to add
  */
 public void add(M model) {
   insert(model, getCount());
 }
示例#3
0
文件: ListStore.java 项目: Jullil/gxt
 /**
  * Inserts the models to the store at the given index and fires the <i>Add</i> event.
  *
  * @param models the models to insert
  * @param index the insert location
  */
 public void insert(List<? extends M> models, int index) {
   insert(models, index, false);
 }
示例#4
0
文件: ListStore.java 项目: Jullil/gxt
 /**
  * Adds the models to the store and fires the <i>Add</i> event.
  *
  * @param models the models to add
  */
 public void add(List<? extends M> models) {
   insert(models, getCount());
 }