forked from fanruan/finekit
Browse Source
* 'master' of https://cloud.finedevelop.com/scm/tc/finekit: KERNEL-1117 修改函数名和参数名 KERNEL-1117 加入单元测试,更改名称 KERNEL-1117 避免Parameter接口暴露 KERNEL-1117 再次修改 KERNEL-1117 加上注释 KERNEL-1117 根据要求再次修改 KERNEL-1117 按要求进行更改 KERNEL-1117 根据要求进行修改 KERNEL-1117 再次进行修改 KERNEL-1117 发现之前遗漏的地方,进行补充 KERNEL-1117 根据要求进行了修改 KERNEL-1117 根据插件增加了fineKit的部分文件,其中单例模式返回单例的方法没有进行单元测试 KERNEL-1117 根据插件增加了fineKit的部分文件,其中单例模式返回单例的方法没有进行单元测试 # Conflicts: # src/main/java/com/fanruan/api/cal/ParameterKit.java # src/main/java/com/fanruan/api/util/GeneralKit.java # src/test/java/com/fanruan/api/util/GeneralKitTest.javaremotes/1611766341912730171/master
zjz1993
5 years ago
13 changed files with 187 additions and 10 deletions
@ -0,0 +1,12 @@
|
||||
package com.fanruan.api.design.ui.component; |
||||
|
||||
import javax.swing.*; |
||||
|
||||
/** |
||||
* 支持键盘输入快速查找项的JList |
||||
*/ |
||||
public class UIQuickList extends com.fr.design.gui.ilist.QuickList { |
||||
public UIQuickList(ListModel listModel) { |
||||
super(listModel); |
||||
} |
||||
} |
@ -0,0 +1,10 @@
|
||||
package com.fanruan.api.design.ui.component; |
||||
|
||||
/** |
||||
* 可以存放按钮组件的容器 |
||||
* @author Kalven |
||||
* @version 10.0 |
||||
* Created by Kalven on 2019/8/30 |
||||
*/ |
||||
public abstract class UIRadioPane<T> extends com.fr.design.gui.frpane.UIRadioPane<T> { |
||||
} |
@ -1,8 +0,0 @@
|
||||
package com.fanruan.api.design.ui.container; |
||||
|
||||
public class DialogActionAdapter extends com.fr.design.dialog.DialogActionAdapter { |
||||
|
||||
public DialogActionAdapter() { |
||||
|
||||
} |
||||
} |
@ -0,0 +1,16 @@
|
||||
package com.fanruan.api.design.work; |
||||
|
||||
import com.fr.stable.ParameterProvider; |
||||
|
||||
/** |
||||
* 用于输入参数的容器 |
||||
*/ |
||||
public class ParameterInputPane extends com.fr.design.parameter.ParameterInputPane { |
||||
public ParameterInputPane(ParameterProvider[] parameters) { |
||||
super(parameters); |
||||
} |
||||
|
||||
public ParameterInputPane(ParameterProvider[] parameters, boolean allowBlank) { |
||||
super(parameters, allowBlank); |
||||
} |
||||
} |
@ -0,0 +1,46 @@
|
||||
package com.fanruan.api.macro; |
||||
|
||||
import com.fr.stable.os.AbstractOperatingSystem; |
||||
|
||||
/** |
||||
* 操作系统判断类,判断操作系统种类 |
||||
* @author Kalven |
||||
* @version 10.0 |
||||
* Created by Kalven on 2019/8/31 |
||||
*/ |
||||
public class OperatingSystem { |
||||
|
||||
/** |
||||
* 得到当前操作系统信息 |
||||
*/ |
||||
private static final AbstractOperatingSystem myOS = com.fr.stable.os.OperatingSystem.getOperatingSystem(); |
||||
|
||||
private OperatingSystem() { |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 判断系统是否是Windows |
||||
* @return 判断结果 |
||||
*/ |
||||
public static boolean isWindows() { |
||||
return myOS.getType() == com.fr.stable.os.OperatingSystem.WINDOWS; |
||||
} |
||||
|
||||
/** |
||||
* 判断系统是否是Unix |
||||
* @return 判断结果 |
||||
*/ |
||||
public static boolean isUnix() { |
||||
return myOS.isUnix(); |
||||
} |
||||
|
||||
/** |
||||
* 判断系统是否是MacOS |
||||
* @return 判断结果 |
||||
*/ |
||||
public static boolean isMacOS() { |
||||
return myOS.getType() == com.fr.stable.os.OperatingSystem.MACOS; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,19 @@
|
||||
package com.fanruan.api.macro; |
||||
|
||||
|
||||
/** |
||||
* @author Kalven |
||||
* @version 10.0 |
||||
* Created by Kalven on 2019/8/30 |
||||
*/ |
||||
public class ProductConstants { |
||||
/** |
||||
* 详细的产品名字 |
||||
*/ |
||||
public static final String PRODUCT_NAME = com.fr.stable.ProductConstants.PRODUCT_NAME; |
||||
|
||||
/** |
||||
* 大的版本号 |
||||
*/ |
||||
public static final String MAIN_VERSION = com.fr.stable.ProductConstants.MAIN_VERSION; |
||||
} |
Loading…
Reference in new issue