forked from fanruan/finekit
Kalven
5 years ago
16 changed files with 29 additions and 216 deletions
@ -1,21 +0,0 @@
|
||||
package com.fanruan.api.base; |
||||
|
||||
import com.fr.base.Parameter; |
||||
import com.fr.base.ParameterHelper; |
||||
|
||||
/** |
||||
* @author Kalven |
||||
* @version 10.0 |
||||
* Created by Kalven on 2019/8/30 |
||||
*/ |
||||
public class ParameterHelperKit { |
||||
/** |
||||
* 从字符串中分析中有哪些需要的参数 |
||||
* @param text 待分析字符串 |
||||
* @param hasColumnRow 是否需要分析格子类型的参数 |
||||
* @return 字符串中包含的参数集合 |
||||
*/ |
||||
public static Parameter[] analyze4Parameters(String text, boolean hasColumnRow) { |
||||
return ParameterHelper.analyze4Parameters(text, hasColumnRow); |
||||
} |
||||
} |
@ -1,20 +0,0 @@
|
||||
package com.fanruan.api.cal; |
||||
|
||||
import com.fr.script.ScriptFactory; |
||||
|
||||
import javax.script.ScriptEngine; |
||||
|
||||
/** |
||||
* @author Kalven |
||||
* @version 10.0 |
||||
* Created by Kalven on 2019/8/30 |
||||
*/ |
||||
public class ScriptFactoryKit { |
||||
/** |
||||
* 单例模式,获取ScriptEngine对象 |
||||
* @return ScriptEngine对象 |
||||
*/ |
||||
public static ScriptEngine newSingletonScriptEngine() { |
||||
return ScriptFactory.newSingletonScriptEngine(); |
||||
} |
||||
} |
@ -1,14 +0,0 @@
|
||||
package com.fanruan.api.cal.namespace; |
||||
|
||||
import java.util.Map; |
||||
|
||||
public class ParameterMapNameSpace { |
||||
/** |
||||
* 根据参数映射创建一个参数命名空间 |
||||
* @param map 参数名和参数值的映射 |
||||
* @return 参数命名空间 |
||||
*/ |
||||
public static com.fr.base.ParameterMapNameSpace create(Map map) { |
||||
return com.fr.base.ParameterMapNameSpace.create(map); |
||||
} |
||||
} |
@ -1,4 +1,4 @@
|
||||
package com.fanruan.api.design.ui.list; |
||||
package com.fanruan.api.design.ui.component; |
||||
|
||||
import javax.swing.*; |
||||
|
@ -1,7 +0,0 @@
|
||||
package com.fanruan.api.design.ui.component.textarea; |
||||
|
||||
/** |
||||
* 公式输入的文本框 |
||||
*/ |
||||
public class RSyntaxTextArea extends com.fr.design.gui.syntax.ui.rsyntaxtextarea.RSyntaxTextArea { |
||||
} |
@ -1,37 +0,0 @@
|
||||
package com.fanruan.api.design.ui.dialog; |
||||
|
||||
import com.fr.design.dialog.BasicPane; |
||||
|
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* 对话框的抽象类 |
||||
* @author Kalven |
||||
* @version 10.0 |
||||
* Created by Kalven on 2019/8/30 |
||||
*/ |
||||
public abstract class BasicDialog extends com.fr.design.dialog.BasicDialog { |
||||
public BasicDialog(Frame frame) { |
||||
super(frame); |
||||
} |
||||
|
||||
public BasicDialog(Dialog dialog) { |
||||
super(dialog); |
||||
} |
||||
|
||||
public BasicDialog(Frame frame, BasicPane pane) { |
||||
super(frame, pane); |
||||
} |
||||
|
||||
public BasicDialog(Dialog dialog, BasicPane pane) { |
||||
super(dialog, pane); |
||||
} |
||||
|
||||
public BasicDialog(Frame frame, BasicPane pane, boolean isNeedButtonPane) { |
||||
super(frame, pane, isNeedButtonPane); |
||||
} |
||||
|
||||
public BasicDialog(Dialog dialog, BasicPane pane, boolean isNeedButtonPane) { |
||||
super(dialog, pane, isNeedButtonPane); |
||||
} |
||||
} |
@ -1,31 +0,0 @@
|
||||
package com.fanruan.api.design.ui.layout; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.*; |
||||
|
||||
|
||||
public class FRGUIPaneFactoryKit { |
||||
/** |
||||
* 创建边框面板S |
||||
* @return JPanel对象 |
||||
*/ |
||||
public static JPanel createBorderLayout_S_Pane() { |
||||
return com.fr.design.layout.FRGUIPaneFactory.createBorderLayout_S_Pane(); |
||||
} |
||||
|
||||
/** |
||||
* 创建一个靠左流式布局,正常流式内嵌 |
||||
* @return JPanel对象 |
||||
*/ |
||||
public static JPanel createNormalFlowInnerContainer_S_Pane() { |
||||
return com.fr.design.layout.FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
||||
} |
||||
|
||||
/** |
||||
* 创建一个边框布局 |
||||
* @return LayoutManager对象 |
||||
*/ |
||||
public static LayoutManager createBorderLayout() { |
||||
return com.fr.design.layout.FRGUIPaneFactory.createBorderLayout(); |
||||
} |
||||
} |
@ -1,14 +0,0 @@
|
||||
package com.fanruan.api.design.ui.mainframe; |
||||
|
||||
import com.fr.design.mainframe.DesignerContext; |
||||
import com.fr.design.mainframe.DesignerFrame; |
||||
|
||||
public class DesignerContextKit { |
||||
/** |
||||
* 单例模式,返回DesignerFrame对象 |
||||
* @return DesignerFrame对象 |
||||
*/ |
||||
public static DesignerFrame getDesignerFrame() { |
||||
return DesignerContext.getDesignerFrame(); |
||||
} |
||||
} |
@ -1,16 +0,0 @@
|
||||
package com.fanruan.api.util; |
||||
|
||||
import com.fr.base.FRContext; |
||||
|
||||
import java.util.Locale; |
||||
|
||||
public class ContextKit { |
||||
/** |
||||
* 返回国际化区属 |
||||
* @return 国际化后区域属性 |
||||
*/ |
||||
@Deprecated |
||||
public static Locale getLocale() { |
||||
return FRContext.getLocale(); |
||||
} |
||||
} |
@ -1,15 +0,0 @@
|
||||
package com.fanruan.api.util; |
||||
|
||||
import com.fr.general.Inter; |
||||
|
||||
public class InterKit { |
||||
|
||||
/** |
||||
* 获取国际化文本,已过时 |
||||
* @param text |
||||
* @return 国际化文本字符串 |
||||
*/ |
||||
public static String getLocText(String text) { |
||||
return Inter.getLocText(text); |
||||
} |
||||
} |
@ -1,20 +0,0 @@
|
||||
package com.fanruan.api.util; |
||||
|
||||
import org.junit.Test; |
||||
|
||||
import java.util.Locale; |
||||
|
||||
import static org.junit.Assert.*; |
||||
|
||||
/** |
||||
* @author Kalven |
||||
* @version 10.0 |
||||
* Created by Kalven on 2019/8/31 |
||||
*/ |
||||
public class ContextKitTest { |
||||
|
||||
@Test |
||||
public void getLocale() { |
||||
assertEquals(ContextKit.getLocale(), Locale.CHINA); |
||||
} |
||||
} |
Loading…
Reference in new issue