From ea6999c9419e7b2d760c180479d1430dbe7a0537 Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 23 May 2017 11:54:04 +0800 Subject: [PATCH 1/6] =?UTF-8?q?REPORT-2623=20=E6=A0=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=E5=9C=A8=E8=8F=9C=E5=8D=95=E6=A0=8F=E9=82=A3=E8=BE=B9?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=92=8C=E5=9C=A8=E5=B7=A6=E4=BE=A7=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=A0=91=E4=B8=8B=E9=9D=A2=E9=A2=84=E8=A7=88,=20?= =?UTF-8?q?=E5=88=97=E6=95=B0=E4=B8=8D=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/datapane/TreeTableDataDictPane.java | 524 +++++++++--------- 1 file changed, 267 insertions(+), 257 deletions(-) diff --git a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java index 7623ac37d..c332d5619 100644 --- a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java +++ b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java @@ -1,21 +1,21 @@ package com.fr.design.data.datapane; -import com.fr.design.data.DesignTableDataManager; import com.fr.data.impl.RecursionTableData; +import com.fr.design.data.DesignTableDataManager; import com.fr.design.data.datapane.preview.PreviewLabel; import com.fr.design.data.datapane.preview.PreviewLabel.Previewable; import com.fr.design.data.datapane.preview.PreviewTablePane; import com.fr.design.data.tabledata.wrapper.TableDataWrapper; -import com.fr.design.gui.ibutton.UIButton; -import com.fr.design.gui.ibutton.UIRadioButton; -import com.fr.design.gui.ilable.UILabel; -import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.dialog.BasicPane; import com.fr.design.editor.ValueEditorPane; import com.fr.design.editor.ValueEditorPaneFactory; import com.fr.design.editor.editor.ColumnIndexEditor; import com.fr.design.editor.editor.ColumnNameEditor; import com.fr.design.editor.editor.Editor; +import com.fr.design.gui.ibutton.UIButton; +import com.fr.design.gui.ibutton.UIRadioButton; +import com.fr.design.gui.ilable.UILabel; +import com.fr.design.layout.FRGUIPaneFactory; import com.fr.general.Inter; import com.fr.script.Calculator; import com.fr.stable.StringUtils; @@ -29,271 +29,281 @@ import java.awt.event.ItemListener; import java.util.List; public class TreeTableDataDictPane extends BasicPane implements Previewable { - - private UILabel selectTableDataLabel; - protected TableDataComboBox tableDataNameComboBox; - private UIRadioButton parentMarkRadio; - private UIRadioButton lengthMarkRadio; - private ButtonGroup markButtonGroup; - - UILabel originalMarkedFieldLabel1; - UILabel parentMarkedFieldLabel1; - UILabel treeDataFieldLabel1; - UILabel originalMarkedFieldLabel2; - UILabel treeDataFieldLabel2; - - private ValueEditorPane originalMarkedFieldPane1; - private ValueEditorPane parentMarkedFieldPane1; - private ValueEditorPane originalMarkedFieldPane2; - public TreeTableDataDictPane(){ + private UILabel selectTableDataLabel; + protected TableDataComboBox tableDataNameComboBox; + private UIRadioButton parentMarkRadio; + private UIRadioButton lengthMarkRadio; + private ButtonGroup markButtonGroup; + + UILabel originalMarkedFieldLabel1; + UILabel parentMarkedFieldLabel1; + UILabel treeDataFieldLabel1; + UILabel originalMarkedFieldLabel2; + UILabel treeDataFieldLabel2; + + private ValueEditorPane originalMarkedFieldPane1; + private ValueEditorPane parentMarkedFieldPane1; + private ValueEditorPane originalMarkedFieldPane2; + + public TreeTableDataDictPane() { this(StringUtils.EMPTY); } - public TreeTableDataDictPane(String treeName) { - this.setLayout(new BorderLayout(5,30)); - this.setBorder(BorderFactory.createEmptyBorder(20, 20, 0, 0)); - selectTableDataLabel = new UILabel(Inter.getLocText(new String[]{"Please_Select","Single", "DS-TableData"}) + " :"); - setTableDataNameComboBox(treeName); - tableDataNameComboBox.setPreferredSize(new Dimension(180, 20)); - JPanel tableFlowPane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); - tableFlowPane.add(selectTableDataLabel); - tableFlowPane.add(tableDataNameComboBox); - tableDataNameComboBox.addItemListener(new ItemListener(){ - public void itemStateChanged(ItemEvent e) { - tdChange(); - } - }); - tableFlowPane.add(new PreviewLabel(this)); - this.add(tableFlowPane, BorderLayout.NORTH); - JPanel centerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); - this.add(centerPane,BorderLayout.CENTER); - parentMarkRadio = new UIRadioButton(Inter.getLocText("Build_Tree_Accord_Parent_Marked_Filed"), true); - lengthMarkRadio = new UIRadioButton(Inter.getLocText("Build_Tree_Accord_Marked_Filed_Length")); - parentMarkRadio.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - if(isBuildByParentFiled()) { - makeParentEnable(); - tdChange(); - } - } - }); - lengthMarkRadio.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - if(!isBuildByParentFiled()) { - makeLengthEnable(); - tdChange(); - } - } - }); - markButtonGroup = new ButtonGroup(); - markButtonGroup.add(parentMarkRadio); - markButtonGroup.add(lengthMarkRadio); - - originalMarkedFieldLabel1 = new UILabel(Inter.getLocText("Original_Marked_Filed") + " :", SwingConstants.RIGHT); - parentMarkedFieldLabel1 = new UILabel(" " + Inter.getLocText("Parent_Marked_Field") + " :", SwingConstants.RIGHT); - treeDataFieldLabel1 = new UILabel(" " + Inter.getLocText("Tree_Data_Field") + " :", SwingConstants.RIGHT); - originalMarkedFieldLabel2 = new UILabel(Inter.getLocText("Original_Marked_Filed") + " :", SwingConstants.RIGHT); - treeDataFieldLabel2 = new UILabel(" " + Inter.getLocText("Tree_Data_Field") + " :", SwingConstants.RIGHT); - + + public TreeTableDataDictPane(String treeName) { + this.setLayout(new BorderLayout(5, 30)); + this.setBorder(BorderFactory.createEmptyBorder(20, 20, 0, 0)); + selectTableDataLabel = new UILabel(Inter.getLocText(new String[]{"Please_Select", "Single", "DS-TableData"}) + " :"); + setTableDataNameComboBox(treeName); + tableDataNameComboBox.setPreferredSize(new Dimension(180, 20)); + JPanel tableFlowPane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); + tableFlowPane.add(selectTableDataLabel); + tableFlowPane.add(tableDataNameComboBox); + tableDataNameComboBox.addItemListener(new ItemListener() { + public void itemStateChanged(ItemEvent e) { + tdChange(); + } + }); + tableFlowPane.add(new PreviewLabel(this)); + this.add(tableFlowPane, BorderLayout.NORTH); + JPanel centerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); + this.add(centerPane, BorderLayout.CENTER); + parentMarkRadio = new UIRadioButton(Inter.getLocText("Build_Tree_Accord_Parent_Marked_Filed"), true); + lengthMarkRadio = new UIRadioButton(Inter.getLocText("Build_Tree_Accord_Marked_Filed_Length")); + parentMarkRadio.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + if (isBuildByParentFiled()) { + makeParentEnable(); + tdChange(); + } + } + }); + lengthMarkRadio.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + if (!isBuildByParentFiled()) { + makeLengthEnable(); + tdChange(); + } + } + }); + markButtonGroup = new ButtonGroup(); + markButtonGroup.add(parentMarkRadio); + markButtonGroup.add(lengthMarkRadio); + + originalMarkedFieldLabel1 = new UILabel(Inter.getLocText("Original_Marked_Filed") + " :", SwingConstants.RIGHT); + parentMarkedFieldLabel1 = new UILabel(" " + Inter.getLocText("Parent_Marked_Field") + " :", SwingConstants.RIGHT); + treeDataFieldLabel1 = new UILabel(" " + Inter.getLocText("Tree_Data_Field") + " :", SwingConstants.RIGHT); + originalMarkedFieldLabel2 = new UILabel(Inter.getLocText("Original_Marked_Filed") + " :", SwingConstants.RIGHT); + treeDataFieldLabel2 = new UILabel(" " + Inter.getLocText("Tree_Data_Field") + " :", SwingConstants.RIGHT); + // originalMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); // parentMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); // originalMarkedFieldPane2 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); - originalMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] { new ColumnNameEditor(), new ColumnIndexEditor() }); - parentMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] { new ColumnNameEditor(), new ColumnIndexEditor() }); - originalMarkedFieldPane2 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] { new ColumnNameEditor(), new ColumnIndexEditor() }); - - makeParentEnable(); - - JPanel p1 = createCenterFlowZeroGapBorderPane(originalMarkedFieldLabel1, originalMarkedFieldPane1); - JPanel p2 = createCenterFlowZeroGapBorderPane(parentMarkedFieldLabel1, parentMarkedFieldPane1); - JPanel border1 = new JPanel(); - border1.setLayout(new BorderLayout(0, 10)); - border1.add(p1, BorderLayout.NORTH); - border1.add(p2, BorderLayout.CENTER); - JPanel p4 = createCenterFlowZeroGapBorderPane(originalMarkedFieldLabel2, originalMarkedFieldPane2); - JPanel border2 = new JPanel(); - border2.setLayout(new BorderLayout(0, 20)); - border2.add(p4, BorderLayout.NORTH); - - JPanel xx = FRGUIPaneFactory.createBorderLayout_S_Pane(); - xx.add(parentMarkRadio,BorderLayout.NORTH); - xx.add(border1,BorderLayout.CENTER); - JPanel xxx = FRGUIPaneFactory.createBorderLayout_S_Pane(); - xxx.add(lengthMarkRadio,BorderLayout.NORTH); - xxx.add(border2,BorderLayout.CENTER); - JPanel buildTreePanel = new JPanel(new BorderLayout(5, 30)); - buildTreePanel.add(xx,BorderLayout.NORTH); - buildTreePanel.add(xxx,BorderLayout.CENTER); - centerPane.add(buildTreePanel, BorderLayout.NORTH); - JPanel previewPanel = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); - UIButton treeDataPreviewButton = new UIButton(Inter.getLocText("Preview")); - previewPanel.add(treeDataPreviewButton); - treeDataPreviewButton.addActionListener(new ActionListener() { - @Override - public void actionPerformed(ActionEvent e) { - TableDataWrapper tableDataWrappe = tableDataNameComboBox.getSelectedItem(); - if(tableDataWrappe == null) { - return; - } - RecursionTableData rtd = new RecursionTableData(); - rtd.setOriginalTableDataName(tableDataWrappe.getTableDataName()); - if(isBuildByParentFiled()) { - rtd.setMarkFields((Integer.parseInt(originalMarkedFieldPane1.update().toString()) - 1) + ""); - rtd.setParentmarkFields(Integer.parseInt(parentMarkedFieldPane1.update().toString()) - 1 + ""); - } else { - rtd.setMarkFields(Integer.parseInt(originalMarkedFieldPane2.update().toString()) - 1 + ""); - rtd.setParentmarkFields("-1"); - } - rtd.setTableDataSource(DesignTableDataManager.getEditingTableDataSource()); - rtd.createDataModel(Calculator.createCalculator()); - PreviewTablePane.previewTableData(rtd); - } - }); - centerPane.add(previewPanel, BorderLayout.CENTER); - } + originalMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); + parentMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); + originalMarkedFieldPane2 = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); + + makeParentEnable(); + + JPanel p1 = createCenterFlowZeroGapBorderPane(originalMarkedFieldLabel1, originalMarkedFieldPane1); + JPanel p2 = createCenterFlowZeroGapBorderPane(parentMarkedFieldLabel1, parentMarkedFieldPane1); + JPanel border1 = new JPanel(); + border1.setLayout(new BorderLayout(0, 10)); + border1.add(p1, BorderLayout.NORTH); + border1.add(p2, BorderLayout.CENTER); + JPanel p4 = createCenterFlowZeroGapBorderPane(originalMarkedFieldLabel2, originalMarkedFieldPane2); + JPanel border2 = new JPanel(); + border2.setLayout(new BorderLayout(0, 20)); + border2.add(p4, BorderLayout.NORTH); + + JPanel xx = FRGUIPaneFactory.createBorderLayout_S_Pane(); + xx.add(parentMarkRadio, BorderLayout.NORTH); + xx.add(border1, BorderLayout.CENTER); + JPanel xxx = FRGUIPaneFactory.createBorderLayout_S_Pane(); + xxx.add(lengthMarkRadio, BorderLayout.NORTH); + xxx.add(border2, BorderLayout.CENTER); + JPanel buildTreePanel = new JPanel(new BorderLayout(5, 30)); + buildTreePanel.add(xx, BorderLayout.NORTH); + buildTreePanel.add(xxx, BorderLayout.CENTER); + centerPane.add(buildTreePanel, BorderLayout.NORTH); + JPanel previewPanel = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); + UIButton treeDataPreviewButton = new UIButton(Inter.getLocText("Preview")); + previewPanel.add(treeDataPreviewButton); + treeDataPreviewButton.addActionListener(new ActionListener() { + @Override + public void actionPerformed(ActionEvent e) { + TableDataWrapper tableDataWrappe = tableDataNameComboBox.getSelectedItem(); + if (tableDataWrappe == null) { + return; + } + RecursionTableData rtd = new RecursionTableData(); + rtd.setOriginalTableDataName(tableDataWrappe.getTableDataName()); + if (isBuildByParentFiled()) { + Object o = parentMarkedFieldPane1.update(); + rtd.setParentmarkFields((Integer) o - 1 + ""); + rtd.setParentmarkFieldName("" + o); + Object o2 = originalMarkedFieldPane1.update(); + rtd.setMarkFields((Integer) o2 - 1 + ""); + rtd.setMarkFieldName("" + o2); + } else { + Object o = originalMarkedFieldPane2.update(); + if (o == null) { + rtd.setMarkFields("-1"); + } else { + rtd.setMarkFields((Integer) o - 1 + ""); + rtd.setMarkFieldName("" + o); + } + } + rtd.setTableDataSource(DesignTableDataManager.getEditingTableDataSource()); + rtd.createDataModel(Calculator.createCalculator()); + PreviewTablePane.previewTableData(rtd); + } + }); + centerPane.add(previewPanel, BorderLayout.CENTER); + } protected void setTableDataNameComboBox(String treeName) { - tableDataNameComboBox = new TableDataComboBox(DesignTableDataManager.getEditingTableDataSource(),treeName); + tableDataNameComboBox = new TableDataComboBox(DesignTableDataManager.getEditingTableDataSource(), treeName); } - private void tdChange(){ - TableDataWrapper tableDataWrappe = this.tableDataNameComboBox.getSelectedItem(); - if (tableDataWrappe == null) { - return; - } - ValueEditorPane[] valueEditorPanes; - if(isBuildByParentFiled()) { - valueEditorPanes = new ValueEditorPane[]{originalMarkedFieldPane1, parentMarkedFieldPane1}; - } else { - valueEditorPanes = new ValueEditorPane[]{originalMarkedFieldPane2}; - } - try { - List namelist = tableDataWrappe.calculateColumnNameList(); - int len = namelist.size(); - String[] columnNames = new String[len]; - namelist.toArray(columnNames); - for(int i = 0; i < valueEditorPanes.length; i ++) { - valueEditorPanes[i].setEditors(new Editor[] { new ColumnNameEditor(columnNames), new ColumnIndexEditor(len) }, columnNames[0]); - } - } catch (Exception e) { - for(int i = 0; i < valueEditorPanes.length; i ++) { - valueEditorPanes[i].setEditors(new Editor[] { new ColumnNameEditor(), new ColumnIndexEditor() }, 1); - } - } finally { - valueEditorPanes = null; - } - } - - @Override - protected String title4PopupWindow() { - return "TreeTableDataDictionay"; - } - - public RecursionTableData update() { - RecursionTableData td = new RecursionTableData(); - if(tableDataNameComboBox.getSelectedItem()==null){ - td.setOriginalTableDataName(null); - }else{ - td.setOriginalTableDataName(tableDataNameComboBox.getSelectedItem().getTableDataName()); - } - if(isBuildByParentFiled()) { - Object o = parentMarkedFieldPane1.update(StringUtils.EMPTY); - if(o instanceof Object[]){ - Object[] temp = (Object[]) o; - td.setParentmarkFields(((Integer)temp[0]).intValue() - 1 + ""); - td.setParentmarkFieldName((String) temp[1]); - } - Object o2 = originalMarkedFieldPane1.update(StringUtils.EMPTY); - if(o2 instanceof Object[]){ - Object[] temp = (Object[]) o2; - td.setMarkFields(((Integer)temp[0]).intValue() - 1 + ""); - td.setMarkFieldName((String) temp[1]); - } - } else { - Object o = originalMarkedFieldPane2.update(StringUtils.EMPTY); - if(o == null || !(o instanceof Object[])){ - td.setMarkFields("-1"); - } else { - Object[] temp = (Object[]) o; - td.setMarkFields(((Integer)temp[0]).intValue() - 1 + ""); - td.setMarkFieldName((String) temp[1]); - } - } - td.setTableDataSource(DesignTableDataManager.getEditingTableDataSource()); - return td; - } - - public void populate(RecursionTableData rtb) { - if(StringUtils.isNotEmpty(rtb.getParentmarkFields())) { - makeParentEnable(); - parentMarkRadio.setSelected(true); - lengthMarkRadio.setSelected(false); - tableDataNameComboBox.setSelectedTableDataByName(rtb.getOriginalTableDataName()); - if(StringUtils.isNotEmpty(rtb.getMarkFieldName())){ - originalMarkedFieldPane1.populate(rtb.getMarkFieldName()); - }else{ - originalMarkedFieldPane1.populate(rtb.getMarkFieldIndex() + 1); - } - if(StringUtils.isNotEmpty(rtb.getParentmarkFieldName())){ - parentMarkedFieldPane1.populate(rtb.getParentmarkFieldName()); - }else{ - parentMarkedFieldPane1.populate(rtb.getParentmarkFieldIndex() + 1); - } - } else { - makeLengthEnable(); - lengthMarkRadio.setSelected(true); - parentMarkRadio.setSelected(false); - tableDataNameComboBox.setSelectedTableDataByName(rtb.getOriginalTableDataName()); - if(StringUtils.isNotEmpty(rtb.getMarkFieldName())){ - originalMarkedFieldPane2.populate(rtb.getMarkFieldName()); - }else{ - originalMarkedFieldPane2.populate(rtb.getMarkFieldIndex() + 1); - } - } - } + private void tdChange() { + TableDataWrapper tableDataWrappe = this.tableDataNameComboBox.getSelectedItem(); + if (tableDataWrappe == null) { + return; + } + ValueEditorPane[] valueEditorPanes; + if (isBuildByParentFiled()) { + valueEditorPanes = new ValueEditorPane[]{originalMarkedFieldPane1, parentMarkedFieldPane1}; + } else { + valueEditorPanes = new ValueEditorPane[]{originalMarkedFieldPane2}; + } + try { + List namelist = tableDataWrappe.calculateColumnNameList(); + int len = namelist.size(); + String[] columnNames = new String[len]; + namelist.toArray(columnNames); + for (int i = 0; i < valueEditorPanes.length; i++) { + valueEditorPanes[i].setEditors(new Editor[]{new ColumnNameEditor(columnNames), new ColumnIndexEditor(len)}, columnNames[0]); + } + } catch (Exception e) { + for (int i = 0; i < valueEditorPanes.length; i++) { + valueEditorPanes[i].setEditors(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}, 1); + } + } finally { + valueEditorPanes = null; + } + } + + @Override + protected String title4PopupWindow() { + return "TreeTableDataDictionay"; + } + + public RecursionTableData update() { + RecursionTableData td = new RecursionTableData(); + if (tableDataNameComboBox.getSelectedItem() == null) { + td.setOriginalTableDataName(null); + } else { + td.setOriginalTableDataName(tableDataNameComboBox.getSelectedItem().getTableDataName()); + } + if (isBuildByParentFiled()) { + Object o = parentMarkedFieldPane1.update(StringUtils.EMPTY); + if (o instanceof Object[]) { + Object[] temp = (Object[]) o; + td.setParentmarkFields(((Integer) temp[0]).intValue() - 1 + ""); + td.setParentmarkFieldName((String) temp[1]); + } + Object o2 = originalMarkedFieldPane1.update(StringUtils.EMPTY); + if (o2 instanceof Object[]) { + Object[] temp = (Object[]) o2; + td.setMarkFields(((Integer) temp[0]).intValue() - 1 + ""); + td.setMarkFieldName((String) temp[1]); + } + } else { + Object o = originalMarkedFieldPane2.update(StringUtils.EMPTY); + if (o == null || !(o instanceof Object[])) { + td.setMarkFields("-1"); + } else { + Object[] temp = (Object[]) o; + td.setMarkFields(((Integer) temp[0]).intValue() - 1 + ""); + td.setMarkFieldName((String) temp[1]); + } + } + td.setTableDataSource(DesignTableDataManager.getEditingTableDataSource()); + return td; + } + + public void populate(RecursionTableData rtb) { + if (StringUtils.isNotEmpty(rtb.getParentmarkFields())) { + makeParentEnable(); + parentMarkRadio.setSelected(true); + lengthMarkRadio.setSelected(false); + tableDataNameComboBox.setSelectedTableDataByName(rtb.getOriginalTableDataName()); + if (StringUtils.isNotEmpty(rtb.getMarkFieldName())) { + originalMarkedFieldPane1.populate(rtb.getMarkFieldName()); + } else { + originalMarkedFieldPane1.populate(rtb.getMarkFieldIndex() + 1); + } + if (StringUtils.isNotEmpty(rtb.getParentmarkFieldName())) { + parentMarkedFieldPane1.populate(rtb.getParentmarkFieldName()); + } else { + parentMarkedFieldPane1.populate(rtb.getParentmarkFieldIndex() + 1); + } + } else { + makeLengthEnable(); + lengthMarkRadio.setSelected(true); + parentMarkRadio.setSelected(false); + tableDataNameComboBox.setSelectedTableDataByName(rtb.getOriginalTableDataName()); + if (StringUtils.isNotEmpty(rtb.getMarkFieldName())) { + originalMarkedFieldPane2.populate(rtb.getMarkFieldName()); + } else { + originalMarkedFieldPane2.populate(rtb.getMarkFieldIndex() + 1); + } + } + } /** * */ - public void preview() { - TableDataWrapper tableDataWrappe = tableDataNameComboBox.getSelectedItem(); - if (tableDataWrappe == null) { - return; - } - tableDataWrappe.previewData(); - } - - private JPanel createCenterFlowZeroGapBorderPane(Component p1, Component p2) { - JPanel p = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); - p.add(p1); - p.add(p2); - return p; - } - - private boolean isBuildByParentFiled() { - return parentMarkRadio.isSelected(); - } - - private void makeParentEnable() { - originalMarkedFieldPane1.setEnabled(true); - parentMarkedFieldPane1.setEnabled(true); - originalMarkedFieldLabel1.setEnabled(true); - parentMarkedFieldLabel1.setEnabled(true); - treeDataFieldLabel1.setEnabled(true); - originalMarkedFieldLabel2.setEnabled(false); - treeDataFieldLabel2.setEnabled(false); - originalMarkedFieldPane2.setEnabled(false); - } - - private void makeLengthEnable() { - originalMarkedFieldPane1.setEnabled(false); - parentMarkedFieldPane1.setEnabled(false); - originalMarkedFieldLabel1.setEnabled(false); - parentMarkedFieldLabel1.setEnabled(false); - treeDataFieldLabel1.setEnabled(false); - originalMarkedFieldLabel2.setEnabled(true); - treeDataFieldLabel2.setEnabled(true); - originalMarkedFieldPane2.setEnabled(true); - } + public void preview() { + TableDataWrapper tableDataWrappe = tableDataNameComboBox.getSelectedItem(); + if (tableDataWrappe == null) { + return; + } + tableDataWrappe.previewData(); + } + + private JPanel createCenterFlowZeroGapBorderPane(Component p1, Component p2) { + JPanel p = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); + p.add(p1); + p.add(p2); + return p; + } + + private boolean isBuildByParentFiled() { + return parentMarkRadio.isSelected(); + } + + private void makeParentEnable() { + originalMarkedFieldPane1.setEnabled(true); + parentMarkedFieldPane1.setEnabled(true); + originalMarkedFieldLabel1.setEnabled(true); + parentMarkedFieldLabel1.setEnabled(true); + treeDataFieldLabel1.setEnabled(true); + originalMarkedFieldLabel2.setEnabled(false); + treeDataFieldLabel2.setEnabled(false); + originalMarkedFieldPane2.setEnabled(false); + } + + private void makeLengthEnable() { + originalMarkedFieldPane1.setEnabled(false); + parentMarkedFieldPane1.setEnabled(false); + originalMarkedFieldLabel1.setEnabled(false); + parentMarkedFieldLabel1.setEnabled(false); + treeDataFieldLabel1.setEnabled(false); + originalMarkedFieldLabel2.setEnabled(true); + treeDataFieldLabel2.setEnabled(true); + originalMarkedFieldPane2.setEnabled(true); + } } \ No newline at end of file From aad2c67d318e9f66ddb5dc43012ebe19ac298fd6 Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 23 May 2017 13:41:49 +0800 Subject: [PATCH 2/6] =?UTF-8?q?pmd=20=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/datapane/TreeTableDataDictPane.java | 16 ++++++++-------- .../src/com/fr/design/locale/designer.properties | 10 +++++----- .../fr/design/locale/designer_en_US.properties | 10 +++++----- .../fr/design/locale/designer_ja_JP.properties | 10 +++++----- .../fr/design/locale/designer_ko_KR.properties | 10 +++++----- .../fr/design/locale/designer_zh_CN.properties | 10 +++++----- .../fr/design/locale/designer_zh_TW.properties | 10 +++++----- 7 files changed, 38 insertions(+), 38 deletions(-) diff --git a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java index c332d5619..1cac6ce98 100644 --- a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java +++ b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java @@ -68,8 +68,8 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { this.add(tableFlowPane, BorderLayout.NORTH); JPanel centerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); this.add(centerPane, BorderLayout.CENTER); - parentMarkRadio = new UIRadioButton(Inter.getLocText("Build_Tree_Accord_Parent_Marked_Filed"), true); - lengthMarkRadio = new UIRadioButton(Inter.getLocText("Build_Tree_Accord_Marked_Filed_Length")); + parentMarkRadio = new UIRadioButton(Inter.getLocText("FR-Build_Tree_Accord_Parent_Marked_Filed"), true); + lengthMarkRadio = new UIRadioButton(Inter.getLocText("FR-Build_Tree_Accord_Marked_Filed_Length")); parentMarkRadio.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (isBuildByParentFiled()) { @@ -90,11 +90,11 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { markButtonGroup.add(parentMarkRadio); markButtonGroup.add(lengthMarkRadio); - originalMarkedFieldLabel1 = new UILabel(Inter.getLocText("Original_Marked_Filed") + " :", SwingConstants.RIGHT); - parentMarkedFieldLabel1 = new UILabel(" " + Inter.getLocText("Parent_Marked_Field") + " :", SwingConstants.RIGHT); - treeDataFieldLabel1 = new UILabel(" " + Inter.getLocText("Tree_Data_Field") + " :", SwingConstants.RIGHT); - originalMarkedFieldLabel2 = new UILabel(Inter.getLocText("Original_Marked_Filed") + " :", SwingConstants.RIGHT); - treeDataFieldLabel2 = new UILabel(" " + Inter.getLocText("Tree_Data_Field") + " :", SwingConstants.RIGHT); + originalMarkedFieldLabel1 = new UILabel(Inter.getLocText("FR-Original_Marked_Filed") + " :", SwingConstants.RIGHT); + parentMarkedFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Parent_Marked_Field") + " :", SwingConstants.RIGHT); + treeDataFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Tree_Data_Field") + " :", SwingConstants.RIGHT); + originalMarkedFieldLabel2 = new UILabel(Inter.getLocText("FR-Original_Marked_Filed") + " :", SwingConstants.RIGHT); + treeDataFieldLabel2 = new UILabel(" " + Inter.getLocText("FR-Tree_Data_Field") + " :", SwingConstants.RIGHT); // originalMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); // parentMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); @@ -127,7 +127,7 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { buildTreePanel.add(xxx, BorderLayout.CENTER); centerPane.add(buildTreePanel, BorderLayout.NORTH); JPanel previewPanel = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); - UIButton treeDataPreviewButton = new UIButton(Inter.getLocText("Preview")); + UIButton treeDataPreviewButton = new UIButton(Inter.getLocText("FR-Designer_Preview")); previewPanel.add(treeDataPreviewButton); treeDataPreviewButton.addActionListener(new ActionListener() { @Override diff --git a/designer_base/src/com/fr/design/locale/designer.properties b/designer_base/src/com/fr/design/locale/designer.properties index 182239ee8..0f93c4d18 100644 --- a/designer_base/src/com/fr/design/locale/designer.properties +++ b/designer_base/src/com/fr/design/locale/designer.properties @@ -830,7 +830,7 @@ Form-TextArea=TextArea FR-Designer_Https_Enable= Widget-Custom_Widget_Config=Custom Widget already_exists=already exists -Original_Marked_Filed=Original Marked Filed +FR-Original_Marked_Filed=Original Marked Filed BackgroundTexture-Sand=Beach Values=Values Not_use_a_cell_attribute_table_editing=You may not use a cell attribute table editing @@ -1158,7 +1158,7 @@ Multiline=Multiline Datasource-Convert_Charset=Convert Char Set DashBoard-ConnectionList=ConnectionList Utils-Submit_Forcibly=Submit Forcibly -Parent_Marked_Field=Parent Marked Field +FR-Parent_Marked_Field=Parent Marked Field Logout=Logout FR-Designer_Show_Blank_Row= FR-Base_Format= @@ -1197,7 +1197,7 @@ Privilege-Selected_None_Of_Any_Items=Selected None Of Any Items FRFont-Size=Size Function-J2EE_server=J2EE server FR-Designer_Allow_Blank=All Blank -Build_Tree_Accord_Parent_Marked_Filed=Build Tree according parent's marked filed +FR-Build_Tree_Accord_Parent_Marked_Filed=Build Tree according parent's marked filed Preference-Horizontal_Scroll_Bar_Visible=Horizontal Scroll Bar Visible Scope=Scope Save_All_Records_In_Memory=Save All Records in Memory @@ -1266,7 +1266,7 @@ DateFormat-Custom_Warning=Note\: Custom date format does not support the format Unit_MM=MM Server-Start=Start CellPage-Can_Break_On_Paginate=Can Break On Paginate -Build_Tree_Accord_Marked_Filed_Length=Build Tree according marked filed's length +FR-Build_Tree_Accord_Marked_Filed_Length=Build Tree according marked filed's length ComboCheckBox-Start_Symbol=Start Symbol Real=Real RWA-Batch_Modify_Cells=Batch Modify Cells @@ -1714,7 +1714,7 @@ Condition_Display=Condition Display FR-Server-Design_template_unopened= Function-Function_Class_Name=Function Class Name Schedule-Template=Template -Tree_Data_Field=Tree Data Field +FR-Tree_Data_Field=Tree Data Field Border-Style-Normal=Rectangular Top_And_Double_Bottom_Border_Line=Top And Double Bottom Border Line FR-Server_Embedded_Server_Start=Server in Design-Start diff --git a/designer_base/src/com/fr/design/locale/designer_en_US.properties b/designer_base/src/com/fr/design/locale/designer_en_US.properties index 4c0135daf..a7adcc2c1 100644 --- a/designer_base/src/com/fr/design/locale/designer_en_US.properties +++ b/designer_base/src/com/fr/design/locale/designer_en_US.properties @@ -831,7 +831,7 @@ Form-TextArea=Text Fields FR-Designer_Https_Enable=Start https Widget-Custom_Widget_Config=Custom control already_exists=Already exists -Original_Marked_Filed=Original Tag Field +FR-Original_Marked_Filed=Original Tag Field BackgroundTexture-Sand=Beach Values=Values Not_use_a_cell_attribute_table_editing=You may not use a cell attribute table editing @@ -1159,7 +1159,7 @@ Multiline=Multi-line edit Datasource-Convert_Charset=Encoding Conversion DashBoard-ConnectionList=Data Connection Utils-Submit_Forcibly=Submit forcibly -Parent_Marked_Field=Parent Tag Field +FR-Parent_Marked_Field=Parent Tag Field Logout=Logout FR-Designer_Show_Blank_Row=Supplement blank line FR-Base_Format=Format @@ -1198,7 +1198,7 @@ Privilege-Selected_None_Of_Any_Items=Selected None FRFont-Size=Size Function-J2EE_server=J2EE server FR-Designer_Allow_Blank=Allow NULLs -Build_Tree_Accord_Parent_Marked_Filed=Build Tree according to the parent tag field of the selected data set +FR-Build_Tree_Accord_Parent_Marked_Filed=Build Tree according to the parent tag field of the selected data set Preference-Horizontal_Scroll_Bar_Visible=Horizontal Scroll Bar Visible Scope=Scope Save_All_Records_In_Memory=Save All Records in Memory @@ -1267,7 +1267,7 @@ DateFormat-Custom_Warning=Note\: Custom date format does not support the format Unit_MM=MM Server-Start=Start CellPage-Can_Break_On_Paginate=Can break when paging -Build_Tree_Accord_Marked_Filed_Length=Build tree according to tag field's length +FR-Build_Tree_Accord_Marked_Filed_Length=Build tree according to tag field's length ComboCheckBox-Start_Symbol=Initializer Real=Real RWA-Batch_Modify_Cells=Batch Modify Cells @@ -1715,7 +1715,7 @@ Condition_Display=Condition Display FR-Server-Design_template_unopened=Can't open the template Function-Function_Class_Name=Function Class Name Schedule-Template=Template name -Tree_Data_Field=Tree Data Field +FR-Tree_Data_Field=Tree Data Field Border-Style-Normal=Rectangular Border Top_And_Double_Bottom_Border_Line=Top and bottom double border FR-Server_Embedded_Server_Start=Built-in server-Open diff --git a/designer_base/src/com/fr/design/locale/designer_ja_JP.properties b/designer_base/src/com/fr/design/locale/designer_ja_JP.properties index d5d9dac39..74c2df045 100644 --- a/designer_base/src/com/fr/design/locale/designer_ja_JP.properties +++ b/designer_base/src/com/fr/design/locale/designer_ja_JP.properties @@ -826,7 +826,7 @@ Form-TextArea=\u6587\u66F8\u57DF FR-Designer_Https_Enable=https\u4F7F\u7528\u958B\u59CB Widget-Custom_Widget_Config=\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB already_exists=\u3053\u3053\u306F\u3059\u3067\u306B\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 -Original_Marked_Filed=\u521D\u671F\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 +FR-Original_Marked_Filed=\u521D\u671F\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 BackgroundTexture-Sand=\u7802\u6D5C Values=\u5024 Not_use_a_cell_attribute_table_editing=\u3042\u306A\u305F\u304C\u7DE8\u96C6\u3059\u308B\u30BB\u30EB\u306E\u5C5E\u6027\u30C6\u30FC\u30D6\u30EB\u3092\u4F7F\u7528\u3059\u308B\u3053\u3068 @@ -1154,7 +1154,7 @@ Multiline=\u8907\u6570\u884C\u7DE8\u96C6 Datasource-Convert_Charset=\u6587\u5B57\u30B3\u30FC\u30C9\u5909\u63DB DashBoard-ConnectionList=\u30C7\u30FC\u30BF\u63A5\u7D9A Utils-Submit_Forcibly=\u5F37\u884C\u63D0\u51FA -Parent_Marked_Field=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 +FR-Parent_Marked_Field=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 Logout=\u9000\u51FA FR-Designer_Show_Blank_Row=\u7A7A\u767D\u884C\u3092\u88DC\u5145 FR-Base_Format=\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8 @@ -1193,7 +1193,7 @@ Privilege-Selected_None_Of_Any_Items=\u9805\u76EE\u3092\u3072\u3068\u3064\u3082\ FRFont-Size=\u30B5\u30A4\u30BA Function-J2EE_server=J2EE_server FR-Designer_Allow_Blank=\u7A7A\u6B04\u3042\u308A -Build_Tree_Accord_Parent_Marked_Filed=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u3001\u69CB\u7BC9\u3055\u308C\u305F\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58 +FR-Build_Tree_Accord_Parent_Marked_Filed=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u3001\u69CB\u7BC9\u3055\u308C\u305F\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58 Preference-Horizontal_Scroll_Bar_Visible=\u6C34\u5E73\u30B9\u30AF\u30ED\u30FC\u30EB\u30D0\u30FC\u306F\u53EF\u8996 Scope=\u30B9\u30B3\u30FC\u30D7 Save_All_Records_In_Memory=\u5168\u3066\u306E\u8A18\u9332\u306F\u30E1\u30E2\u30EA\u306B\u4FDD\u5B58\u3055\u308C\u3066\u3044\u307E\u3059 @@ -1262,7 +1262,7 @@ DateFormat-Custom_Warning=\u6CE8\uFF1A\u30AB\u30B9\u30BF\u30E0\u65E5\u6642\u30D5 Unit_MM=\u30DF\u30EA\u30E1\u30FC\u30C8\u30EB Server-Start=\u8D77\u52D5 CellPage-Can_Break_On_Paginate=\u30DA\u30FC\u30B8\u30F3\u30B0\u304C\u5207\u65AD\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u305F\u3068\u304D -Build_Tree_Accord_Marked_Filed_Length=\u69CB\u7BC9\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58\u3057\u305F\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9577\u3055\u3092\u30DE\u30FC\u30AF +FR-Build_Tree_Accord_Marked_Filed_Length=\u69CB\u7BC9\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58\u3057\u305F\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9577\u3055\u3092\u30DE\u30FC\u30AF ComboCheckBox-Start_Symbol=\u958B\u59CB\u6587\u5B57 Real=\u5B9F\u969B RWA-Batch_Modify_Cells=\u6279\u91CF\u4FEE\u6B63\u30BB\u30EB @@ -1710,7 +1710,7 @@ Condition_Display=\u6761\u4EF6\u8868\u793A FR-Server-Design_template_unopened=\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u958B\u304F\u3053\u3068\u304C\u3067\u304D\u307E\u305B\u3093 Function-Function_Class_Name=\u95A2\u6570\u30AF\u30E9\u30B9\u540D Schedule-Template=\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D -Tree_Data_Field=\u30C4\u30EA\u30FC\u30C7\u30FC\u30BF\u30D5\u30A3\u30FC\u30EB\u30C9 +FR-Tree_Data_Field=\u30C4\u30EA\u30FC\u30C7\u30FC\u30BF\u30D5\u30A3\u30FC\u30EB\u30C9 Border-Style-Normal=\u76F4\u89D2\u306E\u56FD\u5883\u306B Top_And_Double_Bottom_Border_Line=\u4E0A\u30D5\u30EC\u30FC\u30E0\u30E9\u30A4\u30F3\u3068\u53CC\u4E0B\u30D5\u30EC\u30FC\u30E0\u30E9\u30A4\u30F3 FR-Server_Embedded_Server_Start=\u5185\u8535\u30B5\u30FC\u30D0\u30FC-\u958B\u304F diff --git a/designer_base/src/com/fr/design/locale/designer_ko_KR.properties b/designer_base/src/com/fr/design/locale/designer_ko_KR.properties index 39ebe76b6..d7ae63098 100644 --- a/designer_base/src/com/fr/design/locale/designer_ko_KR.properties +++ b/designer_base/src/com/fr/design/locale/designer_ko_KR.properties @@ -827,7 +827,7 @@ Form-TextArea=\uD14D\uC2A4\uD2B8\uC601\uC5ED FR-Designer_Https_Enable=\uC2E4\uD589https Widget-Custom_Widget_Config=\uC0AC\uC6A9\uC790\uC815\uC758\uC18C\uD504\uD2B8\uC6E8\uC5B4\uC81C\uC5B4 already_exists=\uC774\uBBF8\uC874\uC7AC\uD569\uB2C8\uB2E4. -Original_Marked_Filed=\uCD08\uAE30\uD0DC\uADF8\uD544\uB4DC +FR-Original_Marked_Filed=\uCD08\uAE30\uD0DC\uADF8\uD544\uB4DC BackgroundTexture-Sand=\uBAA8\uB798\uC0AC\uC7A5 Values=\uAC12 Not_use_a_cell_attribute_table_editing=\uC140\uC18D\uC131\uC73C\uB85C\uD45C\uB97C\uD3B8\uC9D1\uD560\uC218\uC5C6\uC2B5\uB2C8\uB2E4. @@ -1155,7 +1155,7 @@ Multiline=\uC5EC\uB7EC\uD589\uD3B8\uC9D1 Datasource-Convert_Charset=\uCF54\uB529\uC804\uD658 DashBoard-ConnectionList=\uB370\uC774\uD130\uB9C1\uD06C Utils-Submit_Forcibly=\uC81C\uCD9C\uAC15\uD589 -Parent_Marked_Field=\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC +FR-Parent_Marked_Field=\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC Logout=\uB098\uAC00\uAE30 FR-Designer_Show_Blank_Row=\uACF5\uBC31\uD589\uBCF4\uCDA9 FR-Base_Format=\uC11C\uC2DD @@ -1194,7 +1194,7 @@ Privilege-Selected_None_Of_Any_Items=\uC120\uD0DD\uD55C\uD56D\uC774\uC5C6\uC2B5\ FRFont-Size=\uD06C\uAE30 Function-J2EE_server=J2EE\uC11C\uBC84 FR-Designer_Allow_Blank=\uBE48\uCE78\uD5C8\uC6A9 -Build_Tree_Accord_Parent_Marked_Filed=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 +FR-Build_Tree_Accord_Parent_Marked_Filed=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 Preference-Horizontal_Scroll_Bar_Visible=\uC218\uD3C9\uC2A4\uD06C\uB864\uBC14\uB97C\uBCFC\uC218\uC788\uC2B5\uB2C8\uB2E4. Scope=\uBC94\uC704 Save_All_Records_In_Memory=\uBAA8\uB4E0\uB808\uCF54\uB4DC\uAC00\uBA54\uBAA8\uB9AC\uC5D0\uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4. @@ -1263,7 +1263,7 @@ DateFormat-Custom_Warning=\uBE44\uACE0\uFF1A\uC0AC\uC6A9\uC790\uC815\uC758\uB0A0 Unit_MM=\uBC00\uB9AC\uBBF8\uD130 Server-Start=\uC2E4\uD589 CellPage-Can_Break_On_Paginate=\uD398\uC774\uC9C0\uB098\uB204\uAE30\uC2DC\uB098\uB20C\uC218\uC788\uC74C -Build_Tree_Accord_Marked_Filed_Length=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uD0DC\uADF8\uD544\uB4DC\uAE38\uC774\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 +FR-Build_Tree_Accord_Marked_Filed_Length=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uD0DC\uADF8\uD544\uB4DC\uAE38\uC774\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 ComboCheckBox-Start_Symbol=\uC2DC\uC791\uBD80\uD638 Real=\uC2E4\uC81C RWA-Batch_Modify_Cells=\uB300\uB7C9\uC218\uC815\uC140 @@ -1711,7 +1711,7 @@ Condition_Display=\uC870\uAC74\uBCF4\uC774\uAE30 FR-Server-Design_template_unopened=\uD15C\uD50C\uB9BF\uC744\uC5F4\uC218\uC5C6\uC2B5\uB2C8\uB2E4. Function-Function_Class_Name=\uD568\uC218\uD074\uB798\uC2A4\uB124\uC784 Schedule-Template=\uD15C\uD50C\uB9BF\uBA85\uCE6D -Tree_Data_Field=\uD2B8\uB9AC\uB370\uC774\uD130\uD544\uB4DC +FR-Tree_Data_Field=\uD2B8\uB9AC\uB370\uC774\uD130\uD544\uB4DC Border-Style-Normal=\uC9C1\uAC01\uD14C\uB450\uB9AC Top_And_Double_Bottom_Border_Line=\uC704\uD14C\uB450\uB9AC\uC120\uACFC\uB450\uC904\uBC11\uD14C\uB450\uB9AC\uC120 FR-Server_Embedded_Server_Start=\uB0B4\uC7A5\uB41C\uC11C\uBC84-\uC5F4\uAE30 diff --git a/designer_base/src/com/fr/design/locale/designer_zh_CN.properties b/designer_base/src/com/fr/design/locale/designer_zh_CN.properties index 64aff3d0f..a5eba9adc 100644 --- a/designer_base/src/com/fr/design/locale/designer_zh_CN.properties +++ b/designer_base/src/com/fr/design/locale/designer_zh_CN.properties @@ -826,7 +826,7 @@ Form-TextArea=\u6587\u672C\u57DF FR-Designer_Https_Enable=\u542F\u7528https Widget-Custom_Widget_Config=\u81EA\u5B9A\u4E49\u63A7\u4EF6 already_exists=\u5DF2\u7ECF\u5B58\u5728 -Original_Marked_Filed=\u539F\u59CB\u6807\u8BB0\u5B57\u6BB5 +FR-Original_Marked_Filed=\u539F\u59CB\u6807\u8BB0\u5B57\u6BB5 BackgroundTexture-Sand=\u6C99\u6EE9 Values=\u503C Not_use_a_cell_attribute_table_editing=\u60A8\u4E0D\u53EF\u4EE5\u7528\u5355\u5143\u683C\u5C5E\u6027\u8868\u7F16\u8F91 @@ -1154,7 +1154,7 @@ Multiline=\u591A\u884C\u7F16\u8F91 Datasource-Convert_Charset=\u7F16\u7801\u8F6C\u6362 DashBoard-ConnectionList=\u6570\u636E\u8FDE\u63A5 Utils-Submit_Forcibly=\u5F3A\u884C\u63D0\u4EA4 -Parent_Marked_Field=\u7236\u6807\u8BB0\u5B57\u6BB5 +FR-Parent_Marked_Field=\u7236\u6807\u8BB0\u5B57\u6BB5 Logout=\u9000\u51FA FR-Designer_Show_Blank_Row=\u8865\u5145\u7A7A\u767D\u884C FR-Base_Format=\u683C\u5F0F @@ -1193,7 +1193,7 @@ Privilege-Selected_None_Of_Any_Items=\u6CA1\u6709\u9009\u4E2D\u4EFB\u4F55\u4E00\ FRFont-Size=\u5927\u5C0F Function-J2EE_server=J2EE\u670D\u52A1\u5668 FR-Designer_Allow_Blank=\u5141\u8BB8\u4E3A\u7A7A -Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u7236\u6807\u8BB0\u5B57\u6BB5\u6784\u5EFA\u6811 +FR-Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u7236\u6807\u8BB0\u5B57\u6BB5\u6784\u5EFA\u6811 Preference-Horizontal_Scroll_Bar_Visible=\u6C34\u5E73\u6EDA\u52A8\u6761\u53EF\u89C1 Scope=\u8303\u56F4 Save_All_Records_In_Memory=\u6240\u6709\u8BB0\u5F55\u90FD\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D @@ -1262,7 +1262,7 @@ DateFormat-Custom_Warning=\u6CE8\uFF1A\u81EA\u5B9A\u4E49\u65E5\u671F\u683C\u5F0F Unit_MM=\u6BEB\u7C73 Server-Start=\u542F\u52A8 CellPage-Can_Break_On_Paginate=\u5206\u9875\u65F6\u53EF\u4EE5\u65AD\u5F00 -Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u6807\u8BB0\u5B57\u6BB5\u7684\u957F\u5EA6\u6784\u5EFA\u6811 +FR-Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u6807\u8BB0\u5B57\u6BB5\u7684\u957F\u5EA6\u6784\u5EFA\u6811 ComboCheckBox-Start_Symbol=\u8D77\u59CB\u7B26 Real=\u5B9E\u9645 RWA-Batch_Modify_Cells=\u6279\u91CF\u4FEE\u6539\u5355\u5143\u683C @@ -1710,7 +1710,7 @@ Condition_Display=\u6761\u4EF6\u663E\u793A FR-Server-Design_template_unopened=\u65E0\u6CD5\u6253\u5F00\u6A21\u7248 Function-Function_Class_Name=\u51FD\u6570\u7C7B\u540D Schedule-Template=\u6A21\u677F\u540D\u79F0 -Tree_Data_Field=\u6811\u6570\u636E\u5B57\u6BB5 +FR-Tree_Data_Field=\u6811\u6570\u636E\u5B57\u6BB5 Border-Style-Normal=\u76F4\u89D2\u8FB9\u6846 Top_And_Double_Bottom_Border_Line=\u4E0A\u6846\u7EBF\u548C\u53CC\u4E0B\u6846\u7EBF FR-Server_Embedded_Server_Start=\u5167\u7F6E\u7684\u670D\u52A1\u5668-\u6253\u5F00 diff --git a/designer_base/src/com/fr/design/locale/designer_zh_TW.properties b/designer_base/src/com/fr/design/locale/designer_zh_TW.properties index 9994427d8..6cb185dc2 100644 --- a/designer_base/src/com/fr/design/locale/designer_zh_TW.properties +++ b/designer_base/src/com/fr/design/locale/designer_zh_TW.properties @@ -826,7 +826,7 @@ Form-TextArea=\u6587\u672C\u57DF FR-Designer_Https_Enable=\u555F\u7528https Widget-Custom_Widget_Config=\u81EA\u5B9A\u7FA9\u63A7\u5236\u9805 already_exists=\u5DF2\u7D93\u5B58\u5728 -Original_Marked_Filed=\u539F\u59CB\u6A19\u8A18\u6B04\u4F4D +FR-Original_Marked_Filed=\u539F\u59CB\u6A19\u8A18\u6B04\u4F4D BackgroundTexture-Sand=\u6C99\u7058 Values=\u503C Not_use_a_cell_attribute_table_editing=\u60A8\u4E0D\u53EF\u4EE5\u7528\u5132\u5B58\u683C\u5C6C\u6027\u8868\u7DE8\u8F2F @@ -1154,7 +1154,7 @@ Multiline=\u591A\u5217\u7DE8\u8F2F Datasource-Convert_Charset=\u7DE8\u78BC\u8F49\u63DB DashBoard-ConnectionList=\u8CC7\u6599\u9023\u63A5 Utils-Submit_Forcibly=\u5F37\u884C\u63D0\u4EA4 -Parent_Marked_Field=\u7236\u6A19\u8A18\u6B04\u4F4D +FR-Parent_Marked_Field=\u7236\u6A19\u8A18\u6B04\u4F4D Logout=\u9000\u51FA FR-Designer_Show_Blank_Row=\u88DC\u5145\u7A7A\u767D\u5217 FR-Base_Format=\u683C\u5F0F @@ -1193,7 +1193,7 @@ Privilege-Selected_None_Of_Any_Items=\u6C92\u6709\u9078\u4E2D\u4EFB\u4F55\u4E00\ FRFont-Size=\u5927\u5C0F Function-J2EE_server=J2EE\u4F3A\u670D\u5668 FR-Designer_Allow_Blank=\u5141\u8A31\u70BA\u7A7A -Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u7236\u6A19\u8A18\u6B04\u4F4D\u69CB\u5EFA\u6A39 +FR-Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u7236\u6A19\u8A18\u6B04\u4F4D\u69CB\u5EFA\u6A39 Preference-Horizontal_Scroll_Bar_Visible=\u6C34\u5E73\u6EFE\u52D5\u689D\u53EF\u898B Scope=\u7BC4\u570D Save_All_Records_In_Memory=\u6240\u6709\u8A18\u9304\u90FD\u5132\u5B58\u5728\u5167\u5B58\u4E2D @@ -1262,7 +1262,7 @@ DateFormat-Custom_Warning=\u8A3B\uFF1A\u81EA\u5B9A\u7FA9\u65E5\u671F\u683C\u5F0F Unit_MM=\u516C\u5398 Server-Start=\u555F\u52D5 CellPage-Can_Break_On_Paginate=\u5206\u9801\u6642\u53EF\u4EE5\u65B7\u958B -Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u6A19\u8A18\u6B04\u4F4D\u7684\u9577\u5EA6\u69CB\u5EFA\u6A39\u72C0 +FR-Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u6A19\u8A18\u6B04\u4F4D\u7684\u9577\u5EA6\u69CB\u5EFA\u6A39\u72C0 ComboCheckBox-Start_Symbol=\u8D77\u59CB\u7B26 Real=\u5BE6\u969B RWA-Batch_Modify_Cells=\u6279\u91CF\u4FEE\u6539\u5132\u5B58\u683C @@ -1710,7 +1710,7 @@ Condition_Display=\u689D\u4EF6\u986F\u793A FR-Server-Design_template_unopened=\u7121\u6CD5\u6253\u958B\u7BC4\u672C Function-Function_Class_Name=\u51FD\u6578\u985E\u540D Schedule-Template=\u7BC4\u672C\u540D\u7A31 -Tree_Data_Field=\u6A39\u72C0\u8CC7\u6599\u6B04\u4F4D +FR-Tree_Data_Field=\u6A39\u72C0\u8CC7\u6599\u6B04\u4F4D Border-Style-Normal=\u76F4\u89D2\u6846\u7DDA Top_And_Double_Bottom_Border_Line=\u4E0A\u6846\u7DDA\u548C\u96D9\u4E0B\u6846\u7DDA FR-Server_Embedded_Server_Start=\u5167\u7F6E\u7684\u4F3A\u670D\u5668-\u555F\u52D5 From 7557e476bf6a63707f22b76dcc7a101ee505cbe5 Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 23 May 2017 13:50:37 +0800 Subject: [PATCH 3/6] =?UTF-8?q?pmd=20=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/datapane/TreeTableDataDictPane.java | 14 +++++++------- .../src/com/fr/design/locale/designer.properties | 10 +++++----- .../com/fr/design/locale/designer_en_US.properties | 10 +++++----- .../com/fr/design/locale/designer_ja_JP.properties | 10 +++++----- .../com/fr/design/locale/designer_ko_KR.properties | 10 +++++----- .../com/fr/design/locale/designer_zh_CN.properties | 10 +++++----- .../com/fr/design/locale/designer_zh_TW.properties | 10 +++++----- 7 files changed, 37 insertions(+), 37 deletions(-) diff --git a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java index 1cac6ce98..caf3e324e 100644 --- a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java +++ b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java @@ -68,8 +68,8 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { this.add(tableFlowPane, BorderLayout.NORTH); JPanel centerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); this.add(centerPane, BorderLayout.CENTER); - parentMarkRadio = new UIRadioButton(Inter.getLocText("FR-Build_Tree_Accord_Parent_Marked_Filed"), true); - lengthMarkRadio = new UIRadioButton(Inter.getLocText("FR-Build_Tree_Accord_Marked_Filed_Length")); + parentMarkRadio = new UIRadioButton(Inter.getLocText("FR-Designer_Build_Tree_Accord_Parent_Marked_Filed"), true); + lengthMarkRadio = new UIRadioButton(Inter.getLocText("FR-Designer_Build_Tree_Accord_Marked_Filed_Length")); parentMarkRadio.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (isBuildByParentFiled()) { @@ -90,11 +90,11 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { markButtonGroup.add(parentMarkRadio); markButtonGroup.add(lengthMarkRadio); - originalMarkedFieldLabel1 = new UILabel(Inter.getLocText("FR-Original_Marked_Filed") + " :", SwingConstants.RIGHT); - parentMarkedFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Parent_Marked_Field") + " :", SwingConstants.RIGHT); - treeDataFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Tree_Data_Field") + " :", SwingConstants.RIGHT); - originalMarkedFieldLabel2 = new UILabel(Inter.getLocText("FR-Original_Marked_Filed") + " :", SwingConstants.RIGHT); - treeDataFieldLabel2 = new UILabel(" " + Inter.getLocText("FR-Tree_Data_Field") + " :", SwingConstants.RIGHT); + originalMarkedFieldLabel1 = new UILabel(Inter.getLocText("FR-Designer_Original_Marked_Filed") + " :", SwingConstants.RIGHT); + parentMarkedFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Designer_Parent_Marked_Field") + " :", SwingConstants.RIGHT); + treeDataFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Designer_Tree_Data_Field") + " :", SwingConstants.RIGHT); + originalMarkedFieldLabel2 = new UILabel(Inter.getLocText("FR-Designer_Original_Marked_Filed") + " :", SwingConstants.RIGHT); + treeDataFieldLabel2 = new UILabel(" " + Inter.getLocText("FR-Designer_Tree_Data_Field") + " :", SwingConstants.RIGHT); // originalMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); // parentMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); diff --git a/designer_base/src/com/fr/design/locale/designer.properties b/designer_base/src/com/fr/design/locale/designer.properties index 0f93c4d18..ac49629e1 100644 --- a/designer_base/src/com/fr/design/locale/designer.properties +++ b/designer_base/src/com/fr/design/locale/designer.properties @@ -830,7 +830,7 @@ Form-TextArea=TextArea FR-Designer_Https_Enable= Widget-Custom_Widget_Config=Custom Widget already_exists=already exists -FR-Original_Marked_Filed=Original Marked Filed +FR-Designer_Original_Marked_Filed=Original Marked Filed BackgroundTexture-Sand=Beach Values=Values Not_use_a_cell_attribute_table_editing=You may not use a cell attribute table editing @@ -1158,7 +1158,7 @@ Multiline=Multiline Datasource-Convert_Charset=Convert Char Set DashBoard-ConnectionList=ConnectionList Utils-Submit_Forcibly=Submit Forcibly -FR-Parent_Marked_Field=Parent Marked Field +FR-Designer_Parent_Marked_Field=Parent Marked Field Logout=Logout FR-Designer_Show_Blank_Row= FR-Base_Format= @@ -1197,7 +1197,7 @@ Privilege-Selected_None_Of_Any_Items=Selected None Of Any Items FRFont-Size=Size Function-J2EE_server=J2EE server FR-Designer_Allow_Blank=All Blank -FR-Build_Tree_Accord_Parent_Marked_Filed=Build Tree according parent's marked filed +FR-Designer_Build_Tree_Accord_Parent_Marked_Filed=Build Tree according parent's marked filed Preference-Horizontal_Scroll_Bar_Visible=Horizontal Scroll Bar Visible Scope=Scope Save_All_Records_In_Memory=Save All Records in Memory @@ -1266,7 +1266,7 @@ DateFormat-Custom_Warning=Note\: Custom date format does not support the format Unit_MM=MM Server-Start=Start CellPage-Can_Break_On_Paginate=Can Break On Paginate -FR-Build_Tree_Accord_Marked_Filed_Length=Build Tree according marked filed's length +FR-Designer_Build_Tree_Accord_Marked_Filed_Length=Build Tree according marked filed's length ComboCheckBox-Start_Symbol=Start Symbol Real=Real RWA-Batch_Modify_Cells=Batch Modify Cells @@ -1714,7 +1714,7 @@ Condition_Display=Condition Display FR-Server-Design_template_unopened= Function-Function_Class_Name=Function Class Name Schedule-Template=Template -FR-Tree_Data_Field=Tree Data Field +FR-Designer_Tree_Data_Field=Tree Data Field Border-Style-Normal=Rectangular Top_And_Double_Bottom_Border_Line=Top And Double Bottom Border Line FR-Server_Embedded_Server_Start=Server in Design-Start diff --git a/designer_base/src/com/fr/design/locale/designer_en_US.properties b/designer_base/src/com/fr/design/locale/designer_en_US.properties index a7adcc2c1..8413c0596 100644 --- a/designer_base/src/com/fr/design/locale/designer_en_US.properties +++ b/designer_base/src/com/fr/design/locale/designer_en_US.properties @@ -831,7 +831,7 @@ Form-TextArea=Text Fields FR-Designer_Https_Enable=Start https Widget-Custom_Widget_Config=Custom control already_exists=Already exists -FR-Original_Marked_Filed=Original Tag Field +FR-Designer_Original_Marked_Filed=Original Tag Field BackgroundTexture-Sand=Beach Values=Values Not_use_a_cell_attribute_table_editing=You may not use a cell attribute table editing @@ -1159,7 +1159,7 @@ Multiline=Multi-line edit Datasource-Convert_Charset=Encoding Conversion DashBoard-ConnectionList=Data Connection Utils-Submit_Forcibly=Submit forcibly -FR-Parent_Marked_Field=Parent Tag Field +FR-Designer_Parent_Marked_Field=Parent Tag Field Logout=Logout FR-Designer_Show_Blank_Row=Supplement blank line FR-Base_Format=Format @@ -1198,7 +1198,7 @@ Privilege-Selected_None_Of_Any_Items=Selected None FRFont-Size=Size Function-J2EE_server=J2EE server FR-Designer_Allow_Blank=Allow NULLs -FR-Build_Tree_Accord_Parent_Marked_Filed=Build Tree according to the parent tag field of the selected data set +FR-Designer_Build_Tree_Accord_Parent_Marked_Filed=Build Tree according to the parent tag field of the selected data set Preference-Horizontal_Scroll_Bar_Visible=Horizontal Scroll Bar Visible Scope=Scope Save_All_Records_In_Memory=Save All Records in Memory @@ -1267,7 +1267,7 @@ DateFormat-Custom_Warning=Note\: Custom date format does not support the format Unit_MM=MM Server-Start=Start CellPage-Can_Break_On_Paginate=Can break when paging -FR-Build_Tree_Accord_Marked_Filed_Length=Build tree according to tag field's length +FR-Designer_Build_Tree_Accord_Marked_Filed_Length=Build tree according to tag field's length ComboCheckBox-Start_Symbol=Initializer Real=Real RWA-Batch_Modify_Cells=Batch Modify Cells @@ -1715,7 +1715,7 @@ Condition_Display=Condition Display FR-Server-Design_template_unopened=Can't open the template Function-Function_Class_Name=Function Class Name Schedule-Template=Template name -FR-Tree_Data_Field=Tree Data Field +FR-Designer_Tree_Data_Field=Tree Data Field Border-Style-Normal=Rectangular Border Top_And_Double_Bottom_Border_Line=Top and bottom double border FR-Server_Embedded_Server_Start=Built-in server-Open diff --git a/designer_base/src/com/fr/design/locale/designer_ja_JP.properties b/designer_base/src/com/fr/design/locale/designer_ja_JP.properties index 74c2df045..5d8a311f7 100644 --- a/designer_base/src/com/fr/design/locale/designer_ja_JP.properties +++ b/designer_base/src/com/fr/design/locale/designer_ja_JP.properties @@ -826,7 +826,7 @@ Form-TextArea=\u6587\u66F8\u57DF FR-Designer_Https_Enable=https\u4F7F\u7528\u958B\u59CB Widget-Custom_Widget_Config=\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB already_exists=\u3053\u3053\u306F\u3059\u3067\u306B\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 -FR-Original_Marked_Filed=\u521D\u671F\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 +FR-Designer_Original_Marked_Filed=\u521D\u671F\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 BackgroundTexture-Sand=\u7802\u6D5C Values=\u5024 Not_use_a_cell_attribute_table_editing=\u3042\u306A\u305F\u304C\u7DE8\u96C6\u3059\u308B\u30BB\u30EB\u306E\u5C5E\u6027\u30C6\u30FC\u30D6\u30EB\u3092\u4F7F\u7528\u3059\u308B\u3053\u3068 @@ -1154,7 +1154,7 @@ Multiline=\u8907\u6570\u884C\u7DE8\u96C6 Datasource-Convert_Charset=\u6587\u5B57\u30B3\u30FC\u30C9\u5909\u63DB DashBoard-ConnectionList=\u30C7\u30FC\u30BF\u63A5\u7D9A Utils-Submit_Forcibly=\u5F37\u884C\u63D0\u51FA -FR-Parent_Marked_Field=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 +FR-Designer_Parent_Marked_Field=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9 Logout=\u9000\u51FA FR-Designer_Show_Blank_Row=\u7A7A\u767D\u884C\u3092\u88DC\u5145 FR-Base_Format=\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8 @@ -1193,7 +1193,7 @@ Privilege-Selected_None_Of_Any_Items=\u9805\u76EE\u3092\u3072\u3068\u3064\u3082\ FRFont-Size=\u30B5\u30A4\u30BA Function-J2EE_server=J2EE_server FR-Designer_Allow_Blank=\u7A7A\u6B04\u3042\u308A -FR-Build_Tree_Accord_Parent_Marked_Filed=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u3001\u69CB\u7BC9\u3055\u308C\u305F\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58 +FR-Designer_Build_Tree_Accord_Parent_Marked_Filed=\u89AA\u30BF\u30B0\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u3001\u69CB\u7BC9\u3055\u308C\u305F\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58 Preference-Horizontal_Scroll_Bar_Visible=\u6C34\u5E73\u30B9\u30AF\u30ED\u30FC\u30EB\u30D0\u30FC\u306F\u53EF\u8996 Scope=\u30B9\u30B3\u30FC\u30D7 Save_All_Records_In_Memory=\u5168\u3066\u306E\u8A18\u9332\u306F\u30E1\u30E2\u30EA\u306B\u4FDD\u5B58\u3055\u308C\u3066\u3044\u307E\u3059 @@ -1262,7 +1262,7 @@ DateFormat-Custom_Warning=\u6CE8\uFF1A\u30AB\u30B9\u30BF\u30E0\u65E5\u6642\u30D5 Unit_MM=\u30DF\u30EA\u30E1\u30FC\u30C8\u30EB Server-Start=\u8D77\u52D5 CellPage-Can_Break_On_Paginate=\u30DA\u30FC\u30B8\u30F3\u30B0\u304C\u5207\u65AD\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u305F\u3068\u304D -FR-Build_Tree_Accord_Marked_Filed_Length=\u69CB\u7BC9\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58\u3057\u305F\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9577\u3055\u3092\u30DE\u30FC\u30AF +FR-Designer_Build_Tree_Accord_Marked_Filed_Length=\u69CB\u7BC9\u30C4\u30EA\u30FC\u3092\u8A2D\u5B9A\u3057\u3001\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u306B\u4F9D\u5B58\u3057\u305F\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9577\u3055\u3092\u30DE\u30FC\u30AF ComboCheckBox-Start_Symbol=\u958B\u59CB\u6587\u5B57 Real=\u5B9F\u969B RWA-Batch_Modify_Cells=\u6279\u91CF\u4FEE\u6B63\u30BB\u30EB @@ -1710,7 +1710,7 @@ Condition_Display=\u6761\u4EF6\u8868\u793A FR-Server-Design_template_unopened=\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u958B\u304F\u3053\u3068\u304C\u3067\u304D\u307E\u305B\u3093 Function-Function_Class_Name=\u95A2\u6570\u30AF\u30E9\u30B9\u540D Schedule-Template=\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D -FR-Tree_Data_Field=\u30C4\u30EA\u30FC\u30C7\u30FC\u30BF\u30D5\u30A3\u30FC\u30EB\u30C9 +FR-Designer_Tree_Data_Field=\u30C4\u30EA\u30FC\u30C7\u30FC\u30BF\u30D5\u30A3\u30FC\u30EB\u30C9 Border-Style-Normal=\u76F4\u89D2\u306E\u56FD\u5883\u306B Top_And_Double_Bottom_Border_Line=\u4E0A\u30D5\u30EC\u30FC\u30E0\u30E9\u30A4\u30F3\u3068\u53CC\u4E0B\u30D5\u30EC\u30FC\u30E0\u30E9\u30A4\u30F3 FR-Server_Embedded_Server_Start=\u5185\u8535\u30B5\u30FC\u30D0\u30FC-\u958B\u304F diff --git a/designer_base/src/com/fr/design/locale/designer_ko_KR.properties b/designer_base/src/com/fr/design/locale/designer_ko_KR.properties index d7ae63098..dbf4da3a0 100644 --- a/designer_base/src/com/fr/design/locale/designer_ko_KR.properties +++ b/designer_base/src/com/fr/design/locale/designer_ko_KR.properties @@ -827,7 +827,7 @@ Form-TextArea=\uD14D\uC2A4\uD2B8\uC601\uC5ED FR-Designer_Https_Enable=\uC2E4\uD589https Widget-Custom_Widget_Config=\uC0AC\uC6A9\uC790\uC815\uC758\uC18C\uD504\uD2B8\uC6E8\uC5B4\uC81C\uC5B4 already_exists=\uC774\uBBF8\uC874\uC7AC\uD569\uB2C8\uB2E4. -FR-Original_Marked_Filed=\uCD08\uAE30\uD0DC\uADF8\uD544\uB4DC +FR-Designer_Original_Marked_Filed=\uCD08\uAE30\uD0DC\uADF8\uD544\uB4DC BackgroundTexture-Sand=\uBAA8\uB798\uC0AC\uC7A5 Values=\uAC12 Not_use_a_cell_attribute_table_editing=\uC140\uC18D\uC131\uC73C\uB85C\uD45C\uB97C\uD3B8\uC9D1\uD560\uC218\uC5C6\uC2B5\uB2C8\uB2E4. @@ -1155,7 +1155,7 @@ Multiline=\uC5EC\uB7EC\uD589\uD3B8\uC9D1 Datasource-Convert_Charset=\uCF54\uB529\uC804\uD658 DashBoard-ConnectionList=\uB370\uC774\uD130\uB9C1\uD06C Utils-Submit_Forcibly=\uC81C\uCD9C\uAC15\uD589 -FR-Parent_Marked_Field=\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC +FR-Designer_Parent_Marked_Field=\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC Logout=\uB098\uAC00\uAE30 FR-Designer_Show_Blank_Row=\uACF5\uBC31\uD589\uBCF4\uCDA9 FR-Base_Format=\uC11C\uC2DD @@ -1194,7 +1194,7 @@ Privilege-Selected_None_Of_Any_Items=\uC120\uD0DD\uD55C\uD56D\uC774\uC5C6\uC2B5\ FRFont-Size=\uD06C\uAE30 Function-J2EE_server=J2EE\uC11C\uBC84 FR-Designer_Allow_Blank=\uBE48\uCE78\uD5C8\uC6A9 -FR-Build_Tree_Accord_Parent_Marked_Filed=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 +FR-Designer_Build_Tree_Accord_Parent_Marked_Filed=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uBD80\uBAA8\uD0DC\uADF8\uD544\uB4DC\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 Preference-Horizontal_Scroll_Bar_Visible=\uC218\uD3C9\uC2A4\uD06C\uB864\uBC14\uB97C\uBCFC\uC218\uC788\uC2B5\uB2C8\uB2E4. Scope=\uBC94\uC704 Save_All_Records_In_Memory=\uBAA8\uB4E0\uB808\uCF54\uB4DC\uAC00\uBA54\uBAA8\uB9AC\uC5D0\uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4. @@ -1263,7 +1263,7 @@ DateFormat-Custom_Warning=\uBE44\uACE0\uFF1A\uC0AC\uC6A9\uC790\uC815\uC758\uB0A0 Unit_MM=\uBC00\uB9AC\uBBF8\uD130 Server-Start=\uC2E4\uD589 CellPage-Can_Break_On_Paginate=\uD398\uC774\uC9C0\uB098\uB204\uAE30\uC2DC\uB098\uB20C\uC218\uC788\uC74C -FR-Build_Tree_Accord_Marked_Filed_Length=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uD0DC\uADF8\uD544\uB4DC\uAE38\uC774\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 +FR-Designer_Build_Tree_Accord_Marked_Filed_Length=\uC120\uD0DD\uD55C\uB370\uC774\uD130\uC138\uD2B8\uC758\uD0DC\uADF8\uD544\uB4DC\uAE38\uC774\uC5D0\uB530\uB77C\uD2B8\uB9AC\uC0DD\uC131 ComboCheckBox-Start_Symbol=\uC2DC\uC791\uBD80\uD638 Real=\uC2E4\uC81C RWA-Batch_Modify_Cells=\uB300\uB7C9\uC218\uC815\uC140 @@ -1711,7 +1711,7 @@ Condition_Display=\uC870\uAC74\uBCF4\uC774\uAE30 FR-Server-Design_template_unopened=\uD15C\uD50C\uB9BF\uC744\uC5F4\uC218\uC5C6\uC2B5\uB2C8\uB2E4. Function-Function_Class_Name=\uD568\uC218\uD074\uB798\uC2A4\uB124\uC784 Schedule-Template=\uD15C\uD50C\uB9BF\uBA85\uCE6D -FR-Tree_Data_Field=\uD2B8\uB9AC\uB370\uC774\uD130\uD544\uB4DC +FR-Designer_Tree_Data_Field=\uD2B8\uB9AC\uB370\uC774\uD130\uD544\uB4DC Border-Style-Normal=\uC9C1\uAC01\uD14C\uB450\uB9AC Top_And_Double_Bottom_Border_Line=\uC704\uD14C\uB450\uB9AC\uC120\uACFC\uB450\uC904\uBC11\uD14C\uB450\uB9AC\uC120 FR-Server_Embedded_Server_Start=\uB0B4\uC7A5\uB41C\uC11C\uBC84-\uC5F4\uAE30 diff --git a/designer_base/src/com/fr/design/locale/designer_zh_CN.properties b/designer_base/src/com/fr/design/locale/designer_zh_CN.properties index a5eba9adc..4f044f84f 100644 --- a/designer_base/src/com/fr/design/locale/designer_zh_CN.properties +++ b/designer_base/src/com/fr/design/locale/designer_zh_CN.properties @@ -826,7 +826,7 @@ Form-TextArea=\u6587\u672C\u57DF FR-Designer_Https_Enable=\u542F\u7528https Widget-Custom_Widget_Config=\u81EA\u5B9A\u4E49\u63A7\u4EF6 already_exists=\u5DF2\u7ECF\u5B58\u5728 -FR-Original_Marked_Filed=\u539F\u59CB\u6807\u8BB0\u5B57\u6BB5 +FR-Designer_Original_Marked_Filed=\u539F\u59CB\u6807\u8BB0\u5B57\u6BB5 BackgroundTexture-Sand=\u6C99\u6EE9 Values=\u503C Not_use_a_cell_attribute_table_editing=\u60A8\u4E0D\u53EF\u4EE5\u7528\u5355\u5143\u683C\u5C5E\u6027\u8868\u7F16\u8F91 @@ -1154,7 +1154,7 @@ Multiline=\u591A\u884C\u7F16\u8F91 Datasource-Convert_Charset=\u7F16\u7801\u8F6C\u6362 DashBoard-ConnectionList=\u6570\u636E\u8FDE\u63A5 Utils-Submit_Forcibly=\u5F3A\u884C\u63D0\u4EA4 -FR-Parent_Marked_Field=\u7236\u6807\u8BB0\u5B57\u6BB5 +FR-Designer_Parent_Marked_Field=\u7236\u6807\u8BB0\u5B57\u6BB5 Logout=\u9000\u51FA FR-Designer_Show_Blank_Row=\u8865\u5145\u7A7A\u767D\u884C FR-Base_Format=\u683C\u5F0F @@ -1193,7 +1193,7 @@ Privilege-Selected_None_Of_Any_Items=\u6CA1\u6709\u9009\u4E2D\u4EFB\u4F55\u4E00\ FRFont-Size=\u5927\u5C0F Function-J2EE_server=J2EE\u670D\u52A1\u5668 FR-Designer_Allow_Blank=\u5141\u8BB8\u4E3A\u7A7A -FR-Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u7236\u6807\u8BB0\u5B57\u6BB5\u6784\u5EFA\u6811 +FR-Designer_Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u7236\u6807\u8BB0\u5B57\u6BB5\u6784\u5EFA\u6811 Preference-Horizontal_Scroll_Bar_Visible=\u6C34\u5E73\u6EDA\u52A8\u6761\u53EF\u89C1 Scope=\u8303\u56F4 Save_All_Records_In_Memory=\u6240\u6709\u8BB0\u5F55\u90FD\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D @@ -1262,7 +1262,7 @@ DateFormat-Custom_Warning=\u6CE8\uFF1A\u81EA\u5B9A\u4E49\u65E5\u671F\u683C\u5F0F Unit_MM=\u6BEB\u7C73 Server-Start=\u542F\u52A8 CellPage-Can_Break_On_Paginate=\u5206\u9875\u65F6\u53EF\u4EE5\u65AD\u5F00 -FR-Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u6807\u8BB0\u5B57\u6BB5\u7684\u957F\u5EA6\u6784\u5EFA\u6811 +FR-Designer_Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8D56\u6240\u9009\u6570\u636E\u96C6\u7684\u6807\u8BB0\u5B57\u6BB5\u7684\u957F\u5EA6\u6784\u5EFA\u6811 ComboCheckBox-Start_Symbol=\u8D77\u59CB\u7B26 Real=\u5B9E\u9645 RWA-Batch_Modify_Cells=\u6279\u91CF\u4FEE\u6539\u5355\u5143\u683C @@ -1710,7 +1710,7 @@ Condition_Display=\u6761\u4EF6\u663E\u793A FR-Server-Design_template_unopened=\u65E0\u6CD5\u6253\u5F00\u6A21\u7248 Function-Function_Class_Name=\u51FD\u6570\u7C7B\u540D Schedule-Template=\u6A21\u677F\u540D\u79F0 -FR-Tree_Data_Field=\u6811\u6570\u636E\u5B57\u6BB5 +FR-Designer_Tree_Data_Field=\u6811\u6570\u636E\u5B57\u6BB5 Border-Style-Normal=\u76F4\u89D2\u8FB9\u6846 Top_And_Double_Bottom_Border_Line=\u4E0A\u6846\u7EBF\u548C\u53CC\u4E0B\u6846\u7EBF FR-Server_Embedded_Server_Start=\u5167\u7F6E\u7684\u670D\u52A1\u5668-\u6253\u5F00 diff --git a/designer_base/src/com/fr/design/locale/designer_zh_TW.properties b/designer_base/src/com/fr/design/locale/designer_zh_TW.properties index 6cb185dc2..2a156e5c2 100644 --- a/designer_base/src/com/fr/design/locale/designer_zh_TW.properties +++ b/designer_base/src/com/fr/design/locale/designer_zh_TW.properties @@ -826,7 +826,7 @@ Form-TextArea=\u6587\u672C\u57DF FR-Designer_Https_Enable=\u555F\u7528https Widget-Custom_Widget_Config=\u81EA\u5B9A\u7FA9\u63A7\u5236\u9805 already_exists=\u5DF2\u7D93\u5B58\u5728 -FR-Original_Marked_Filed=\u539F\u59CB\u6A19\u8A18\u6B04\u4F4D +FR-Designer_Original_Marked_Filed=\u539F\u59CB\u6A19\u8A18\u6B04\u4F4D BackgroundTexture-Sand=\u6C99\u7058 Values=\u503C Not_use_a_cell_attribute_table_editing=\u60A8\u4E0D\u53EF\u4EE5\u7528\u5132\u5B58\u683C\u5C6C\u6027\u8868\u7DE8\u8F2F @@ -1154,7 +1154,7 @@ Multiline=\u591A\u5217\u7DE8\u8F2F Datasource-Convert_Charset=\u7DE8\u78BC\u8F49\u63DB DashBoard-ConnectionList=\u8CC7\u6599\u9023\u63A5 Utils-Submit_Forcibly=\u5F37\u884C\u63D0\u4EA4 -FR-Parent_Marked_Field=\u7236\u6A19\u8A18\u6B04\u4F4D +FR-Designer_Parent_Marked_Field=\u7236\u6A19\u8A18\u6B04\u4F4D Logout=\u9000\u51FA FR-Designer_Show_Blank_Row=\u88DC\u5145\u7A7A\u767D\u5217 FR-Base_Format=\u683C\u5F0F @@ -1193,7 +1193,7 @@ Privilege-Selected_None_Of_Any_Items=\u6C92\u6709\u9078\u4E2D\u4EFB\u4F55\u4E00\ FRFont-Size=\u5927\u5C0F Function-J2EE_server=J2EE\u4F3A\u670D\u5668 FR-Designer_Allow_Blank=\u5141\u8A31\u70BA\u7A7A -FR-Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u7236\u6A19\u8A18\u6B04\u4F4D\u69CB\u5EFA\u6A39 +FR-Designer_Build_Tree_Accord_Parent_Marked_Filed=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u7236\u6A19\u8A18\u6B04\u4F4D\u69CB\u5EFA\u6A39 Preference-Horizontal_Scroll_Bar_Visible=\u6C34\u5E73\u6EFE\u52D5\u689D\u53EF\u898B Scope=\u7BC4\u570D Save_All_Records_In_Memory=\u6240\u6709\u8A18\u9304\u90FD\u5132\u5B58\u5728\u5167\u5B58\u4E2D @@ -1262,7 +1262,7 @@ DateFormat-Custom_Warning=\u8A3B\uFF1A\u81EA\u5B9A\u7FA9\u65E5\u671F\u683C\u5F0F Unit_MM=\u516C\u5398 Server-Start=\u555F\u52D5 CellPage-Can_Break_On_Paginate=\u5206\u9801\u6642\u53EF\u4EE5\u65B7\u958B -FR-Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u6A19\u8A18\u6B04\u4F4D\u7684\u9577\u5EA6\u69CB\u5EFA\u6A39\u72C0 +FR-Designer_Build_Tree_Accord_Marked_Filed_Length=\u4F9D\u8CF4\u6240\u9078\u8CC7\u6599\u96C6\u7684\u6A19\u8A18\u6B04\u4F4D\u7684\u9577\u5EA6\u69CB\u5EFA\u6A39\u72C0 ComboCheckBox-Start_Symbol=\u8D77\u59CB\u7B26 Real=\u5BE6\u969B RWA-Batch_Modify_Cells=\u6279\u91CF\u4FEE\u6539\u5132\u5B58\u683C @@ -1710,7 +1710,7 @@ Condition_Display=\u689D\u4EF6\u986F\u793A FR-Server-Design_template_unopened=\u7121\u6CD5\u6253\u958B\u7BC4\u672C Function-Function_Class_Name=\u51FD\u6578\u985E\u540D Schedule-Template=\u7BC4\u672C\u540D\u7A31 -FR-Tree_Data_Field=\u6A39\u72C0\u8CC7\u6599\u6B04\u4F4D +FR-Designer_Tree_Data_Field=\u6A39\u72C0\u8CC7\u6599\u6B04\u4F4D Border-Style-Normal=\u76F4\u89D2\u6846\u7DDA Top_And_Double_Bottom_Border_Line=\u4E0A\u6846\u7DDA\u548C\u96D9\u4E0B\u6846\u7DDA FR-Server_Embedded_Server_Start=\u5167\u7F6E\u7684\u4F3A\u670D\u5668-\u555F\u52D5 From 0ac44b9aec524a91e905fc6724bba6ac2b0cda64 Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 23 May 2017 14:00:25 +0800 Subject: [PATCH 4/6] code refactor --- .../data/datapane/TreeTableDataDictPane.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java index caf3e324e..5c8e08b89 100644 --- a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java +++ b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java @@ -31,16 +31,16 @@ import java.util.List; public class TreeTableDataDictPane extends BasicPane implements Previewable { private UILabel selectTableDataLabel; - protected TableDataComboBox tableDataNameComboBox; + private TableDataComboBox tableDataNameComboBox; private UIRadioButton parentMarkRadio; private UIRadioButton lengthMarkRadio; private ButtonGroup markButtonGroup; - UILabel originalMarkedFieldLabel1; - UILabel parentMarkedFieldLabel1; - UILabel treeDataFieldLabel1; - UILabel originalMarkedFieldLabel2; - UILabel treeDataFieldLabel2; + private UILabel originalMarkedFieldLabel1; + private UILabel parentMarkedFieldLabel1; + private UILabel treeDataFieldLabel1; + private UILabel originalMarkedFieldLabel2; + private UILabel treeDataFieldLabel2; private ValueEditorPane originalMarkedFieldPane1; private ValueEditorPane parentMarkedFieldPane1; @@ -211,13 +211,13 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { Object o = parentMarkedFieldPane1.update(StringUtils.EMPTY); if (o instanceof Object[]) { Object[] temp = (Object[]) o; - td.setParentmarkFields(((Integer) temp[0]).intValue() - 1 + ""); + td.setParentmarkFields((Integer) temp[0] - 1 + ""); td.setParentmarkFieldName((String) temp[1]); } Object o2 = originalMarkedFieldPane1.update(StringUtils.EMPTY); if (o2 instanceof Object[]) { Object[] temp = (Object[]) o2; - td.setMarkFields(((Integer) temp[0]).intValue() - 1 + ""); + td.setMarkFields((Integer) temp[0] - 1 + ""); td.setMarkFieldName((String) temp[1]); } } else { @@ -226,7 +226,7 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { td.setMarkFields("-1"); } else { Object[] temp = (Object[]) o; - td.setMarkFields(((Integer) temp[0]).intValue() - 1 + ""); + td.setMarkFields((Integer) temp[0] - 1 + ""); td.setMarkFieldName((String) temp[1]); } } From d31b172d1d2c05c1649dea628f8b19b238b6482b Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 23 May 2017 14:06:36 +0800 Subject: [PATCH 5/6] rename variable name --- .../data/datapane/TreeTableDataDictPane.java | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java index 5c8e08b89..3c5d0799a 100644 --- a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java +++ b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java @@ -36,15 +36,15 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { private UIRadioButton lengthMarkRadio; private ButtonGroup markButtonGroup; - private UILabel originalMarkedFieldLabel1; - private UILabel parentMarkedFieldLabel1; + private UILabel originFieldDependsOnParentLabel; + private UILabel parentFieldLabel; private UILabel treeDataFieldLabel1; - private UILabel originalMarkedFieldLabel2; + private UILabel originFieldDependsOnLengthLabel; private UILabel treeDataFieldLabel2; - private ValueEditorPane originalMarkedFieldPane1; - private ValueEditorPane parentMarkedFieldPane1; - private ValueEditorPane originalMarkedFieldPane2; + private ValueEditorPane originFieldDependsOnParentPane; + private ValueEditorPane parentFieldPane; + private ValueEditorPane originFieldDependsOnLengthPane; public TreeTableDataDictPane() { this(StringUtils.EMPTY); @@ -90,28 +90,28 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { markButtonGroup.add(parentMarkRadio); markButtonGroup.add(lengthMarkRadio); - originalMarkedFieldLabel1 = new UILabel(Inter.getLocText("FR-Designer_Original_Marked_Filed") + " :", SwingConstants.RIGHT); - parentMarkedFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Designer_Parent_Marked_Field") + " :", SwingConstants.RIGHT); + originFieldDependsOnParentLabel = new UILabel(Inter.getLocText("FR-Designer_Original_Marked_Filed") + " :", SwingConstants.RIGHT); + parentFieldLabel = new UILabel(" " + Inter.getLocText("FR-Designer_Parent_Marked_Field") + " :", SwingConstants.RIGHT); treeDataFieldLabel1 = new UILabel(" " + Inter.getLocText("FR-Designer_Tree_Data_Field") + " :", SwingConstants.RIGHT); - originalMarkedFieldLabel2 = new UILabel(Inter.getLocText("FR-Designer_Original_Marked_Filed") + " :", SwingConstants.RIGHT); + originFieldDependsOnLengthLabel = new UILabel(Inter.getLocText("FR-Designer_Original_Marked_Filed") + " :", SwingConstants.RIGHT); treeDataFieldLabel2 = new UILabel(" " + Inter.getLocText("FR-Designer_Tree_Data_Field") + " :", SwingConstants.RIGHT); -// originalMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); -// parentMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); -// originalMarkedFieldPane2 = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); - originalMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); - parentMarkedFieldPane1 = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); - originalMarkedFieldPane2 = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); +// originFieldDependsOnParentPane = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); +// parentFieldPane = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); +// originFieldDependsOnLengthPane = ValueEditorPaneFactory.createValueEditorPane(new Editor[] {new OldColumnIndexEditor(Inter.getLocText("Columns"))}); + originFieldDependsOnParentPane = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); + parentFieldPane = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); + originFieldDependsOnLengthPane = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()}); makeParentEnable(); - JPanel p1 = createCenterFlowZeroGapBorderPane(originalMarkedFieldLabel1, originalMarkedFieldPane1); - JPanel p2 = createCenterFlowZeroGapBorderPane(parentMarkedFieldLabel1, parentMarkedFieldPane1); + JPanel p1 = createCenterFlowZeroGapBorderPane(originFieldDependsOnParentLabel, originFieldDependsOnParentPane); + JPanel p2 = createCenterFlowZeroGapBorderPane(parentFieldLabel, parentFieldPane); JPanel border1 = new JPanel(); border1.setLayout(new BorderLayout(0, 10)); border1.add(p1, BorderLayout.NORTH); border1.add(p2, BorderLayout.CENTER); - JPanel p4 = createCenterFlowZeroGapBorderPane(originalMarkedFieldLabel2, originalMarkedFieldPane2); + JPanel p4 = createCenterFlowZeroGapBorderPane(originFieldDependsOnLengthLabel, originFieldDependsOnLengthPane); JPanel border2 = new JPanel(); border2.setLayout(new BorderLayout(0, 20)); border2.add(p4, BorderLayout.NORTH); @@ -139,14 +139,14 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { RecursionTableData rtd = new RecursionTableData(); rtd.setOriginalTableDataName(tableDataWrappe.getTableDataName()); if (isBuildByParentFiled()) { - Object o = parentMarkedFieldPane1.update(); + Object o = parentFieldPane.update(); rtd.setParentmarkFields((Integer) o - 1 + ""); rtd.setParentmarkFieldName("" + o); - Object o2 = originalMarkedFieldPane1.update(); + Object o2 = originFieldDependsOnParentPane.update(); rtd.setMarkFields((Integer) o2 - 1 + ""); rtd.setMarkFieldName("" + o2); } else { - Object o = originalMarkedFieldPane2.update(); + Object o = originFieldDependsOnLengthPane.update(); if (o == null) { rtd.setMarkFields("-1"); } else { @@ -174,9 +174,9 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { } ValueEditorPane[] valueEditorPanes; if (isBuildByParentFiled()) { - valueEditorPanes = new ValueEditorPane[]{originalMarkedFieldPane1, parentMarkedFieldPane1}; + valueEditorPanes = new ValueEditorPane[]{originFieldDependsOnParentPane, parentFieldPane}; } else { - valueEditorPanes = new ValueEditorPane[]{originalMarkedFieldPane2}; + valueEditorPanes = new ValueEditorPane[]{originFieldDependsOnLengthPane}; } try { List namelist = tableDataWrappe.calculateColumnNameList(); @@ -208,20 +208,20 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { td.setOriginalTableDataName(tableDataNameComboBox.getSelectedItem().getTableDataName()); } if (isBuildByParentFiled()) { - Object o = parentMarkedFieldPane1.update(StringUtils.EMPTY); + Object o = parentFieldPane.update(StringUtils.EMPTY); if (o instanceof Object[]) { Object[] temp = (Object[]) o; td.setParentmarkFields((Integer) temp[0] - 1 + ""); td.setParentmarkFieldName((String) temp[1]); } - Object o2 = originalMarkedFieldPane1.update(StringUtils.EMPTY); + Object o2 = originFieldDependsOnParentPane.update(StringUtils.EMPTY); if (o2 instanceof Object[]) { Object[] temp = (Object[]) o2; td.setMarkFields((Integer) temp[0] - 1 + ""); td.setMarkFieldName((String) temp[1]); } } else { - Object o = originalMarkedFieldPane2.update(StringUtils.EMPTY); + Object o = originFieldDependsOnLengthPane.update(StringUtils.EMPTY); if (o == null || !(o instanceof Object[])) { td.setMarkFields("-1"); } else { @@ -241,14 +241,14 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { lengthMarkRadio.setSelected(false); tableDataNameComboBox.setSelectedTableDataByName(rtb.getOriginalTableDataName()); if (StringUtils.isNotEmpty(rtb.getMarkFieldName())) { - originalMarkedFieldPane1.populate(rtb.getMarkFieldName()); + originFieldDependsOnParentPane.populate(rtb.getMarkFieldName()); } else { - originalMarkedFieldPane1.populate(rtb.getMarkFieldIndex() + 1); + originFieldDependsOnParentPane.populate(rtb.getMarkFieldIndex() + 1); } if (StringUtils.isNotEmpty(rtb.getParentmarkFieldName())) { - parentMarkedFieldPane1.populate(rtb.getParentmarkFieldName()); + parentFieldPane.populate(rtb.getParentmarkFieldName()); } else { - parentMarkedFieldPane1.populate(rtb.getParentmarkFieldIndex() + 1); + parentFieldPane.populate(rtb.getParentmarkFieldIndex() + 1); } } else { makeLengthEnable(); @@ -256,9 +256,9 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { parentMarkRadio.setSelected(false); tableDataNameComboBox.setSelectedTableDataByName(rtb.getOriginalTableDataName()); if (StringUtils.isNotEmpty(rtb.getMarkFieldName())) { - originalMarkedFieldPane2.populate(rtb.getMarkFieldName()); + originFieldDependsOnLengthPane.populate(rtb.getMarkFieldName()); } else { - originalMarkedFieldPane2.populate(rtb.getMarkFieldIndex() + 1); + originFieldDependsOnLengthPane.populate(rtb.getMarkFieldIndex() + 1); } } } @@ -286,24 +286,24 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { } private void makeParentEnable() { - originalMarkedFieldPane1.setEnabled(true); - parentMarkedFieldPane1.setEnabled(true); - originalMarkedFieldLabel1.setEnabled(true); - parentMarkedFieldLabel1.setEnabled(true); + originFieldDependsOnParentPane.setEnabled(true); + parentFieldPane.setEnabled(true); + originFieldDependsOnParentLabel.setEnabled(true); + parentFieldLabel.setEnabled(true); treeDataFieldLabel1.setEnabled(true); - originalMarkedFieldLabel2.setEnabled(false); + originFieldDependsOnLengthLabel.setEnabled(false); treeDataFieldLabel2.setEnabled(false); - originalMarkedFieldPane2.setEnabled(false); + originFieldDependsOnLengthPane.setEnabled(false); } private void makeLengthEnable() { - originalMarkedFieldPane1.setEnabled(false); - parentMarkedFieldPane1.setEnabled(false); - originalMarkedFieldLabel1.setEnabled(false); - parentMarkedFieldLabel1.setEnabled(false); + originFieldDependsOnParentPane.setEnabled(false); + parentFieldPane.setEnabled(false); + originFieldDependsOnParentLabel.setEnabled(false); + parentFieldLabel.setEnabled(false); treeDataFieldLabel1.setEnabled(false); - originalMarkedFieldLabel2.setEnabled(true); + originFieldDependsOnLengthLabel.setEnabled(true); treeDataFieldLabel2.setEnabled(true); - originalMarkedFieldPane2.setEnabled(true); + originFieldDependsOnLengthPane.setEnabled(true); } } \ No newline at end of file From cef8d779aa066ea71423affd91d5595529b0099b Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 23 May 2017 14:19:59 +0800 Subject: [PATCH 6/6] fix --- .../src/com/fr/design/data/datapane/TreeTableDataDictPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java index 3c5d0799a..36ca2fb7e 100644 --- a/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java +++ b/designer_base/src/com/fr/design/data/datapane/TreeTableDataDictPane.java @@ -31,7 +31,7 @@ import java.util.List; public class TreeTableDataDictPane extends BasicPane implements Previewable { private UILabel selectTableDataLabel; - private TableDataComboBox tableDataNameComboBox; + protected TableDataComboBox tableDataNameComboBox; private UIRadioButton parentMarkRadio; private UIRadioButton lengthMarkRadio; private ButtonGroup markButtonGroup;