Browse Source

REPORT-52629 组件展示排序逻辑的保存

feature/10.0
kuangshuai 4 years ago
parent
commit
b53cbb1fed
  1. 5
      designer-form/src/main/java/com/fr/design/mainframe/share/ui/local/GroupPane.java

5
designer-form/src/main/java/com/fr/design/mainframe/share/ui/local/GroupPane.java

@ -9,6 +9,7 @@ import com.fr.design.i18n.Toolkit;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.share.group.ui.GroupFileDialog;
import com.fr.design.mainframe.share.sort.SortType;
import com.fr.design.mainframe.share.sort.WidgetSortType;
import com.fr.design.mainframe.share.ui.base.PopupMenuItem;
import com.fr.design.mainframe.share.ui.widgetfilter.LocalWidgetFilter;
@ -49,6 +50,7 @@ class GroupPane extends JPanel {
//是否展开
private boolean expendStatus;
private SharableWidgetProvider[] elCaseBindInfoList;
private SortType sortType = WidgetSortType.INSTALL_TIME;
private GroupPane(Group group) {
this(group, DEFAULT_HEIGHT, group.isDefaultExpend());
@ -133,11 +135,12 @@ class GroupPane extends JPanel {
if (widgetProviders == null) {
widgetProviders = new SharableWidgetProvider[0];
}
WidgetSortType.INSTALL_TIME.sort(widgetProviders);
sortType.sort(widgetProviders);
return widgetProviders;
}
public void sortWidget(WidgetSortType sortType) {
this.sortType = sortType;
sortType.sort(elCaseBindInfoList);
reCreateShowPane(elCaseBindInfoList);
}

Loading…
Cancel
Save