Browse Source
Merge in DESIGN/design from ~RENEKTON/design:newui to newui * commit 'bd25095d3e6a3010fd0764ba14f008cb5ae65ca9': 控件管理/报表填报属性/超级链接/服务器参数 控件管理/报表填报属性/超级链接/服务器参数 控件管理/报表填报属性/超级链接/服务器参数 控件管理/报表填报属性/超级链接/服务器参数newui
Renekton-张世豪
4 months ago
11 changed files with 175 additions and 101 deletions
@ -0,0 +1,67 @@ |
|||||||
|
package com.fr.design.widget; |
||||||
|
|
||||||
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
||||||
|
import com.fr.design.gui.ibutton.UIHeadGroup; |
||||||
|
import com.fr.design.layout.FRGUIPaneFactory; |
||||||
|
import com.fr.design.mainframe.ElementCasePane; |
||||||
|
import com.fr.form.ui.Widget; |
||||||
|
|
||||||
|
import javax.swing.JPanel; |
||||||
|
import java.awt.BorderLayout; |
||||||
|
import java.awt.CardLayout; |
||||||
|
import java.awt.Component; |
||||||
|
|
||||||
|
/** |
||||||
|
* 东区控件面板子类 |
||||||
|
* @author Renekton |
||||||
|
* @since 2024/8/6. |
||||||
|
* Created on 2024/8/6. |
||||||
|
*/ |
||||||
|
public class EastCellWidgetCardPane extends CellWidgetCardPane { |
||||||
|
|
||||||
|
private CardLayout tabbedPane; |
||||||
|
|
||||||
|
private JPanel center; |
||||||
|
|
||||||
|
private UIHeadGroup tabsHeaderIconPane; |
||||||
|
|
||||||
|
public EastCellWidgetCardPane(ElementCasePane pane) { |
||||||
|
super(pane); |
||||||
|
} |
||||||
|
|
||||||
|
private void initComponents() { |
||||||
|
|
||||||
|
this.removeAll(); |
||||||
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||||
|
|
||||||
|
tabbedPane = new CardLayout(); |
||||||
|
center = new JPanel(tabbedPane); |
||||||
|
|
||||||
|
final String[] tabTitles = new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Attribute"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Event"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Widget_Mobile_Terminal")}; |
||||||
|
tabsHeaderIconPane = new UIHeadGroup(tabTitles) { |
||||||
|
@Override |
||||||
|
public void tabChanged(int index) { |
||||||
|
tabbedPane.show(center, tabTitles[index]); |
||||||
|
} |
||||||
|
}; |
||||||
|
JPanel wrapperPane = new JPanel(new BorderLayout()); |
||||||
|
wrapperPane.add(tabsHeaderIconPane, BorderLayout.NORTH); |
||||||
|
wrapperPane.add(center, BorderLayout.CENTER); |
||||||
|
wrapperPane.setBorder(new ScaledEmptyBorder(0, 10, 0, 10)); |
||||||
|
this.add(wrapperPane, BorderLayout.CENTER); |
||||||
|
Component component = initTabPane(); |
||||||
|
center.add(component, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Attribute")); |
||||||
|
center.add(getEventTabPane(), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Event")); |
||||||
|
center.add(getMobileTabPane(), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Widget_Mobile_Terminal")); |
||||||
|
initPaneList(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 东区面板 |
||||||
|
*/ |
||||||
|
public void populate(Widget cellWidget) { |
||||||
|
initComponents(); |
||||||
|
super.populateWidget(cellWidget); |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue