|
|
|
@ -2,12 +2,10 @@ package com.fr.design.report;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.utils.gui.UIComponentUtils; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.transaction.Configurations; |
|
|
|
@ -18,7 +16,6 @@ import javax.swing.JPanel;
|
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
@ -64,20 +61,21 @@ public class WriteShortCutsPane extends JPanel{
|
|
|
|
|
private JPanel getFeatureNamePane(){ |
|
|
|
|
JPanel featureNamePane = new JPanel(new BorderLayout()); |
|
|
|
|
featureNamePane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
UILabel name = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Feature_Name"), SwingConstants.RIGHT); |
|
|
|
|
UILabel name = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Feature_Name")); |
|
|
|
|
UILabel nextCol = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Cursor_To_Next_Column"), SwingConstants.CENTER); |
|
|
|
|
UILabel nextRow = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Cursor_To_Next_Row"), SwingConstants.CENTER); |
|
|
|
|
UILabel shortName = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Current_Keys"), SwingConstants.RIGHT); |
|
|
|
|
UILabel shortName = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Current_Keys")); |
|
|
|
|
UIComponentUtils.setLineWrap(shortName, MAX_LABEL_WIDTH); |
|
|
|
|
nextColHK = new UILabel(nextColString, SwingConstants.CENTER); |
|
|
|
|
JPanel switchBtnPane = getSwitchBtnPane(); |
|
|
|
|
UIButton switchbt = new UIButton(new LazyIcon("switch", 24)); |
|
|
|
|
switchbt.addActionListener(getListener()); |
|
|
|
|
switchbt.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Exchange_Key")); |
|
|
|
|
nextRowHK = new UILabel(nextRowString, SwingConstants.CENTER); |
|
|
|
|
|
|
|
|
|
JPanel centerPane = new JPanel(new BorderLayout()); |
|
|
|
|
centerPane.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
|
|
|
|
centerPane.add(column(10, |
|
|
|
|
row(10, cell(name).weight(0.13), cell(nextCol).weight(0.15), cell(new JPanel()).weight(0.12), cell(nextRow).weight(0.15), flex(0.45)), |
|
|
|
|
row(10, cell(shortName).weight(0.13), cell(nextColHK).weight(0.15), cell(switchBtnPane).weight(0.12), cell(nextRowHK).weight(0.15), flex(0.45)) |
|
|
|
|
row(cell(name).weight(0.2), cell(nextCol).weight(0.3), flex(0.1), cell(nextRow).weight(0.3), flex(0.1)), |
|
|
|
|
row(cell(shortName).weight(0.2), cell(nextColHK).weight(0.3), row(flex(), cell(switchbt), flex()).weight(0.1), cell(nextRowHK).weight(0.3), flex(0.1)) |
|
|
|
|
).getComponent()); |
|
|
|
|
|
|
|
|
|
featureNamePane.add(centerPane, BorderLayout.CENTER); |
|
|
|
@ -85,31 +83,20 @@ public class WriteShortCutsPane extends JPanel{
|
|
|
|
|
return featureNamePane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel getSwitchBtnPane() { |
|
|
|
|
UIButton switchbt = new UIButton(new LazyIcon("switch", new Dimension(36, 24))); |
|
|
|
|
switchbt.addActionListener(getListener()); |
|
|
|
|
switchbt.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Exchange_Key")); |
|
|
|
|
JPanel switchBtnPane = FRGUIPaneFactory.createCenterFlowInnerContainer_S_Pane(); |
|
|
|
|
switchBtnPane.add(switchbt); |
|
|
|
|
return switchBtnPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel getHintsPane(){ |
|
|
|
|
JPanel hintsPane = new JPanel(new BorderLayout()); |
|
|
|
|
hintsPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
|
|
|
|
|
UILabel systemDefault = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_System_Default"), SwingConstants.RIGHT); |
|
|
|
|
UILabel preColText = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Cursor_To_Previous_Column"), SwingConstants.CENTER); |
|
|
|
|
UILabel preRowText = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Cursor_To_Previous_Row"), SwingConstants.CENTER); |
|
|
|
|
preCol = new UILabel("Shift+" + nextColString, SwingConstants.LEFT); |
|
|
|
|
preRow = new UILabel("Shift+" + nextRowString, SwingConstants.LEFT); |
|
|
|
|
UILabel systemDefault = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_System_Default")); |
|
|
|
|
UILabel preColText = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Cursor_To_Previous_Column")); |
|
|
|
|
UILabel preRowText = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Cursor_To_Previous_Row")); |
|
|
|
|
preCol = new UILabel("Shift+" + nextColString); |
|
|
|
|
preRow = new UILabel("Shift+" + nextRowString); |
|
|
|
|
|
|
|
|
|
JPanel centerPane = new JPanel(new BorderLayout()); |
|
|
|
|
centerPane.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
|
|
|
|
|
|
|
|
|
centerPane.add(column(10, |
|
|
|
|
row(10, cell(systemDefault).weight(0.13), cell(preColText).weight(0.24), cell(preCol).weight(0.14), flex(0.64)), |
|
|
|
|
row(10, cell(new JPanel()).weight(0.13), cell(preRowText).weight(0.24), cell(preRow).weight(0.14), flex(0.64)) |
|
|
|
|
row(cell(systemDefault).weight(0.2), cell(preColText).weight(0.3), cell(preCol).weight(0.3), flex(0.2)), |
|
|
|
|
row( cell(new JPanel()).weight(0.2), cell(preRowText).weight(0.3), cell(preRow).weight(0.3), flex(0.2)) |
|
|
|
|
).getComponent()); |
|
|
|
|
|
|
|
|
|
hintsPane.add(centerPane, BorderLayout.CENTER); |
|
|
|
|