|
|
|
@ -12,6 +12,7 @@ import com.fr.design.gui.ilable.UILabel;
|
|
|
|
|
import com.fr.design.gui.itableeditorpane.UITableEditAction; |
|
|
|
|
import com.fr.design.gui.itableeditorpane.UITableEditorPane; |
|
|
|
|
import com.fr.design.gui.itableeditorpane.UITableModelAdapter; |
|
|
|
|
import com.fr.design.i18n.DesignSizeI18nManager; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.stable.collections.CollectionUtils; |
|
|
|
@ -25,6 +26,7 @@ import javax.swing.table.TableCellRenderer;
|
|
|
|
|
import java.awt.CardLayout; |
|
|
|
|
import java.awt.Color; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.util.LinkedHashSet; |
|
|
|
|
import java.util.List; |
|
|
|
@ -177,6 +179,15 @@ public class DesensitizationRuleChoosePane extends JPanel {
|
|
|
|
|
.collect(Collectors.toSet()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据语言环境获取规则编辑页面的宽高 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
private Dimension getRuleEditPaneDimensionByLocale() { |
|
|
|
|
return DesignSizeI18nManager.getInstance().i18nDimension("com.fr.design.data.datapane.preview.desensitization.view.rule.DesensitizationRuleChoosePane.ruleEditPane"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 规则状态展示页面 |
|
|
|
|
*/ |
|
|
|
@ -256,7 +267,7 @@ public class DesensitizationRuleChoosePane extends JPanel {
|
|
|
|
|
public void doCancel() { |
|
|
|
|
super.doCancel(); |
|
|
|
|
} |
|
|
|
|
}, BasicDialog.DEFAULT); |
|
|
|
|
}, getRuleEditPaneDimensionByLocale()); |
|
|
|
|
basicDialog.setVisible(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -301,7 +312,7 @@ public class DesensitizationRuleChoosePane extends JPanel {
|
|
|
|
|
public void doCancel() { |
|
|
|
|
super.doCancel(); |
|
|
|
|
} |
|
|
|
|
}, BasicDialog.DEFAULT); |
|
|
|
|
}, getRuleEditPaneDimensionByLocale()); |
|
|
|
|
basicDialog.setVisible(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|