diff --git a/build.gradle b/build.gradle index c56b872..abf3a6c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,9 @@ apply plugin: 'java' - +tasks.withType(JavaCompile) { + options.encoding = "UTF-8" +} ext { /** * 项目中依赖的jar的路径 diff --git a/lib/report/fine-plugin-data-factory-2.5.13.jar b/lib/report/fine-plugin-data-factory-2.5.13.jar new file mode 100644 index 0000000..1d2b22b Binary files /dev/null and b/lib/report/fine-plugin-data-factory-2.5.13.jar differ diff --git a/lib/report/fine-plugin-data-factory-2.5.7.jar b/lib/report/fine-plugin-data-factory-2.5.7.jar deleted file mode 100644 index 45a1793..0000000 Binary files a/lib/report/fine-plugin-data-factory-2.5.7.jar and /dev/null differ diff --git a/plugin.xml b/plugin.xml index b705ccd..abb1b55 100644 --- a/plugin.xml +++ b/plugin.xml @@ -3,7 +3,7 @@ com.fr.plugin.jee.tabledata.factory.demo yes - 1.0 + 1.2 10.0~11.0 2018-07-31 jee @@ -21,10 +21,11 @@ + - \ No newline at end of file + diff --git a/src/main/java/com/fr/plugin/tptj/tabledata/factory/demo/TextTable.java b/src/main/java/com/fr/plugin/tptj/tabledata/factory/demo/TextTable.java new file mode 100644 index 0000000..0250b87 --- /dev/null +++ b/src/main/java/com/fr/plugin/tptj/tabledata/factory/demo/TextTable.java @@ -0,0 +1,62 @@ +package com.fr.plugin.tptj.tabledata.factory.demo; + +import com.fr.design.gui.icontainer.UIScrollPane; +import com.fr.design.gui.itextarea.UITextArea; +import com.fr.design.layout.TableLayout; +import com.fr.design.layout.TableLayoutHelper; +import com.tptj.plugin.hg.fun.ParameterRefreshAction; +import com.tptj.plugin.hg.impl.AbstractConfigTable; + +import javax.swing.*; +import java.awt.Component; +import java.awt.Dimension; +import java.awt.event.FocusEvent; +import java.awt.event.FocusListener; + +public class TextTable extends AbstractConfigTable { + + private final static double P = TableLayout.PREFERRED; + private final static double F = TableLayout.FILL; + + JTextArea textArea; + public TextTable() { + + } + + @Override + public JPanel getTable(ParameterRefreshAction action) { + + textArea = new UITextArea(); + textArea.addFocusListener(new FocusListener() { + @Override + public void focusGained(FocusEvent e) { + + } + + @Override + public void focusLost(FocusEvent e) { + action.doAction(); + } + }); + //textArea.setPreferredSize(new Dimension(350,216)); + UIScrollPane scrollPane = new UIScrollPane(textArea); + scrollPane.setPreferredSize(new Dimension(350,216)); + return TableLayoutHelper.createTableLayoutPane( + new Component[][] {{ + scrollPane + }}, + new double[] { F }, + new double[] { F } + ); + } + + @Override + public void setValue(String text) { + textArea.setText(text); + } + @Override + public String getValue() { + return textArea.getText(); + } + +}