diff --git a/designer-base/src/main/java/com/fr/design/editor/editor/ColumnRowGroupEditor.java b/designer-base/src/main/java/com/fr/design/editor/editor/ColumnRowGroupEditor.java index 05329e6a7c..39d9ca87d4 100644 --- a/designer-base/src/main/java/com/fr/design/editor/editor/ColumnRowGroupEditor.java +++ b/designer-base/src/main/java/com/fr/design/editor/editor/ColumnRowGroupEditor.java @@ -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 { 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; } } \ No newline at end of file +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 { + + 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; + } +} \ No newline at end of file diff --git a/designer-base/src/main/resources/com/fine/theme/icon/editor/cell_group_popup.svg b/designer-base/src/main/resources/com/fine/theme/icon/editor/cell_group_popup.svg new file mode 100644 index 0000000000..d2a751bdf1 --- /dev/null +++ b/designer-base/src/main/resources/com/fine/theme/icon/editor/cell_group_popup.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/designer-base/src/main/resources/com/fine/theme/icon/editor/cell_group_popup_disable.svg b/designer-base/src/main/resources/com/fine/theme/icon/editor/cell_group_popup_disable.svg new file mode 100644 index 0000000000..4387382b55 --- /dev/null +++ b/designer-base/src/main/resources/com/fine/theme/icon/editor/cell_group_popup_disable.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/designer-base/src/main/resources/com/fine/theme/light/ui/fine_light.icon.json b/designer-base/src/main/resources/com/fine/theme/light/ui/fine_light.icon.json index fde584207a..3e73413584 100644 --- a/designer-base/src/main/resources/com/fine/theme/light/ui/fine_light.icon.json +++ b/designer-base/src/main/resources/com/fine/theme/light/ui/fine_light.icon.json @@ -393,6 +393,7 @@ "date_popup": "editor/date_popup.svg", "param_popup": "editor/param_popup.svg", "cellelement_popup": "editor/cellelement_popup.svg", + "cell_group_popup": "editor/cell_group_popup.svg", "bind_column_popup": "editor/bind_column_popup.svg", "preview_mobile": "preview/preview_mobile.svg", "preview_paging": "preview/preview_paging.svg",