/** * 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); }
/** * 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()); }
/** * 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); }
/** * 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()); }