|
|
@ -64,18 +64,26 @@ public class MobileComponentFrozenPane extends BasicPane { |
|
|
|
public void update(XCreator xCreator) { |
|
|
|
public void update(XCreator xCreator) { |
|
|
|
List<String> selected = new ArrayList<>(); |
|
|
|
List<String> selected = new ArrayList<>(); |
|
|
|
WSortLayout wSortLayout = ((WSortLayout) xCreator.toData()); |
|
|
|
WSortLayout wSortLayout = ((WSortLayout) xCreator.toData()); |
|
|
|
|
|
|
|
List<String> all = wSortLayout.getNonContainerWidgetList(); |
|
|
|
|
|
|
|
for (String widgetName : all) { |
|
|
|
|
|
|
|
updateMobileBookMark(wSortLayout, widgetName, false); |
|
|
|
|
|
|
|
} |
|
|
|
Object[] values = uiComboCheckBox.getSelectedValues(); |
|
|
|
Object[] values = uiComboCheckBox.getSelectedValues(); |
|
|
|
for (Object value : values) { |
|
|
|
for (Object value : values) { |
|
|
|
String widgetName = (String) value; |
|
|
|
String widgetName = (String) value; |
|
|
|
selected.add(widgetName); |
|
|
|
selected.add(widgetName); |
|
|
|
Widget widget = FormWidgetHelper.findWidgetWithBound(wSortLayout, widgetName); |
|
|
|
updateMobileBookMark(wSortLayout, widgetName, true); |
|
|
|
if (widget != null) { |
|
|
|
|
|
|
|
widget.getMobileBookMark().setFrozen(true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
wSortLayout.updateFrozenWidgets(selected); |
|
|
|
wSortLayout.updateFrozenWidgets(selected); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void updateMobileBookMark(WSortLayout wSortLayout, String widgetName, boolean frozen) { |
|
|
|
|
|
|
|
Widget widget = FormWidgetHelper.findWidgetWithBound(wSortLayout, widgetName); |
|
|
|
|
|
|
|
if (widget != null) { |
|
|
|
|
|
|
|
widget.getMobileBookMark().setFrozen(frozen); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populate(XCreator xCreator) { |
|
|
|
public void populate(XCreator xCreator) { |
|
|
|
WSortLayout wSortLayout = ((WSortLayout) xCreator.toData()); |
|
|
|
WSortLayout wSortLayout = ((WSortLayout) xCreator.toData()); |
|
|
|
List<String> all = wSortLayout.getNonContainerWidgetList(); |
|
|
|
List<String> all = wSortLayout.getNonContainerWidgetList(); |
|
|
|