Browse Source

MOBILE-32704 11.0部分插件内置

fix-lag
Heyman 3 years ago
parent
commit
17158639ff
  1. 38
      designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java

38
designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java

@ -40,6 +40,26 @@ public class MobileStylePane extends BasicPane {
private CardLayout card;
private JList styleList;
private Map<String, BasicBeanPane<MobileStyle>> map = new HashMap<>();
private static Set<MobileWidgetStyleProvider> set = new HashSet<>();
static {
SimpleStyleProvider simpleStyleProvider = new SimpleStyleProvider();
NavigationStyleProvider navigationStyleProvider = new NavigationStyleProvider();
SimpleDateStyleProvider simpleDateStyleProvider = new SimpleDateStyleProvider();
SimpleComboStyleProvider simpleComboStyleProvider = new SimpleComboStyleProvider();
SimpleComboCheckBoxStyleProvider simpleComboCheckBoxStyleProvider = new SimpleComboCheckBoxStyleProvider();
CapsuleRadioGroupStyleProvider capsuleRadioGroupStyleProvider = new CapsuleRadioGroupStyleProvider();
UnitedRadioGroupStyleProvider unitedRadioGroupStyleProvider = new UnitedRadioGroupStyleProvider();
ImageRadioGroupStyleProvider imageRadioGroupStyleProvider = new ImageRadioGroupStyleProvider();
set.add(simpleStyleProvider);
set.add(navigationStyleProvider);
set.add(simpleDateStyleProvider);
set.add(simpleComboStyleProvider);
set.add(simpleComboCheckBoxStyleProvider);
set.add(capsuleRadioGroupStyleProvider);
set.add(unitedRadioGroupStyleProvider);
set.add(imageRadioGroupStyleProvider);
}
public MobileStylePane(Widget widget) {
if(widget instanceof WScaleLayout) {
@ -142,24 +162,6 @@ public class MobileStylePane extends BasicPane {
private MobileWidgetStyleProvider[] getMobileWidgetStyleProviders() {
DefaultMobileWidgetStyleProvider defaultMobileWidgetStyleProvider = new DefaultMobileWidgetStyleProvider();
SimpleStyleProvider simpleStyleProvider = new SimpleStyleProvider();
NavigationStyleProvider navigationStyleProvider = new NavigationStyleProvider();
SimpleDateStyleProvider simpleDateStyleProvider = new SimpleDateStyleProvider();
SimpleComboStyleProvider simpleComboStyleProvider = new SimpleComboStyleProvider();
SimpleComboCheckBoxStyleProvider simpleComboCheckBoxStyleProvider = new SimpleComboCheckBoxStyleProvider();
CapsuleRadioGroupStyleProvider capsuleRadioGroupStyleProvider = new CapsuleRadioGroupStyleProvider();
UnitedRadioGroupStyleProvider unitedRadioGroupStyleProvider = new UnitedRadioGroupStyleProvider();
ImageRadioGroupStyleProvider imageRadioGroupStyleProvider = new ImageRadioGroupStyleProvider();
Set<MobileWidgetStyleProvider> set = new HashSet<>();
set.add(simpleStyleProvider);
set.add(navigationStyleProvider);
set.add(simpleDateStyleProvider);
set.add(simpleComboStyleProvider);
set.add(simpleComboCheckBoxStyleProvider);
set.add(capsuleRadioGroupStyleProvider);
set.add(unitedRadioGroupStyleProvider);
set.add(imageRadioGroupStyleProvider);
List<MobileWidgetStyleProvider> providers = new ArrayList<>();
for (MobileWidgetStyleProvider provider : set) {

Loading…
Cancel
Save