forked from fanruan/design
Heyman
3 years ago
4 changed files with 52 additions and 51 deletions
@ -0,0 +1,41 @@ |
|||||||
|
package com.fr.design.mainframe.mobile.utils; |
||||||
|
|
||||||
|
import com.fr.design.mainframe.mobile.provider.combo.SimpleComboCheckBoxStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.combo.SimpleComboStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.date.NavigationStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.date.SimpleDateStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.date.SimpleStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.radiogroup.CapsuleRadioGroupStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.radiogroup.ImageRadioGroupStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.radiogroup.UnitedRadioGroupStyleProvider; |
||||||
|
import com.fr.design.mainframe.mobile.provider.topparam.MobileTopParamStyleProvider; |
||||||
|
import com.fr.stable.fun.mark.Mutable; |
||||||
|
|
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.HashSet; |
||||||
|
import java.util.Map; |
||||||
|
import java.util.Set; |
||||||
|
|
||||||
|
public class MobileStyleProviderManager { |
||||||
|
private static Set<Mutable> mobileWidgetStyleProviderSet = new HashSet<Mutable>() {{ |
||||||
|
add(new SimpleStyleProvider()); |
||||||
|
add(new NavigationStyleProvider()); |
||||||
|
add(new SimpleDateStyleProvider()); |
||||||
|
add(new SimpleComboStyleProvider()); |
||||||
|
add(new SimpleComboCheckBoxStyleProvider()); |
||||||
|
add(new CapsuleRadioGroupStyleProvider()); |
||||||
|
add(new UnitedRadioGroupStyleProvider()); |
||||||
|
add(new ImageRadioGroupStyleProvider()); |
||||||
|
}}; |
||||||
|
private static Set<Mutable> mobileParamUIProviderSet = new HashSet<Mutable>() {{ |
||||||
|
add(new MobileTopParamStyleProvider()); |
||||||
|
}}; |
||||||
|
private static Map<String, Set<Mutable>> map = new HashMap<String, Set<Mutable>>() {{ |
||||||
|
put("MobileWidgetStyleProvider", mobileWidgetStyleProviderSet); |
||||||
|
put("MobileParamUIProvider", mobileParamUIProviderSet); |
||||||
|
}}; |
||||||
|
|
||||||
|
public static <T extends Mutable> Set<T> getArray(String mark) { |
||||||
|
return (Set<T>) map.get(mark); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue