File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,20 @@ public interface SelectManager<T>
394
394
*/
395
395
void removeStateInterceptor (StateInterceptor<T > interceptor );
396
396
397
+ /**
398
+ * 添加回调对象
399
+ *
400
+ * @param callback
401
+ */
402
+ void addSingleSelectCallback (SingleSelectCallback<T > callback );
403
+
404
+ /**
405
+ * 移除回调对象
406
+ *
407
+ * @param callback
408
+ */
409
+ void removeSingleSelectCallback (SingleSelectCallback<T > callback );
410
+
397
411
/**
398
412
* 设置选择模式
399
413
*
@@ -623,6 +637,18 @@ public interface SelectManager<T>
623
637
boolean interceptItem (T item , boolean selected );
624
638
}
625
639
640
+ interface SingleSelectCallback <T>
641
+ {
642
+ /**
643
+ * 单选模式下,选中项回调
644
+ * <br >
645
+ * {@link Mode#SINGLE}或者{@link Mode#SINGLE_MUST_ONE_SELECTED}
646
+ *
647
+ * @param item
648
+ */
649
+ void onSelectedChanged (T item );
650
+ }
651
+
626
652
/**
627
653
* 用{@link StateInterceptor}替代
628
654
*
You can’t perform that action at this time.
0 commit comments