forked from fanruan/finekit
Browse Source
* commit '67db510afb14fad2c7648860115138650137f83c': KERNEL-1161 根据要求修改 KERNEL-1161 更改fineKit,GeneralKit中的方法暂时没有测试remotes/1611766341912730171/master
superman
5 years ago
20 changed files with 242 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||||
|
package com.fanruan.api.design.macro; |
||||||
|
|
||||||
|
/** |
||||||
|
* 存放XCreator的常量 |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/3 |
||||||
|
*/ |
||||||
|
public class XCreatorConstants { |
||||||
|
public static final String PROPERTY_CATEGORY = com.fr.design.form.util.XCreatorConstants.PROPERTY_CATEGORY; |
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
package com.fanruan.api.design.ui.component; |
||||||
|
|
||||||
|
import javax.swing.*; |
||||||
|
import java.util.Vector; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
* 列表组件 |
||||||
|
*/ |
||||||
|
public class UIList extends com.fr.design.gui.ilist.UIList { |
||||||
|
|
||||||
|
public UIList(ListModel dataModel) { |
||||||
|
super(dataModel); |
||||||
|
} |
||||||
|
|
||||||
|
public UIList(Object[] listData) { |
||||||
|
super(listData); |
||||||
|
} |
||||||
|
|
||||||
|
public UIList(Vector<?> listData) { |
||||||
|
super(listData); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
package com.fanruan.api.design.ui.container; |
||||||
|
|
||||||
|
/** |
||||||
|
* 抽象数据定义,实现数据可序列化 |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/3 |
||||||
|
*/ |
||||||
|
public abstract class AbstractDataModify<T> extends com.fr.design.widget.ui.AbstractDataModify<T> { |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
package com.fanruan.api.design.ui.container; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
* 数据字典容器,获取数据字典 |
||||||
|
*/ |
||||||
|
public class DictionaryPane extends com.fr.design.present.dict.DictionaryPane { |
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.fanruan.api.design.ui.container; |
||||||
|
|
||||||
|
import com.fr.form.ui.container.WLayout; |
||||||
|
|
||||||
|
import java.awt.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* |
||||||
|
* 属性设置部分布局容器 |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/3 |
||||||
|
*/ |
||||||
|
public abstract class XLayoutContainer extends com.fr.design.designer.creator.XLayoutContainer { |
||||||
|
|
||||||
|
public XLayoutContainer(WLayout widget, Dimension initSize) { |
||||||
|
super(widget, initSize); |
||||||
|
this.addContainerListener(this); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
package com.fanruan.api.design.ui.editor; |
||||||
|
|
||||||
|
import com.fr.design.mainframe.widget.accessibles.AccessibleEditor; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
* 可以通过按钮或其他方式进去编辑面板的编辑器 |
||||||
|
*/ |
||||||
|
public class AccessiblePropertyEditor extends com.fr.design.mainframe.widget.accessibles.AccessiblePropertyEditor { |
||||||
|
public AccessiblePropertyEditor(AccessibleEditor editor) { |
||||||
|
super(editor); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
package com.fanruan.api.design.ui.editor; |
||||||
|
|
||||||
|
/** |
||||||
|
* 允许自定义值的、允许直接编辑的、带重复的 --- 下拉框 下拉复选框 下拉树 |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
*/ |
||||||
|
public abstract class CustomWriteAbleRepeatEditor extends com.fr.form.ui.CustomWriteAbleRepeatEditor { |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
package com.fanruan.api.design.ui.editor; |
||||||
|
|
||||||
|
import com.fr.design.designer.properties.items.Item; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
* 用作左中右对齐设置的下拉框Editor |
||||||
|
*/ |
||||||
|
public class ItemCellEditor extends com.fr.design.mainframe.widget.editors.ItemCellEditor { |
||||||
|
public ItemCellEditor(Item[] items) { |
||||||
|
super(items); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
package com.fanruan.api.design.ui.editor; |
||||||
|
|
||||||
|
import com.fr.design.designer.properties.Encoder; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
* 无法修改的编辑器 |
||||||
|
*/ |
||||||
|
public abstract class UneditableAccessibleEditor extends com.fr.design.mainframe.widget.accessibles.UneditableAccessibleEditor { |
||||||
|
public UneditableAccessibleEditor(Encoder enc) { |
||||||
|
super(enc); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
package com.fanruan.api.design.ui.editor; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
* 控件值的编辑器 |
||||||
|
*/ |
||||||
|
public class WidgetValueEditor extends com.fr.design.mainframe.widget.editors.WidgetValueEditor { |
||||||
|
|
||||||
|
public WidgetValueEditor(Object o) { |
||||||
|
super(o); |
||||||
|
} |
||||||
|
|
||||||
|
public WidgetValueEditor(Object o, boolean onlyServer) { |
||||||
|
super(o, onlyServer); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.fanruan.api.design.ui.editor; |
||||||
|
|
||||||
|
import com.fr.form.ui.FieldEditor; |
||||||
|
|
||||||
|
import java.awt.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* 控件树 |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/3 |
||||||
|
*/ |
||||||
|
public abstract class XFieldEditor extends com.fr.design.designer.creator.XFieldEditor { |
||||||
|
public XFieldEditor(FieldEditor widget, Dimension initSize) { |
||||||
|
super(widget, initSize); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
package com.fanruan.api.design.work; |
||||||
|
|
||||||
|
import com.fr.design.designer.properties.Encoder; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
* 根据控件属性渲染单元格 |
||||||
|
*/ |
||||||
|
public class EncoderCellRenderer extends com.fr.design.mainframe.widget.renderer.EncoderCellRenderer { |
||||||
|
public EncoderCellRenderer(Encoder encoder) { |
||||||
|
super(encoder); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
package com.fanruan.api.design.work; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Kalven |
||||||
|
* @version 10.0 |
||||||
|
* Created by Kalven on 2019/9/4 |
||||||
|
*/ |
||||||
|
public class Item extends com.fr.design.designer.properties.items.Item { |
||||||
|
public Item(String name, Object value) { |
||||||
|
super(name, value); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue