Browse Source

star

master
richie 6 years ago
parent
commit
aaf294c0f3
  1. 8
      plugin.xml
  2. 4
      src/main/java/com/fr/plugin/present/PresentKindBridge.java
  3. 2
      src/main/java/com/fr/plugin/present/fun/StarPresent.java
  4. 12
      src/main/java/com/fr/plugin/present/ui/MyPresentPane.java

8
plugin.xml

@ -4,9 +4,9 @@
<name><![CDATA[自定义形态]]></name> <name><![CDATA[自定义形态]]></name>
<active>yes</active> <active>yes</active>
<version>1.0</version> <version>1.0</version>
<env-version>8.0</env-version> <env-version>10.0</env-version>
<jartime>2015-08-09</jartime> <jartime>2018-10-09</jartime>
<vendor>蜘蛛侠</vendor> <vendor>author</vendor>
<description><![CDATA[除内置形态外的自定义形态]]></description> <description><![CDATA[除内置形态外的自定义形态]]></description>
<change-notes><![CDATA[无]]></change-notes> <change-notes><![CDATA[无]]></change-notes>
<extra-core> <extra-core>
@ -16,5 +16,5 @@
<extra-designer> <extra-designer>
<PresentKindProvider class="com.fr.plugin.present.PresentKindBridge"/> <PresentKindProvider class="com.fr.plugin.present.PresentKindBridge"/>
</extra-designer> </extra-designer>
<function-recorder class="com.fr.plugin.present.fun.MyPresent"/> <function-recorder class="com.fr.plugin.present.fun.StarPresent"/>
</plugin> </plugin>

4
src/main/java/com/fr/plugin/present/PresentKindBridge.java

@ -3,7 +3,7 @@ package com.fr.plugin.present;
import com.fr.base.present.Present; import com.fr.base.present.Present;
import com.fr.design.beans.FurtherBasicBeanPane; import com.fr.design.beans.FurtherBasicBeanPane;
import com.fr.design.fun.impl.AbstractPresentKindProvider; import com.fr.design.fun.impl.AbstractPresentKindProvider;
import com.fr.plugin.present.fun.MyPresent; import com.fr.plugin.present.fun.StarPresent;
import com.fr.plugin.present.ui.MyPresentPane; import com.fr.plugin.present.ui.MyPresentPane;
/** /**
@ -25,7 +25,7 @@ public class PresentKindBridge extends AbstractPresentKindProvider {
@Override @Override
public Class<? extends Present> kindOfPresent() { public Class<? extends Present> kindOfPresent() {
return MyPresent.class; return StarPresent.class;
} }
@Override @Override

2
src/main/java/com/fr/plugin/present/fun/MyPresent.java → src/main/java/com/fr/plugin/present/fun/StarPresent.java

@ -15,7 +15,7 @@ import com.fr.stable.xml.XMLableReader;
* @since 8.0 * @since 8.0
*/ */
@EnableMetrics @EnableMetrics
public class MyPresent extends AbstractPresent { public class StarPresent extends AbstractPresent {
@Override @Override
@Focus(id = "com.fr.plugin.present.demo", text = "", source = Original.PLUGIN) @Focus(id = "com.fr.plugin.present.demo", text = "", source = Original.PLUGIN)

12
src/main/java/com/fr/plugin/present/ui/MyPresentPane.java

@ -2,7 +2,7 @@ package com.fr.plugin.present.ui;
import com.fr.design.beans.FurtherBasicBeanPane; import com.fr.design.beans.FurtherBasicBeanPane;
import com.fr.design.gui.itextfield.UITextField; import com.fr.design.gui.itextfield.UITextField;
import com.fr.plugin.present.fun.MyPresent; import com.fr.plugin.present.fun.StarPresent;
import java.awt.*; import java.awt.*;
@ -11,7 +11,7 @@ import java.awt.*;
* @date 2015-05-24 * @date 2015-05-24
* @since 8.0 * @since 8.0
*/ */
public class MyPresentPane extends FurtherBasicBeanPane<MyPresent>{ public class MyPresentPane extends FurtherBasicBeanPane<StarPresent>{
private UITextField textField; private UITextField textField;
public MyPresentPane() { public MyPresentPane() {
@ -27,7 +27,7 @@ public class MyPresentPane extends FurtherBasicBeanPane<MyPresent>{
@Override @Override
public boolean accept(Object ob) { public boolean accept(Object ob) {
return ob instanceof MyPresent; return ob instanceof StarPresent;
} }
@Override @Override
@ -41,12 +41,12 @@ public class MyPresentPane extends FurtherBasicBeanPane<MyPresent>{
} }
@Override @Override
public void populateBean(MyPresent ob) { public void populateBean(StarPresent ob) {
} }
@Override @Override
public MyPresent updateBean() { public StarPresent updateBean() {
return new MyPresent(); return new StarPresent();
} }
} }
Loading…
Cancel
Save