Browse Source
* commit '5ae62f0151b09a52bdf1c5b83b39acc1d7bcf215': fix: REPORT-145330 公式显示为英文了 REPORT-145338 修复远程切换大量exist操作的问题 修改文件注释 换个换行符 增加单元格组图标 fix: REPORT-145192 权限申请审批、数据中心-数据目录两个页面存在国际化问题 无jira 代码质量 REPORT-144981 fix:预览按钮禁用状态调整 REPORT-145133 fix:重名校验交互变更 REPORT-145122 feat:树组件选中状态问题修复 REPORT-145129 适配LazyIcon REPORT-144922 【fr-fbp】设计器语言多了一个俄语 REPORT-144922 【fr-fbp】设计器语言多了一个俄语 REPORT-145056 【fr-fbp】直接远程保存的模板,如果数据链接不存在,想要切换数据连接失败 fix: REPORT-144262 数据中心数据集弹窗国际化问题 REPORT-145158 [jsvg] Paths should be rendered up to the location of error 无jira任务 代码质量 REPORT-143738 使用jxbrowser的JxUIPane组件优化卡顿 REPORT-139235 【fr-fbp冒烟】平台关闭权限控制,次管应该拥有所有数据连接的权限fbp/feature
22 changed files with 408 additions and 178 deletions
@ -1 +1,84 @@ |
|||||||
package com.fr.design.editor.editor;
import com.fr.design.gui.itextfield.UITextField;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.stable.ColumnRowGroup;
import java.awt.*;
/**
* Author : Shockway
* Date: 14-1-10
* Time: 下午1:46
*/
public class ColumnRowGroupEditor extends Editor<ColumnRowGroup> {
private UITextField crEditor;
public ColumnRowGroupEditor() {
this("");
}
public ColumnRowGroupEditor(String name) {
this(null, name);
}
public ColumnRowGroupEditor(ColumnRowGroup value) {
this(value, "");
}
public ColumnRowGroupEditor(ColumnRowGroup value, String name) {
this.setLayout(FRGUIPaneFactory.createBorderLayout());
crEditor = new UITextField();
this.add(crEditor, BorderLayout.CENTER);
this.setValue(value);
this.setName(name);
}
@Override
public ColumnRowGroup getValue() {
return new ColumnRowGroup(this.crEditor.getText());
}
@Override
public void setValue(ColumnRowGroup value) {
if (value == null) {
this.crEditor.setText("");
} else {
this.crEditor.setText(value.toString());
}
}
@Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
this.crEditor.setEnabled(enabled);
}
/**
* 获取焦点
*/
public void requestFocus() {
this.crEditor.requestFocus();
}
public String getIconName() {
return "cell_group";
}
/**
* 是否接收/支持这个对象
* @param object 检测对象
* @return 是否支持
*/
public boolean accept(Object object) {
return object instanceof ColumnRowGroup;
}
} |
package com.fr.design.editor.editor; |
||||||
|
|
||||||
|
import com.fr.design.gui.itextfield.UITextField; |
||||||
|
import com.fr.design.layout.FRGUIPaneFactory; |
||||||
|
import com.fr.stable.ColumnRowGroup; |
||||||
|
|
||||||
|
import java.awt.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* 单元格组编辑 |
||||||
|
* |
||||||
|
* @author Shockway |
||||||
|
* @since 2014-01-10 |
||||||
|
* Created on 2024-01-10 |
||||||
|
*/ |
||||||
|
public class ColumnRowGroupEditor extends Editor<ColumnRowGroup> { |
||||||
|
|
||||||
|
private UITextField crEditor; |
||||||
|
|
||||||
|
public ColumnRowGroupEditor() { |
||||||
|
this(""); |
||||||
|
} |
||||||
|
|
||||||
|
public ColumnRowGroupEditor(String name) { |
||||||
|
this(null, name); |
||||||
|
} |
||||||
|
|
||||||
|
public ColumnRowGroupEditor(ColumnRowGroup value) { |
||||||
|
this(value, ""); |
||||||
|
} |
||||||
|
|
||||||
|
public ColumnRowGroupEditor(ColumnRowGroup value, String name) { |
||||||
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||||
|
crEditor = new UITextField(); |
||||||
|
this.add(crEditor, BorderLayout.CENTER); |
||||||
|
this.setValue(value); |
||||||
|
this.setName(name); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public ColumnRowGroup getValue() { |
||||||
|
return new ColumnRowGroup(this.crEditor.getText()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setValue(ColumnRowGroup value) { |
||||||
|
if (value == null) { |
||||||
|
this.crEditor.setText(""); |
||||||
|
} else { |
||||||
|
this.crEditor.setText(value.toString()); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setEnabled(boolean enabled) { |
||||||
|
super.setEnabled(enabled); |
||||||
|
|
||||||
|
this.crEditor.setEnabled(enabled); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取焦点 |
||||||
|
*/ |
||||||
|
public void requestFocus() { |
||||||
|
this.crEditor.requestFocus(); |
||||||
|
} |
||||||
|
|
||||||
|
public String getIconName() { |
||||||
|
return "cell_group"; |
||||||
|
} |
||||||
|
|
||||||
|
public String getIconId() { |
||||||
|
return "cell_group_popup"; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 是否接收/支持这个对象 |
||||||
|
* @param object 检测对象 |
||||||
|
* @return 是否支持 |
||||||
|
*/ |
||||||
|
public boolean accept(Object object) { |
||||||
|
return object instanceof ColumnRowGroup; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,56 @@ |
|||||||
|
package com.fr.design.i18n; |
||||||
|
|
||||||
|
import com.fr.config.ConfigContext; |
||||||
|
import com.fr.config.DefaultConfiguration; |
||||||
|
import com.fr.config.Identifier; |
||||||
|
import com.fr.config.holder.factory.Holders; |
||||||
|
import com.fr.config.holder.impl.MapConf; |
||||||
|
|
||||||
|
import java.util.Collections; |
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设计器语言扩展配置 |
||||||
|
* |
||||||
|
* @author obo |
||||||
|
* @since 11.0 |
||||||
|
* Created on 2024/09/26 |
||||||
|
*/ |
||||||
|
public class DesignExtendLanguageConfig extends DefaultConfiguration { |
||||||
|
|
||||||
|
private static volatile DesignExtendLanguageConfig designExtendLanguageConfig = null; |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取实例 |
||||||
|
*/ |
||||||
|
public static DesignExtendLanguageConfig getInstance() { |
||||||
|
if (designExtendLanguageConfig == null) { |
||||||
|
designExtendLanguageConfig = ConfigContext.getConfigInstance(DesignExtendLanguageConfig.class); |
||||||
|
} |
||||||
|
return designExtendLanguageConfig; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 设计器扩展的语言 |
||||||
|
* key为localeString,例如en_US或en;value为改语言对应的国际化翻译key |
||||||
|
*/ |
||||||
|
@Identifier("extendDesignLocales") |
||||||
|
private MapConf<Map<String, String>> extendDesignLocales = Holders.map(new HashMap<>(), String.class, String.class); |
||||||
|
|
||||||
|
public Map<String, String> getExtendedDesignLocales() { |
||||||
|
return Collections.unmodifiableMap(extendDesignLocales.get()); |
||||||
|
} |
||||||
|
|
||||||
|
public void setExtendedDesignLocales(Map<String, String> map) { |
||||||
|
extendDesignLocales.set(map); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Object clone() throws CloneNotSupportedException { |
||||||
|
DesignExtendLanguageConfig cloned = (DesignExtendLanguageConfig) super.clone(); |
||||||
|
cloned.extendDesignLocales = ( MapConf<Map<String, String>>) extendDesignLocales.clone(); |
||||||
|
return cloned; |
||||||
|
} |
||||||
|
|
||||||
|
} |
After Width: | Height: | Size: 985 B |
After Width: | Height: | Size: 1.0 KiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue