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>
<active>yes</active>
<version>1.0</version>
<env-version>8.0</env-version>
<jartime>2015-08-09</jartime>
<vendor>蜘蛛侠</vendor>
<env-version>10.0</env-version>
<jartime>2018-10-09</jartime>
<vendor>author</vendor>
<description><![CDATA[除内置形态外的自定义形态]]></description>
<change-notes><![CDATA[无]]></change-notes>
<extra-core>
@ -16,5 +16,5 @@
<extra-designer>
<PresentKindProvider class="com.fr.plugin.present.PresentKindBridge"/>
</extra-designer>
<function-recorder class="com.fr.plugin.present.fun.MyPresent"/>
<function-recorder class="com.fr.plugin.present.fun.StarPresent"/>
</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.design.beans.FurtherBasicBeanPane;
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;
/**
@ -25,7 +25,7 @@ public class PresentKindBridge extends AbstractPresentKindProvider {
@Override
public Class<? extends Present> kindOfPresent() {
return MyPresent.class;
return StarPresent.class;
}
@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
*/
@EnableMetrics
public class MyPresent extends AbstractPresent {
public class StarPresent extends AbstractPresent {
@Override
@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.gui.itextfield.UITextField;
import com.fr.plugin.present.fun.MyPresent;
import com.fr.plugin.present.fun.StarPresent;
import java.awt.*;
@ -11,7 +11,7 @@ import java.awt.*;
* @date 2015-05-24
* @since 8.0
*/
public class MyPresentPane extends FurtherBasicBeanPane<MyPresent>{
public class MyPresentPane extends FurtherBasicBeanPane<StarPresent>{
private UITextField textField;
public MyPresentPane() {
@ -27,7 +27,7 @@ public class MyPresentPane extends FurtherBasicBeanPane<MyPresent>{
@Override
public boolean accept(Object ob) {
return ob instanceof MyPresent;
return ob instanceof StarPresent;
}
@Override
@ -41,12 +41,12 @@ public class MyPresentPane extends FurtherBasicBeanPane<MyPresent>{
}
@Override
public void populateBean(MyPresent ob) {
public void populateBean(StarPresent ob) {
}
@Override
public MyPresent updateBean() {
return new MyPresent();
public StarPresent updateBean() {
return new StarPresent();
}
}
Loading…
Cancel
Save