|
|
|
@ -16,6 +16,7 @@ import com.fr.form.share.bean.OnlineShareWidget;
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JButton; |
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.plaf.basic.BasicButtonUI; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
@ -44,6 +45,7 @@ public class OnlineWidgetTabPane extends JPanel {
|
|
|
|
|
private boolean packagePaneCreated = false; |
|
|
|
|
private final List<TabChangeListener> tabChangeListeners; |
|
|
|
|
private OnlineEmbedFilterShowPane embedFilterShowPane; |
|
|
|
|
private OnlineWidgetPackagesShowPane widgetPackagesShowPane; |
|
|
|
|
|
|
|
|
|
public OnlineWidgetTabPane(OnlineShareWidget[] sharableWidgets, OnlineShareWidget[] sharableWidgetPackage) { |
|
|
|
|
tabChangeListeners = new ArrayList<>(); |
|
|
|
@ -70,7 +72,8 @@ public class OnlineWidgetTabPane extends JPanel {
|
|
|
|
|
ComponentCollector.getInstance().collectCmpPktClick(); |
|
|
|
|
//延迟组件包面板的初始化,防止组件面板里组件和缩略图和组件包面板里组件的缩略图一起加载
|
|
|
|
|
if (!packagePaneCreated) { |
|
|
|
|
centerPane.add(new OnlineWidgetPackagesShowPane(sharableWidgetPackages), COMPONENT_PACKAGE); |
|
|
|
|
widgetPackagesShowPane = new OnlineWidgetPackagesShowPane(sharableWidgetPackages); |
|
|
|
|
centerPane.add(widgetPackagesShowPane, COMPONENT_PACKAGE); |
|
|
|
|
packagePaneCreated = true; |
|
|
|
|
} |
|
|
|
|
cardLayout.show(centerPane, COMPONENT_PACKAGE); |
|
|
|
@ -89,6 +92,8 @@ public class OnlineWidgetTabPane extends JPanel {
|
|
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private JPanel createMiniShopEntryPane() { |
|
|
|
|
JPanel container = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
container.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
@ -136,6 +141,10 @@ public class OnlineWidgetTabPane extends JPanel {
|
|
|
|
|
if (embedFilterShowPane != null) { |
|
|
|
|
this.embedFilterShowPane.refreshUI(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (headGroup.getSelectedIndex() == COMPONENT_PACKAGE_TAB_INDEX && widgetPackagesShowPane != null) { |
|
|
|
|
widgetPackagesShowPane.refreshShowPaneUI(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|