Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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());
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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());
 }