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