|
|
@ -9,6 +9,7 @@ import java.util.function.Predicate; |
|
|
|
public class MultiTemplateTabUtils { |
|
|
|
public class MultiTemplateTabUtils { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 计算离currentIndex最近的相同模式的模板index值(优先左边) |
|
|
|
* 计算离currentIndex最近的相同模式的模板index值(优先左边) |
|
|
|
|
|
|
|
* |
|
|
|
* @param currentIndex 当前index |
|
|
|
* @param currentIndex 当前index |
|
|
|
* @param openedTemplate 模板list |
|
|
|
* @param openedTemplate 模板list |
|
|
|
* @param type 当前显示模式 |
|
|
|
* @param type 当前显示模式 |
|
|
@ -25,6 +26,7 @@ public class MultiTemplateTabUtils { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 先从左找,再从右找离得最近的满足条件的模板 |
|
|
|
* 先从左找,再从右找离得最近的满足条件的模板 |
|
|
|
|
|
|
|
* |
|
|
|
* @param currentIndex 当前index |
|
|
|
* @param currentIndex 当前index |
|
|
|
* @param openedTemplate 模板list |
|
|
|
* @param openedTemplate 模板list |
|
|
|
* @param predicate |
|
|
|
* @param predicate |
|
|
@ -46,6 +48,7 @@ public class MultiTemplateTabUtils { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 是否显示模板 |
|
|
|
* 是否显示模板 |
|
|
|
|
|
|
|
* |
|
|
|
* @param type 模板类型 |
|
|
|
* @param type 模板类型 |
|
|
|
* @param jTemplate 模板 |
|
|
|
* @param jTemplate 模板 |
|
|
|
* @return |
|
|
|
* @return |
|
|
|