Browse Source

Merge pull request #6 in TC/finekit from ~ZHAOJUNZHE/finekit:master to master

* commit 'f416ee4ab3b8edc692e35f8d022c0e6f5eafd4cc':
  update: 修改不规范的方法参数命名。
  feat: 按照pr修改,并增加ui组件。
  feat: 新增添一些方法。
pull/11/head
superman 5 years ago
parent
commit
bf00c0255c
  1. 24
      src/main/java/com/fanruan/api/design/ui/component/UICheckBox.java
  2. 2
      src/main/java/com/fanruan/api/design/ui/component/UIIntNumberField.java
  3. 4
      src/main/java/com/fanruan/api/err/UtilEvalError.java
  4. 14
      src/main/java/com/fanruan/api/script/ScriptKit.java

24
src/main/java/com/fanruan/api/design/ui/component/UICheckBox.java

@ -0,0 +1,24 @@
package com.fanruan.api.design.ui.component;
import javax.swing.*;
/**
* @author zhaojunzhe
* @version 10.0
* Created by zhaojunzhe on 2019-08-28
* checkbox组件
*/
public class UICheckBox extends com.fr.design.gui.icheckbox.UICheckBox{
public UICheckBox(String string){super(string);}
public UICheckBox(){}
public UICheckBox(String LocText, boolean checked){
super(LocText, checked);
}
public UICheckBox(String text, Icon icon){
super(text, icon);
}
}

2
src/main/java/com/fanruan/api/design/ui/component/UIIntNumberField.java

@ -1,5 +1,5 @@
package com.fanruan.api.design.ui.component; package com.fanruan.api.design.ui.component;
public class UIIntNumberField extends com.fr.design.gui.itextfield.UIIntNumberField { public class UIIntNumberField extends com.fr.design.gui.itextfield.UIIntNumberField {
public UIIntNumberField(){};
} }

4
src/main/java/com/fanruan/api/err/UtilEvalError.java

@ -0,0 +1,4 @@
package com.fanruan.api.err;
public class UtilEvalError extends com.fr.stable.UtilEvalError{
}

14
src/main/java/com/fanruan/api/script/ScriptKit.java

@ -0,0 +1,14 @@
package com.fanruan.api.script;
import com.fr.script.ScriptFactory;
import javax.script.ScriptEngine;
public class ScriptKit {
/**
* 获取一个全新的脚本执行引擎
* @return 一个全新的脚本执行引擎
*/
public static ScriptEngine newScriptEngine() {
return ScriptFactory.newScriptEngine();
}
}
Loading…
Cancel
Save