|
|
|
@ -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) { |
|
|
|
|