|
|
|
package com.fr.design.mainframe.mobile.utils;
|
|
|
|
|
|
|
|
import com.fr.design.mainframe.mobile.provider.checkboxgroup.CapsuleCheckboxGroupStyleProvider;
|
|
|
|
import com.fr.design.mainframe.mobile.provider.checkboxgroup.ImageCheckboxGroupStyleProvider;
|
|
|
|
import com.fr.design.mainframe.mobile.provider.checkboxgroup.UnitedCheckboxGroupStyleProvider;
|
|
|
|
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());
|
|
|
|
add(new CapsuleCheckboxGroupStyleProvider());
|
|
|
|
add(new UnitedCheckboxGroupStyleProvider());
|
|
|
|
add(new ImageCheckboxGroupStyleProvider());
|
|
|
|
}};
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|