renekton
4 months ago
11 changed files with 164 additions and 101 deletions
@ -0,0 +1,55 @@
|
||||
package com.fr.design.widget; |
||||
|
||||
import com.fr.design.constants.UIConstants; |
||||
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.BorderFactory; |
||||
import javax.swing.JPanel; |
||||
import java.awt.BorderLayout; |
||||
import java.awt.CardLayout; |
||||
import java.awt.Component; |
||||
|
||||
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()); |
||||
this.tabbedPane = new CardLayout(); |
||||
center = new JPanel(tabbedPane); |
||||
this.add(center, BorderLayout.CENTER); |
||||
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]); |
||||
} |
||||
}; |
||||
tabsHeaderIconPane.setBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, UIConstants.SHADOW_GREY)); |
||||
this.add(tabsHeaderIconPane, BorderLayout.NORTH); |
||||
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