예제 #1
0
 /// <summary>
 /// Array sort function used by `sort()` to re-sort the models in the list.
 /// </summary>
 protected Y_.DataType_.Number _sort(Model a, Model b){return null;}
예제 #2
0
 /// <summary>
 /// Removes the specified _model_ if it's in this list.
 /// </summary>
 protected Model _remove(Model model){return null;}
예제 #3
0
 /// <summary>
 /// Removes the specified _model_ if it's in this list.
 /// </summary>
 protected Model _remove(Model model, object options){return null;}
예제 #4
0
 /// <summary>
 /// Returns the index at which the given _model_ should be inserted to maintain
 /// the sort order of the list.
 /// </summary>
 protected Y_.DataType_.Number _findIndex(Model model){return null;}
예제 #5
0
 /// <summary>
 /// Removes this list as a bubble target for the specified model's events.
 /// </summary>
 protected void _detachList(Model model){}
예제 #6
0
 /// <summary>
 /// Adds this list as a bubble target for the specified model's events.
 /// </summary>
 protected void _attachList(Model model){}
예제 #7
0
 /// <summary>
 /// Define this method to provide a function that takes a model as a parameter
 /// and returns a value by which that model should be sorted relative to other
 /// models in this list.
 /// By default, no comparator is defined, meaning that models will not be sorted
 /// (they'll be stored in the order they're added).
 /// </summary>
 public Y_.DataType_.Number comparator(Model model){return null;}
예제 #8
0
 /// <summary>
 /// Replacement `comparator` for the `data` ModelList that defers sorting logic
 /// to the `_compare` method.  The deferral is accomplished by returning `this`.
 /// </summary>
 protected Model _sortComparator(Model item){return null;}