commit cdeb7d8bf8ee78015eab5767411e00cd129beb7e Author: richie Date: Sat Nov 17 17:52:34 2018 +0800 初始化 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d91e065 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.iml +.idea/ +lib/report/*.jar +.DS_Store +.classpath \ No newline at end of file diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..2a2feb9 --- /dev/null +++ b/build.xml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/report/.gitkeep b/lib/report/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/plugin.xml b/plugin.xml new file mode 100644 index 0000000..0d82d8c --- /dev/null +++ b/plugin.xml @@ -0,0 +1,20 @@ + + + com.fr.plugin.present.demo + + yes + 1.0 + 8.0 + 2015-08-09 + 蜘蛛侠 + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b08bff7 --- /dev/null +++ b/pom.xml @@ -0,0 +1,18 @@ + + + 4.0.0 + + + com.fr.plugin + starter + 10.0 + + jar + demo-show-present + + + ${project.basedir}/../webroot/WEB-INF/plugins/plugin-com.fr.plugin.function.fib-1.0/classes + + \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/present/PresentKindBridge.java b/src/main/java/com/fr/plugin/present/PresentKindBridge.java new file mode 100644 index 0000000..ab44acd --- /dev/null +++ b/src/main/java/com/fr/plugin/present/PresentKindBridge.java @@ -0,0 +1,35 @@ +package com.fr.plugin.present; + +import com.fr.base.present.Present; +import com.fr.design.beans.FurtherBasicBeanPane; +import com.fr.design.fun.impl.AbstractPresentKindProvider; +import com.fr.plugin.present.fun.MyPresent; +import com.fr.plugin.present.ui.MyPresentPane; + +/** + * @author richie + * @date 2015-05-24 + * @since 8.0 + */ +public class PresentKindBridge extends AbstractPresentKindProvider { + + @Override + public FurtherBasicBeanPane appearanceForPresent() { + return new MyPresentPane(); + } + + @Override + public String title() { + return "我的形态"; + } + + @Override + public Class kindOfPresent() { + return MyPresent.class; + } + + @Override + public char mnemonic() { + return 'M'; + } +} \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/present/PresentKindLocaleFinder.java b/src/main/java/com/fr/plugin/present/PresentKindLocaleFinder.java new file mode 100644 index 0000000..50f434a --- /dev/null +++ b/src/main/java/com/fr/plugin/present/PresentKindLocaleFinder.java @@ -0,0 +1,10 @@ +package com.fr.plugin.present; + +import com.fr.stable.fun.impl.AbstractLocaleFinder; + +public class PresentKindLocaleFinder extends AbstractLocaleFinder { + @Override + public String find() { + return "com/fr/plugin/present/locale/present"; + } +} diff --git a/src/main/java/com/fr/plugin/present/fun/MyPresent.java b/src/main/java/com/fr/plugin/present/fun/MyPresent.java new file mode 100644 index 0000000..c8d4132 --- /dev/null +++ b/src/main/java/com/fr/plugin/present/fun/MyPresent.java @@ -0,0 +1,35 @@ +package com.fr.plugin.present.fun; + +import com.fr.base.present.AbstractPresent; +import com.fr.intelli.record.Focus; +import com.fr.intelli.record.Original; +import com.fr.record.analyzer.EnableMetrics; +import com.fr.script.Calculator; +import com.fr.stable.ColumnRow; +import com.fr.stable.xml.XMLPrintWriter; +import com.fr.stable.xml.XMLableReader; + +/** + * @author richie + * @date 2015-05-24 + * @since 8.0 + */ +@EnableMetrics +public class MyPresent extends AbstractPresent { + + @Override + @Focus(id = "com.fr.plugin.present.demo", text = "", source = Original.PLUGIN) + public Object present(Object value, Calculator calculator, ColumnRow cr) { + return "aaa"; + } + + @Override + public void readXML(XMLableReader reader) { + + } + + @Override + public void writeXML(XMLPrintWriter writer) { + + } +} \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/present/ui/MyPresentPane.java b/src/main/java/com/fr/plugin/present/ui/MyPresentPane.java new file mode 100644 index 0000000..e325a20 --- /dev/null +++ b/src/main/java/com/fr/plugin/present/ui/MyPresentPane.java @@ -0,0 +1,52 @@ +package com.fr.plugin.present.ui; + +import com.fr.design.beans.FurtherBasicBeanPane; +import com.fr.design.gui.itextfield.UITextField; +import com.fr.plugin.present.fun.MyPresent; + +import java.awt.*; + +/** + * @author richie + * @date 2015-05-24 + * @since 8.0 + */ +public class MyPresentPane extends FurtherBasicBeanPane{ + private UITextField textField; + + public MyPresentPane() { + initComponents(); + } + + private void initComponents() { + setLayout(new BorderLayout()); + textField = new UITextField(); + add(textField, BorderLayout.NORTH); + } + + + @Override + public boolean accept(Object ob) { + return ob instanceof MyPresent; + } + + @Override + public String title4PopupWindow() { + return "我的形态"; + } + + @Override + public void reset() { + + } + + @Override + public void populateBean(MyPresent ob) { + + } + + @Override + public MyPresent updateBean() { + return new MyPresent(); + } +} \ No newline at end of file diff --git a/src/main/resources/com/fr/plugin/present/locale/present.properties b/src/main/resources/com/fr/plugin/present/locale/present.properties new file mode 100644 index 0000000..e69de29 diff --git a/src/main/resources/com/fr/plugin/present/locale/present_zh_CN.properties b/src/main/resources/com/fr/plugin/present/locale/present_zh_CN.properties new file mode 100644 index 0000000..e69de29