组件注解手册
本手册详细介绍了 OneCode 框架中 com.ds.esd.custom.annotation
包下的各种组件类型及其对应的注解配置。
1. ComponentAnnotation
注解定义
java
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomFieldBean.class)
public @interface ComponentAnnotation {
String id() default "";
String caption() default "";
String[] enums() default {};
Class<? extends Enum> enumClass() default Enum.class;
@NotNull
boolean uid() default false;
@NotNull
boolean pid() default false;
boolean captionField() default false;
String expression() default "";
boolean readonly() default false;
boolean disabled() default false;
@NotNull
boolean hidden() default false;
int index() default 0;
String tips() default "";
String imageClass() default "";
}
字段解释
id
:组件 ID,默认为空字符串caption
:组件标题,默认为空字符串enums
:枚举值数组,默认为空数组enumClass
:枚举类,默认为Enum.class
uid
:是否包含 UID,默认为false
pid
:是否包含 PID,默认为false
captionField
:是否为标题字段,默认为false
expression
:表达式,默认为空字符串readonly
:是否只读,默认为false
disabled
:是否禁用,默认为false
hidden
:是否隐藏,默认为false
index
:索引,默认为0
tips
:提示信息,默认为空字符串imageClass
:图片样式类,默认为空字符串
适用场景
用于配置基础组件,支持 ID、标题、枚举值等基本属性设置,是其他组件注解的基础。
2. ContainerAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ContainerBean.class)
public @interface ContainerAnnotation {
String panelBgClr() default "";
String panelBgImg() default "";
String panelBgImgPos() default "";
AttachmentType panelBgImgAttachment() default AttachmentType.none;
int conLayoutColumns() default 1;
boolean conDockRelative() default false;
ThemesType sandboxTheme() default ThemesType.webflat;
String formMethod() default "";
String formTarget() default "";
String formDataPath() default "";
String formAction() default "";
String formEnctype() default "";
String className() default "";
String dropKeys() default "";
String dragKey() default "";
String iframeAutoLoad() default "";
String ajaxAutoLoad() default "";
String html() default "";
OverflowType overflow() default OverflowType.auto;
String panelBgImgRepeat() default "";
String set() default "";
boolean selectable() default true;
String autoTips() default "";
SpaceUnitType spaceUnit() default SpaceUnitType.em;
HoverPopType hoverPopType() default HoverPopType.inner;
String hoverPop() default "";
String showEffects() default "";
String hideEffects() default "";
int rotate() default -1;
CustomAnimType activeAnim() default CustomAnimType.none;
}
字段解释
panelBgClr
:面板背景颜色,默认为空字符串panelBgImg
:面板背景图片,默认为空字符串panelBgImgPos
:面板背景图片位置,默认为空字符串panelBgImgAttachment
:面板背景图片附着类型,默认为AttachmentType.none
conLayoutColumns
:容器布局列数,默认为1
conDockRelative
:是否相对停靠,默认为false
sandboxTheme
:沙盒主题,默认为ThemesType.webflat
formMethod
:表单方法,默认为空字符串formTarget
:表单目标,默认为空字符串formDataPath
:表单数据路径,默认为空字符串formAction
:表单动作,默认为空字符串formEnctype
:表单编码类型,默认为空字符串className
:样式类名,默认为空字符串dropKeys
:拖放键,默认为空字符串dragKey
:拖动键,默认为空字符串iframeAutoLoad
:iframe 自动加载,默认为空字符串ajaxAutoLoad
:ajax 自动加载,默认为空字符串html
:HTML 内容,默认为空字符串overflow
:溢出类型,默认为OverflowType.auto
panelBgImgRepeat
:面板背景图片重复方式,默认为空字符串set
:设置,默认为空字符串selectable
:是否可选择,默认为true
autoTips
:自动提示,默认为空字符串spaceUnit
:空间单位类型,默认为SpaceUnitType.em
hoverPopType
:悬停弹出类型,默认为HoverPopType.inner
hoverPop
:悬停弹出内容,默认为空字符串showEffects
:显示效果,默认为空字符串hideEffects
:隐藏效果,默认为空字符串rotate
:旋转角度,默认为-1
activeAnim
:活动动画类型,默认为CustomAnimType.none
适用场景
用于配置容器组件,支持背景、布局、表单、拖放等高级属性设置,特别适合创建复杂的容器元素。
3. PanelAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.FIELD,ElementType.TYPE})
@BeanClass(clazz = CustomPanelBean.class)
public @interface PanelAnnotation {
Dock dock() default Dock.none;
String caption() default "";
String html() default "";
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
boolean optBtn() default true;
boolean refreshBtn() default true;
boolean infoBtn() default false;
boolean closeBtn() default true;
BorderType borderType() default BorderType.inset;
boolean noFrame() default false;
HAlignType hAlign() default HAlignType.left;
ToggleIconType toggleIcon() default ToggleIconType.taggle;
boolean toggle() default true;
}
字段解释
dock
:停靠方式,默认为Dock.none
caption
:标题,默认为空字符串html
:HTML 内容,默认为空字符串image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串imageClass
:图片样式类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串optBtn
:是否显示操作按钮,默认为true
refreshBtn
:是否显示刷新按钮,默认为true
infoBtn
:是否显示信息按钮,默认为false
closeBtn
:是否显示关闭按钮,默认为true
borderType
:边框类型,默认为BorderType.inset
noFrame
:是否无边框,默认为false
hAlign
:水平对齐方式,默认为HAlignType.left
toggleIcon
:切换图标类型,默认为ToggleIconType.taggle
toggle
:是否可切换,默认为true
适用场景
用于配置面板组件,支持停靠、标题、按钮、边框等属性设置,特别适合创建可折叠、可关闭的面板元素。
4. ButtonAnnotation
注解定义
java
@CustomClass(clazz = CustomButtonComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Button)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ButtonFieldBean.class)
public @interface ButtonAnnotation {
String id() default "";
String html() default "";
String image() default "";
String value() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String iconFontCode() default "";
HAlignType hAlign() default HAlignType.center;
VAlignType vAlign() default VAlignType.top;
String fontColor() default "";
String fontSize() default "";
String fontWeight() default "";
String fontFamily() default "";
ButtonType buttonType() default ButtonType.normal;
}
字段解释
id
:按钮 ID,默认为空字符串html
:HTML 内容,默认为空字符串image
:图片,默认为空字符串value
:按钮值,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串hAlign
:水平对齐方式,默认为HAlignType.center
vAlign
:垂直对齐方式,默认为VAlignType.top
fontColor
:字体颜色,默认为空字符串fontSize
:字体大小,默认为空字符串fontWeight
:字体粗细,默认为空字符串fontFamily
:字体 family,默认为空字符串buttonType
:按钮类型,默认为ButtonType.normal
适用场景
用于配置按钮组件,支持图片、图标、字体样式等属性设置,特别适合创建自定义样式的按钮元素。
5. InputAnnotation
注解定义
java
@CustomClass(clazz = CustomFieldInputComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Input)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = InputFieldBean.class)
public @interface InputAnnotation {
InputType texttype() default InputType.text;
int maxlength() default -1;
boolean multiLines() default false;
int autoexpand() default 0;
boolean hiddenBorder() default false;
}
字段解释
texttype
:输入类型,默认为InputType.text
maxlength
:最大长度,默认为-1
multiLines
:是否多行,默认为false
autoexpand
:自动扩展,默认为0
hiddenBorder
:是否隐藏边框,默认为false
适用场景
用于配置输入框组件,支持单行/多行、最大长度、边框等属性设置,特别适合创建各种类型的输入表单元素。
6. LabelAnnotation
注解定义
java
@CustomClass(clazz = CustomLabelComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Label)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = LabelFieldBean.class)
public @interface LabelAnnotation {
String id() default "";
boolean selectable() default true;
String clock() default "hh : mm : ss";
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
HAlignType hAlign() default HAlignType.right;
VAlignType vAlign() default VAlignType.middle;
String fontColor() default "";
String fontSize() default "";
String fontWeight() default "";
String fontFamily() default "";
String position() default "";
boolean isFormField() default true;
String excelCellFormula() default "";
}
字段解释
id
:标签 ID,默认为空字符串selectable
:是否可选择,默认为true
clock
:时钟格式,默认为hh : mm : ss
image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串imageClass
:图片样式类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串hAlign
:水平对齐方式,默认为HAlignType.right
vAlign
:垂直对齐方式,默认为VAlignType.middle
fontColor
:字体颜色,默认为空字符串fontSize
:字体大小,默认为空字符串fontWeight
:字体粗细,默认为空字符串fontFamily
:字体 family,默认为空字符串position
:位置,默认为空字符串isFormField
:是否为表单字段,默认为true
excelCellFormula
:Excel 单元格公式,默认为空字符串
适用场景
用于配置标签组件,支持图片、图标、字体样式等属性设置,特别适合创建自定义样式的标签元素。
7. TreeAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE})
@BeanClass(clazz = CustomTreeViewBean.class)
public @interface TreeAnnotation {
@NotNull
boolean formField() default true;
@NotNull
boolean iniFold() default false;
boolean animCollapse() default false;
boolean dynDestory() default false;
@NotNull
boolean lazyLoad() default false;
@NotNull
boolean heplBar() default false;
@NotNull
boolean autoReload() default true;
boolean togglePlaceholder() default true;
boolean noCtrlKey() default true;
@NotNull
int size() default 280;
boolean group() default false;
@NotNull
boolean singleOpen() default false;
String valueSeparator() default ";";
@NotNull
Class bindService() default Void.class;
String caption() default "";
String optBtn() default "xui-uicmd-opt";
Class[] customService() default {};
Class<? extends Enum> enumClass() default TreeEnums.class;
TreeMenu[] contextMenu() default {};
TreeMenu[] rowMenu() default {};
TreeMenu[] customMenu() default {};
TreeMenu[] bottombarMenu() default {};
boolean autoIconColor() default true;
boolean autoItemColor() default false;
boolean autoFontColor() default false;
String[] iconColors() default {};
String[] itemColors() default {};
String[] fontColors() default {};
CustomTreeEvent[] event() default {};
ComponentType[] bindTypes() default {ComponentType.TreeBar, ComponentType.TreeView, ComponentType.MTreeView};
@NotNull
SelModeType selMode() default SelModeType.single;
}
字段解释
formField
:是否为表单字段,默认为true
iniFold
:初始是否折叠,默认为false
animCollapse
:是否有折叠动画,默认为false
dynDestory
:是否动态销毁,默认为false
lazyLoad
:是否懒加载,默认为false
heplBar
:是否显示帮助栏,默认为false
autoReload
:是否自动重载,默认为true
togglePlaceholder
:是否显示切换占位符,默认为true
noCtrlKey
:是否不需要 Ctrl 键,默认为true
size
:大小,默认为280
group
:是否分组,默认为false
singleOpen
:是否单开,默认为false
valueSeparator
:值分隔符,默认为;
bindService
:绑定服务,默认为Void.class
caption
:标题,默认为空字符串optBtn
:操作按钮,默认为xui-uicmd-opt
customService
:自定义服务,默认为空数组enumClass
:枚举类,默认为TreeEnums.class
contextMenu
:上下文菜单,默认为空数组rowMenu
:行菜单,默认为空数组customMenu
:自定义菜单,默认为空数组bottombarMenu
:底部栏菜单,默认为空数组autoIconColor
:自动图标颜色,默认为true
autoItemColor
:自动项颜色,默认为false
autoFontColor
:自动字体颜色,默认为false
iconColors
:图标颜色数组,默认为空数组itemColors
:项颜色数组,默认为空数组fontColors
:字体颜色数组,默认为空数组event
:事件数组,默认为空数组bindType
:绑定类型数组,默认为{ComponentType.TreeBar, ComponentType.TreeView, ComponentType.MTreeView}
selMode
:选择模式,默认为SelModeType.single
适用场景
用于配置树形组件,支持懒加载、菜单、颜色等属性设置,特别适合创建层级结构的数据展示。
8. ListAnnotation
注解定义
java
@CustomClass(clazz = CustomListComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.List)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ListFieldBean.class)
public @interface ListAnnotation {
String id() default "";
@NotNull
SelModeType selMode() default SelModeType.single;
@NotNull
BorderType borderType() default BorderType.flat;
boolean noCtrlKey() default true;
@NotNull
String width() default "auto";
@NotNull
String height() default "15em";
@NotNull
Dock dock() default Dock.none;
int maxHeight() default 420;
ItemRow itemRow() default ItemRow.none;
String optBtn() default "";
@NotNull
String tagCmds() default "[]";
TagCmdsAlign tagCmdsAlign() default TagCmdsAlign.right;
String labelCaption() default "";
}
字段解释
id
:列表 ID,默认为空字符串selMode
:选择模式,默认为SelModeType.single
borderType
:边框类型,默认为BorderType.flat
noCtrlKey
:是否不需要 Ctrl 键,默认为true
width
:宽度,默认为auto
height
:高度,默认为15em
dock
:停靠方式,默认为Dock.none
maxHeight
:最大高度,默认为420
itemRow
:项行,默认为ItemRow.none
optBtn
:操作按钮,默认为空字符串tagCmds
:标签命令,默认为[]
tagCmdsAlign
:标签命令对齐方式,默认为TagCmdsAlign.right
labelCaption
:标签标题,默认为空字符串
适用场景
用于配置列表组件,支持选择模式、边框、尺寸等属性设置,特别适合创建简单的数据列表展示。
9. NavTreeViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullNavTreeComponent.class, viewType = CustomViewType.NAV, moduleType = ModuleViewType.NAVTREECONFIG)
@Retention(RetentionPolicy.RUNTIME)
@BeanClass(clazz = NavTreeDataBean.class)
@Target({ElementType.METHOD})
public @interface NavTreeViewAnnotation {
String expression() default "";
String saveUrl() default "";
@NotNull
boolean autoSave() default false;
String editorPath() default "";
String loadChildUrl() default "";
String dataUrl() default "";
String rootId() default "00000000-0000-0000-0000-000000000000";
@NotNull
ResponsePathTypeEnum itemType() default ResponsePathTypeEnum.TREEVIEW;
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存 URL,默认为空字符串autoSave
:是否自动保存,默认为false
editorPath
:编辑器路径,默认为空字符串loadChildUrl
:加载子节点 URL,默认为空字符串dataUrl
:数据 URL,默认为空字符串rootId
:根节点 ID,默认为00000000-0000-0000-0000-000000000000
itemType
:项类型,默认为ResponsePathTypeEnum.TREEVIEW
适用场景
用于配置导航树视图组件,支持表达式、自动保存、数据加载等属性设置,特别适合创建导航菜单树。
10. TabsAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@BeanClass(clazz = TabsViewBean.class)
@Target({ElementType.TYPE})
public @interface TabsAnnotation {
String value() default "";
@NotNull
boolean activeLast() default true;
String message() default "";
String imageClass() default "";
int maxHeight() default -1;
@NotNull
SelModeType selMode() default SelModeType.single;
boolean lazyAppend() default true;
@NotNull
boolean autoSave() default false;
boolean closeBtn() default false;
boolean popBtn() default true;
boolean formField() default true;
@NotNull
boolean iniFold() default false;
boolean animCollapse() default false;
boolean dynDestory() default false;
boolean noHandler() default false;
boolean togglePlaceholder() default true;
@NotNull
TagCmdsAlign tagCmdsAlign() default TagCmdsAlign.floatright;
boolean group() default false;
@NotNull
BorderType borderType() default BorderType.none;
String optBtn() default "";
String valueSeparator() default ";";
@NotNull
Class<? extends Enum> enumClass() default TabItemEnums.class;
@NotNull
boolean singleOpen() default false;
@NotNull
BarLocationType barLocation() default BarLocationType.top;
HAlignType barHAlign() default HAlignType.left;
VAlignType barVAlign() default VAlignType.bottom;
boolean autoIconColor() default true;
boolean autoItemColor() default true;
boolean autoFontColor() default false;
String[] iconColors() default {};
String[] itemColors() default {"#F19B60", "#49CD81", "#0277bd", "#A693EB", "#42a3af", "#B0E0E6", "#F06292"};
String[] fontColors() default {"#F19B60", "#49CD81", "#0277bd", "#A693EB", "#42a3af", "#B0E0E6", "#F06292"};
@NotNull
String barSize() default "2.5em";
String sideBarSize() default "";
字段解释
value
:值,默认为空字符串activeLast
:是否激活最后一个标签,默认为true
message
:消息,默认为空字符串imageClass
:图片样式类,默认为空字符串maxHeight
:最大高度,默认为-1
selMode
:选择模式,默认为SelModeType.single
lazyAppend
:是否延迟追加,默认为true
autoSave
:是否自动保存,默认为false
closeBtn
:是否显示关闭按钮,默认为false
popBtn
:是否显示弹出按钮,默认为true
formField
:是否为表单字段,默认为true
iniFold
:初始是否折叠,默认为false
animCollapse
:是否有折叠动画,默认为false
dynDestory
:是否动态销毁,默认为false
noHandler
:是否没有处理器,默认为false
togglePlaceholder
:是否显示切换占位符,默认为true
tagCmdsAlign
:标签命令对齐方式,默认为TagCmdsAlign.floatright
group
:是否分组,默认为false
borderType
:边框类型,默认为BorderType.none
optBtn
:操作按钮,默认为空字符串valueSeparator
:值分隔符,默认为;
enumClass
:枚举类,默认为TabItemEnums.class
singleOpen
:是否单开,默认为false
barLocation
:栏位置,默认为BarLocationType.top
barHAlign
:栏水平对齐方式,默认为HAlignType.left
barVAlign
:栏垂直对齐方式,默认为VAlignType.bottom
autoIconColor
:自动图标颜色,默认为true
autoItemColor
:自动项颜色,默认为true
autoFontColor
:自动字体颜色,默认为false
iconColors
:图标颜色数组,默认为空数组itemColors
:项颜色数组,默认为{"#F19B60", "#49CD81", "#0277bd", "#A693EB", "#42a3af", "#B0E0E6", "#F06292"}
fontColors
:字体颜色数组,默认为{"#F19B60", "#49CD81", "#0277bd", "#A693EB", "#42a3af", "#B0E0E6", "#F06292"}
barSize
:栏大小,默认为2.5em
sideBarSize
:侧边栏大小,默认为空字符串
适用场景
用于配置标签组件,支持激活状态、折叠、颜色等属性设置,特别适合创建多标签页界面。
11. ButtonViewsFieldAnnotation
注解定义
java
@CustomClass(clazz = CustomFieldButtonViewsComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.NAVBUTTONVIEWSCONFIG, componentType = ComponentType.ButtonViews)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomButtonViewsFieldBean.class)
public @interface ButtonViewsFieldAnnotation {
boolean selectable() default true;
String iframeAutoLoad() default "";
String html() default "";
String width() default "32em";
String height() default "25em";
OverflowType overflow() default OverflowType.auto;
boolean scaleChildren() default false;
int graphicZIndex() default 0;
}
字段解释
selectable
:是否可选择,默认为true
iframeAutoLoad
:iframe 自动加载,默认为空字符串html
:HTML 内容,默认为空字符串width
:宽度,默认为32em
height
:高度,默认为25em
overflow
:溢出类型,默认为OverflowType.auto
scaleChildren
:是否缩放子元素,默认为false
graphicZIndex
:图形 Z 索引,默认为0
适用场景
用于配置按钮视图字段组件,支持选择、iframe加载、尺寸等属性设置,特别适合创建包含多个按钮的视图组件。
12. ToolBarMenu
注解定义
java
@Inherited
@CustomClass(clazz = CustomToolsBar.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.ToolBar)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
@BeanClass(clazz = ToolBarMenuBean.class)
public @interface ToolBarMenu {
CustomMenu[] menus() default {};
HAlignType hAlign() default HAlignType.left;
VAlignType vAlign() default VAlignType.top;
@NotNull
String iconFontSize() default "1.5em";
String groupId() default "";
String id() default "";
boolean autoIconColor() default true;
boolean autoItemColor() default false;
boolean autoFontColor() default false;
boolean showCaption() default true;
boolean disabled() default false;
boolean lazy() default false;
@NotNull
boolean dynLoad() default false;
Class[] menuClasses() default {};
@NotNull
public boolean handler() default false;
public boolean formField() default true;
@NotNull
Class serviceClass() default MenuActionService.class;
public Class bindService() default Void.class;
}
字段解释
menus
:菜单数组,默认为空数组hAlign
:水平对齐方式,默认为HAlignType.left
vAlign
:垂直对齐方式,默认为VAlignType.top
iconFontSize
:图标字体大小,默认为1.5em
groupId
:组 ID,默认为空字符串id
:工具栏 ID,默认为空字符串autoIconColor
:自动图标颜色,默认为true
autoItemColor
:自动项颜色,默认为false
autoFontColor
:自动字体颜色,默认为false
showCaption
:是否显示标题,默认为true
disabled
:是否禁用,默认为false
lazy
:是否延迟加载,默认为false
dynLoad
:是否动态加载,默认为false
menuClasses
:菜单类数组,默认为空数组handler
:是否有处理器,默认为false
formField
:是否为表单字段,默认为true
serviceClass
:服务类,默认为MenuActionService.class
bindService
:绑定服务,默认为Void.class
适用场景
用于配置工具栏菜单组件,支持菜单、对齐方式、图标大小等属性设置,特别适合创建自定义工具栏。
13. BottomBarMenu
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE})
@BeanClass(clazz = BottomBarMenuBean.class)
public @interface BottomBarMenu {
@NotNull
CustomMenuType menuType() default CustomMenuType.BOTTOMBAR;
@NotNull
boolean lazy() default false;
@NotNull
boolean dynLoad() default false;
String itemPadding() default "";
String itemMargin() default "";
@NotNull
String width() default "auto";
@NotNull
String itemWidth() default "auto";
@NotNull
String itemHeight() default "2.5em";
@NotNull
BorderType borderType() default BorderType.none;
@NotNull
BorderType barBorderType() default BorderType.none;
AlignType itemAlign() default AlignType.center;
String id() default "";
String height() default "";
@NotNull
String barheight() default "3em";
@NotNull
StatusItemType itemType() default StatusItemType.button;
@NotNull
Dock barDock() default Dock.bottom;
@NotNull
Dock dock() default Dock.fill;
boolean connected() default false;
@NotNull
Class[] menuClasses() default {};
boolean autoIconColor() default true;
boolean autoItemColor() default false;
boolean autoFontColor() default false;
String[] iconColors() default {};
String[] itemColors() default {};
String[] fontColors() default {};
TagCmdsAlign tagCmdsAlign() default TagCmdsAlign.floatright;
@NotNull
boolean showCaption() default true;
@NotNull
Class serviceClass() default BottomMenuService.class;
}
字段解释
menuType
:菜单类型,默认为CustomMenuType.BOTTOMBAR
lazy
:是否延迟加载,默认为false
dynLoad
:是否动态加载,默认为false
itemPadding
:项内边距,默认为空字符串itemMargin
:项外边距,默认为空字符串width
:宽度,默认为auto
itemWidth
:项宽度,默认为auto
itemHeight
:项高度,默认为2.5em
borderType
:边框类型,默认为BorderType.none
barBorderType
:栏边框类型,默认为BorderType.none
itemAlign
:项对齐方式,默认为AlignType.center
id
:底部栏 ID,默认为空字符串height
:高度,默认为空字符串barheight
:栏高度,默认为3em
itemType
:项类型,默认为StatusItemType.button
barDock
:栏停靠方式,默认为Dock.bottom
dock
:停靠方式,默认为Dock.fill
connected
:是否连接,默认为false
menuClasses
:菜单类数组,默认为空数组autoIconColor
:自动图标颜色,默认为true
autoItemColor
:自动项颜色,默认为false
autoFontColor
:自动字体颜色,默认为false
iconColors
:图标颜色数组,默认为空数组itemColors
:项颜色数组,默认为空数组fontColors
:字体颜色数组,默认为空数组tagCmdsAlign
:标签命令对齐方式,默认为TagCmdsAlign.floatright
showCaption
:是否显示标题,默认为true
serviceClass
:服务类,默认为BottomMenuService.class
适用场景
用于配置底部栏菜单组件,支持菜单类型、大小、边框等属性设置,特别适合创建底部导航栏。
14. ContextMenu
枚举定义
java
public enum ContextMenu implements CustomMenu, IconEnumstype {
Msg("消息", "spafont spa-icon-c-audio", "true", "left", ComboInputType.text, IconColorEnum.DARKBLUE, new CustomAction[]{CustomTreeAction.MSG}),
Editor("编辑", "spafont spa-icon-designview", "true", "left", ComboInputType.text, IconColorEnum.DARKBLUE, new CustomAction[]{CustomTreeAction.EDITOR}),
Config("配置", "spafont spa-icon-conf", "true", "left", ComboInputType.text, IconColorEnum.DARKBLUE, new CustomAction[]{CustomTreeAction.CONFIG}),
SortDown("向上", "spafont spa-icon-move-down", "true", "left", ComboInputType.text, IconColorEnum.DARKBLUE, new CustomAction[]{CustomTreeAction.SORTUP}),
SortUP("向下", "spafont spa-icon-move-up", "true", "left", ComboInputType.text, IconColorEnum.CYAN, new CustomAction[]{CustomTreeAction.SORTDOWN}),
Delete("删除", "fa fa-lg fa-close", "true", "left", ComboInputType.text, IconColorEnum.YELLOW, new CustomAction[]{CustomTreeAction.DELETE}),
saveRow("保存", "spafont spa-icon-save", "true", "left", ComboInputType.text, IconColorEnum.DARKBLUE, new CustomAction[]{CustomTreeAction.SAVEROW}),
LoadMenu("菜单", "spafont spa-icon-c-menu", "true", "left", ComboInputType.text, IconColorEnum.NONE, new CustomAction[]{CustomTreeAction.LOADMENU});
private String tag;
private String type;
private String caption;
private String imageClass;
private String expression;
IconColorEnum iconColor;
FontColorEnum fontColor;
ItemColorEnum itemColor;
TagCmdsAlign tagCmdsAlign = TagCmdsAlign.floatright;
public ComboInputType itemType = ComboInputType.text;
public String getType() {
return type;
}
@Override
public String getName() {
return caption;
}
public String getcaption() {
return caption;
}
public CustomAction[] actions;
ContextMenu(CustomMenu menu) {
this.type = menu.type();
this.itemType = menu.itemType();
this.tag = menu.type();
this.caption = menu.caption();
this.imageClass = menu.imageClass();
this.expression = menu.expression();
this.actions = menu.actions();
this.iconColor = menu.iconColor();
this.itemColor = menu.itemColor();
this.fontColor = menu.fontColor();
}
ContextMenu(String caption, String imageClass, String expression, String tag, ComboInputType itemType, IconColorEnum iconColor, CustomAction[] actions) {
this.type = name();
this.caption = caption;
this.iconColor = iconColor;
this.imageClass = imageClass;
this.expression = expression;
this.actions = actions;
this.itemType = itemType;
this.tag = tag;
}
@Override
public String toString() {
return type;
}
@Override
public Class<? extends Annotation> annotationType() {
return CustomMenu.class;
}
枚举值解释
Msg
:消息菜单,图标为spafont spa-icon-c-audio
,图标颜色为IconColorEnum.DARKBLUE
Editor
:编辑菜单,图标为spafont spa-icon-designview
,图标颜色为IconColorEnum.DARKBLUE
Config
:配置菜单,图标为spafont spa-icon-conf
,图标颜色为IconColorEnum.DARKBLUE
SortDown
:向上排序菜单,图标为spafont spa-icon-move-down
,图标颜色为IconColorEnum.DARKBLUE
SortUP
:向下排序菜单,图标为spafont spa-icon-move-up
,图标颜色为IconColorEnum.CYAN
Delete
:删除菜单,图标为fa fa-lg fa-close
,图标颜色为IconColorEnum.YELLOW
saveRow
:保存菜单,图标为spafont spa-icon-save
,图标颜色为IconColorEnum.DARKBLUE
LoadMenu
:加载菜单,图标为spafont spa-icon-c-menu
,图标颜色为IconColorEnum.NONE
适用场景
用于定义上下文菜单选项,支持图标、颜色、动作等属性设置,特别适合创建右键菜单。
15. FormFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldFormComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.FORMCONFIG, componentType = ComponentType.MenuBar)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.METHOD})
@BeanClass(clazz = CustomMenuBarFieldBean.class)
public @interface FormFieldAnnotation {
String bgimg() default "";
String imageClass() default "";
String backgroundColor() default "transparent";
@NotNull
BorderType borderType() default BorderType.none;
}
字段解释
bgimg
:背景图片,默认为空字符串imageClass
:图片类,默认为空字符串backgroundColor
:背景颜色,默认为transparent
borderType
:边框类型,默认为BorderType.none
适用场景
用于配置表单字段组件,支持背景图片、颜色和边框等属性设置,特别适合创建自定义表单字段。
16. DialogAnnotation
注解定义
java
;
import java.lang.annotation.Target;
@CustomClass(clazz = DialogComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Dialog)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@BeanClass(clazz = DialogBean.class)
public @interface DialogAnnotation {
String caption() default "";
String tips() default "";
@NotNull
String left() default "220";
@NotNull
String top() default "100";
Dock dock() default Dock.none;
@NotNull
String showEffects() default "Classic";
String hideEffects() default "";
String iframeAutoLoad() default "";
String ajaxAutoLoad() default "";
String initPos() default "";
DiaStatusType status() default DiaStatusType.normal;
String name() default "";
@NotNull
String imageClass() default "spafont spa-icon-c-dialog";
String id() default "";
boolean cmd() default true;
boolean movable() default true;
boolean resizer() default true;
boolean modal() default true;
boolean locked() default false;
String fromRegion() default "";
String minWidth() default "-1";
String minHeight() default "-1";
@NotNull
String width() default "25em";
@NotNull
String height() default "36em";
}
字段解释
caption
:标题,默认为空字符串tips
:提示信息,默认为空字符串left
:左边距,默认为220
top
:上边距,默认为100
dock
:停靠方式,默认为Dock.none
showEffects
:显示效果,默认为Classic
hideEffects
:隐藏效果,默认为空字符串iframeAutoLoad
:iframe 自动加载,默认为空字符串ajaxAutoLoad
:ajax 自动加载,默认为空字符串initPos
:初始位置,默认为空字符串status
:状态,默认为DiaStatusType.normal
name
:名称,默认为空字符串imageClass
:图片类,默认为spafont spa-icon-c-dialog
id
:ID,默认为空字符串cmd
:是否有命令,默认为true
movable
:是否可移动,默认为true
resizer
:是否可调整大小,默认为true
modal
:是否模态,默认为true
locked
:是否锁定,默认为false
fromRegion
:来自区域,默认为空字符串minWidth
:最小宽度,默认为-1
minHeight
:最小高度,默认为-1
width
:宽度,默认为25em
height
:高度,默认为36em
适用场景
用于配置对话框组件,支持标题、位置、大小、效果等属性设置,特别适合创建自定义对话框。
17. GridFieldAnnotation
注解定义
java
import java.lang.annotation.*;
@Inherited
@CustomClass(clazz = CustomFieldGridComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.GRIDCONFIG,componentType = ComponentType.TreeGrid)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.METHOD})
@BeanClass(clazz = CustomGridFieldBean.class)
public @interface GridFieldAnnotation {
Class bindClass() default Void.class;
String bgimg() default "";
String imageClass() default "";
String backgroundColor() default "transparent";
@NotNull
BorderType borderType() default BorderType.none;
}
字段解释
bindClass
:绑定类,默认为Void.class
bgimg
:背景图片,默认为空字符串imageClass
:图片类,默认为空字符串backgroundColor
:背景颜色,默认为transparent
borderType
:边框类型,默认为BorderType.none
适用场景
用于配置网格字段组件,支持背景图片、颜色和边框等属性设置,特别适合创建自定义网格字段。
18. TreeFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldTreeComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.TREECONFIG, componentType = ComponentType.TreeView)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.METHOD})
@BeanClass(clazz = CustomTreeFieldBean.class)
public @interface TreeFieldAnnotation {
Class bindClass() default Void.class;
String bgimg() default "";
String imageClass() default "";
String backgroundColor() default "transparent";
@NotNull
BorderType borderType() default BorderType.none;
}
字段解释
bindClass
:绑定类,默认为Void.class
bgimg
:背景图片,默认为空字符串imageClass
:图片类,默认为空字符串backgroundColor
:背景颜色,默认为transparent
borderType
:边框类型,默认为BorderType.none
适用场景
用于配置树字段组件,支持背景图片、颜色和边框等属性设置,特别适合创建自定义树字段。
19. PanelFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldPanelComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.PANELCONFIG, componentType = ComponentType.Panel)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@BeanClass(clazz = CustomPanelFieldBean.class)
public @interface PanelFieldAnnotation {
Dock dock() default Dock.fill;
String caption() default "";
String html() default "";
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
BorderType borderType() default BorderType.inset;
boolean noFrame() default false;
HAlignType hAlign() default HAlignType.left;
ToggleIconType toggleIcon() default ToggleIconType.taggle;
boolean toggle() default true;
}
字段解释
dock
:停靠方式,默认为Dock.fill
caption
:标题,默认为空字符串html
:HTML 内容,默认为空字符串image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串imageClass
:图片类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串borderType
:边框类型,默认为BorderType.inset
noFrame
:无框架,默认为false
hAlign
:水平对齐方式,默认为HAlignType.left
toggleIcon
:切换图标类型,默认为ToggleIconType.taggle
toggle
:是否可切换,默认为true
适用场景
用于配置面板字段组件,支持停靠方式、标题、图片、边框等属性设置,特别适合创建自定义面板字段。
20. LayoutFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldLayoutComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.LAYOUTCONFIG, componentType = ComponentType.Layout)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomLayoutFieldBean.class)
public @interface LayoutFieldAnnotation {
LayoutItemAnnotation[] layoutItems() default {};
@NotNull
LayoutType type() default LayoutType.horizontal;
boolean dragSortable() default false;
boolean flexSize() default false;
@NotNull
BorderType borderType() default BorderType.none;
@NotNull
boolean transparent() default true;
String[] listKey() default {};
String left() default "0em";
String top() default "0em";
@NotNull
Class<? extends Enum> enumClass() default LayoutItemEnums.class;
int conLayoutColumns() default -1;
}
字段解释
layoutItems
:布局项数组,默认为空数组type
:布局类型,默认为LayoutType.horizontal
dragSortable
:是否可拖动排序,默认为false
flexSize
:是否弹性大小,默认为false
borderType
:边框类型,默认为BorderType.none
transparent
:是否透明,默认为true
listKey
:列表键数组,默认为空数组left
:左边距,默认为0em
top
:上边距,默认为0em
enumClass
:枚举类,默认为LayoutItemEnums.class
conLayoutColumns
:内容布局列数,默认为-1
适用场景
用于配置布局字段组件,支持布局类型、排序、大小等属性设置,特别适合创建自定义布局。
21. GroupFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldGroupComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.GROUPCONFIG, componentType = ComponentType.Group)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@BeanClass(clazz = CustomGroupFieldBean.class)
public @interface GroupFieldAnnotation {
@NotNull
Dock dock() default Dock.fill;
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String iconFontCode() default "";
String height() default "150";
@NotNull
BorderType borderType() default BorderType.none;
boolean noFrame() default false;
HAlignType hAlign() default HAlignType.left;
ToggleIconType toggleIcon() default ToggleIconType.taggle;
@NotNull
boolean toggleBtn() default true;
String imageClass() default "";
String caption() default "";
String groupName() default "";
boolean displayBar() default true;
boolean optBtn() default true;
boolean refreshBtn() default true;
boolean infoBtn() default false;
boolean closeBtn() default true;
@NotNull
boolean lazyLoad() default false;
@NotNull
boolean iniFold() default false;
boolean lazyAppend() default true;
boolean autoReload() default true;
boolean dynDestory() default false;
Class<? extends TabItem> customItems() default TabItem.class;
String src() default "";
boolean dynLoad() default false;
EmbedType embed() default EmbedType.module;
@NotNull
AppendType append() default AppendType.ref;
@NotNull
Class bindClass() default Void.class;
CustomFormEvent[] event() default {};
}
字段解释
dock
:停靠方式,默认为Dock.fill
image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串height
:高度,默认为150
borderType
:边框类型,默认为BorderType.none
noFrame
:无框架,默认为false
hAlign
:水平对齐方式,默认为HAlignType.left
toggleIcon
:切换图标类型,默认为ToggleIconType.taggle
toggleBtn
:切换按钮,默认为true
imageClass
:图片类,默认为空字符串caption
:标题,默认为空字符串groupName
:组名称,默认为空字符串displayBar
:显示栏,默认为true
optBtn
:选项按钮,默认为true
refreshBtn
:刷新按钮,默认为true
infoBtn
:信息按钮,默认为false
closeBtn
:关闭按钮,默认为true
lazyLoad
:延迟加载,默认为false
iniFold
:初始折叠,默认为false
lazyAppend
:延迟追加,默认为true
autoReload
:自动重载,默认为true
dynDestory
:动态销毁,默认为false
customItems
:自定义项,默认为TabItem.class
src
:源,默认为空字符串dynLoad
:动态加载,默认为false
embed
:嵌入类型,默认为EmbedType.module
append
:追加类型,默认为AppendType.ref
bindClass
:绑定类,默认为Void.class
event
:事件数组,默认为空数组
适用场景
用于配置组字段组件,支持停靠方式、标题、按钮、加载等属性设置,特别适合创建自定义组字段。
22. ContentBlockFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldContentBlockComponent.class, moduleType = ModuleViewType.CONTENTBLOCKCONFIG, viewType = CustomViewType.COMPONENT, componentType = ComponentType.ContentBlock)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.METHOD})
@BeanClass(clazz = CustomContentBlockFieldBean.class)
public @interface ContentBlockFieldAnnotation {
String bgimg() default "";
Class<? extends Enum> enumClass() default ContentBlockItemEnum.class;
String backgroundColor() default "transparent";
Class[] customService() default {};
@NotNull
BorderType borderType() default BorderType.none;
}
字段解释
bgimg
:背景图片,默认为空字符串enumClass
:枚举类,默认为ContentBlockItemEnum.class
backgroundColor
:背景颜色,默认为transparent
customService
:自定义服务数组,默认为空数组borderType
:边框类型,默认为BorderType.none
适用场景
用于配置内容块字段组件,支持背景图片、颜色和边框等属性设置,特别适合创建自定义内容块字段。
23. AnimBinder
注解定义
java
@CustomClass(clazz = AnimBinderComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.AnimBinder)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = AnimBinderBean.class)
public @interface AnimBinder {
CustomAnimType customAnim() default CustomAnimType.blinkAlert;
String dataBinder() default "";
String dataField() default "";
String name() default "";
}
字段解释
customAnim
:自定义动画类型,默认为CustomAnimType.blinkAlert
dataBinder
:数据绑定器,默认为空字符串dataField
:数据字段,默认为空字符串name
:名称,默认为空字符串
适用场景
用于配置动画绑定组件,支持自定义动画类型和数据绑定,特别适合创建具有动画效果的组件。
24. AudioAnnotation
注解定义
java
@CustomClass(clazz = CustomAudioComponent.class, viewType = CustomViewType.COMPONENT, componentType=ComponentType.Audio)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = AudioFieldBean.class)
public @interface AudioAnnotation {
boolean selectable() default true;
String width() default "18.0em";
String height() default "5.0em";
String src() default "media";
boolean cover() default false;
boolean controls() default true;
PreloadType preload() default PreloadType.none;
boolean loop() default false;
boolean muted() default false;
int volume() default 1;
boolean autoplay() default false;
}
字段解释
selectable
:是否可选择,默认为true
width
:宽度,默认为18.0em
height
:高度,默认为5.0em
src
:源,默认为media
cover
:封面,默认为false
controls
:控件,默认为true
preload
:预加载类型,默认为PreloadType.none
loop
:循环,默认为false
muted
:静音,默认为false
volume
:音量,默认为1
autoplay
:自动播放,默认为false
适用场景
用于配置音频组件,支持播放控制、音量调节和自动播放等属性设置,特别适合创建音频播放组件。
25. CameraAnnotation
注解定义
java
@CustomClass(clazz = CustomCameraComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Camera)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CameraFieldBean.class)
public @interface CameraAnnotation {
boolean selectable() default true;
String width() default "34.0em";
String height() default "25.0em";
String src() default "media";
boolean cover() default false;
boolean controls() default true;
PreloadType preload() default PreloadType.none;
boolean loop() default false;
boolean muted() default false;
int volume() default 1;
boolean autoplay() default false;
String poster() default "";
}
字段解释
selectable
:是否可选择,默认为true
width
:宽度,默认为34.0em
height
:高度,默认为25.0em
src
:源,默认为media
cover
:封面,默认为false
controls
:控件,默认为true
preload
:预加载类型,默认为PreloadType.none
loop
:循环,默认为false
muted
:静音,默认为false
volume
:音量,默认为1
autoplay
:自动播放,默认为false
poster
:海报,默认为空字符串
适用场景
用于配置摄像头组件,支持视频控制、音量调节和海报设置等属性设置,特别适合创建摄像头监控组件。
26. CheckBoxAnnotation
注解定义
java
@CustomClass(clazz = CustomCheckBoxComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.CheckBox)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CheckBoxFieldBean.class)
public @interface CheckBoxAnnotation {
String id() default "";
HAlignType hAlign() default HAlignType.left;
VAlignType vAlign() default VAlignType.top;
ImagePos iconPos() default ImagePos.left;
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
String caption() default "";
}
字段解释
id
:ID,默认为空字符串hAlign
:水平对齐方式,默认为HAlignType.left
vAlign
:垂直对齐方式,默认为VAlignType.top
iconPos
:图标位置,默认为ImagePos.left
image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串imageClass
:图片类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串caption
:标题,默认为空字符串
适用场景
用于配置复选框组件,支持对齐方式、图标位置、图片和标题等属性设置,特别适合创建自定义复选框。
27. CodeEditorAnnotation
注解定义
java
@CustomClass(clazz = CustomCodeEditorComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.CodeEditor)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CodeEditorFieldBean.class)
public @interface CodeEditorAnnotation {
boolean dynLoad() default false;
boolean selectable() default true;
String value() default "";
String width() default "32.0em";
String height() default "25.0em";
String frameStyle() default "";
String cmdList() default "";
String cmdFilter() default "";
String codeType() default "js";
String labelGap() default "4.0em";
}
字段解释
dynLoad
:动态加载,默认为false
selectable
:是否可选择,默认为true
value
:值,默认为空字符串width
:宽度,默认为32.0em
height
:高度,默认为25.0em
frameStyle
:框架样式,默认为空字符串cmdList
:命令列表,默认为空字符串cmdFilter
:命令过滤器,默认为空字符串codeType
:代码类型,默认为js
labelGap
:标签间距,默认为4.0em
适用场景
用于配置代码编辑器组件,支持动态加载、尺寸、框架样式和代码类型等属性设置,特别适合创建代码编辑区域。
28. ColorPickerAnnotation
注解定义
java
@CustomClass(clazz = CustomColorPickerComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.ColorPicker)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ColorPickerFieldBean.class)
public @interface ColorPickerAnnotation {
String id() default "";
String height() default "auto";
String width() default "auto";
String value() default "";
boolean closeBtn() default true;
boolean barDisplay() default true;
boolean advance() default true;
}
字段解释
id
:ID,默认为空字符串height
:高度,默认为auto
width
:宽度,默认为auto
value
:值,默认为空字符串closeBtn
:关闭按钮,默认为true
barDisplay
:栏显示,默认为true
advance
:高级选项,默认为true
适用场景
用于配置颜色选择器组件,支持尺寸、值和显示选项等属性设置,特别适合创建颜色选择界面。
29. ComboBoxAnnotation
注解定义
java
@CustomClass(clazz = CustomComboBoxComponent.class,
viewType = CustomViewType.COMBOBOX,
inputType = ComboInputType.combobox,
componentType = ComponentType.ComboInput)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ComboxFieldBean.class)
public @interface ComboBoxAnnotation {
String listKey() default "";
String dropImageClass() default "";
int dropListWidth() default 0;
int dropListHeight() default 0;
}
字段解释
listKey
:列表键,默认为空字符串dropImageClass
:下拉图片类,默认为空字符串dropListWidth
:下拉列表宽度,默认为0
dropListHeight
:下拉列表高度,默认为0
适用场景
用于配置组合框组件,支持列表键、下拉图片类和下拉列表尺寸等属性设置,特别适合创建自定义组合框。
30. ComboDateAnnotation
注解定义
java
@CustomClass(clazz = CustomComboInputComponent.class, viewType = CustomViewType.COMBOBOX, inputType = {ComboInputType.date, ComboInputType.datetime, ComboInputType.time}, componentType = ComponentType.ComboInput)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ComboDateFieldBean.class)
public @interface ComboDateAnnotation {
String dateEditorTpl() default "";
}
字段解释
dateEditorTpl
:日期编辑器模板,默认为空字符串
适用场景
用于配置日期组合组件,支持日期编辑器模板属性设置,特别适合创建日期选择界面。
31. ComboFileAnnotation
注解定义
java
@CustomClass(clazz = CustomComboInputComponent.class, viewType = CustomViewType.COMBOBOX, inputType = {ComboInputType.file}, componentType = ComponentType.ComboInput)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ComboFileFieldBean.class)
public @interface ComboFileAnnotation {
String fileAccept() default "";
boolean fileMultiple() default true;
}
字段解释
fileAccept
:文件接受类型,默认为空字符串fileMultiple
:是否允许多文件,默认为true
适用场景
用于配置文件组合组件,支持文件接受类型和多文件选项等属性设置,特别适合创建文件上传界面。
32. ComboGetterAnnotation
注解定义
java
@CustomClass(clazz = CustomComboPopComponent.class, viewType = CustomViewType.COMBOBOX,
inputType = ComboInputType.getter, componentType = ComponentType.ComboInput)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ComboGetterFieldBean.class)
public @interface ComboGetterAnnotation {
String parentID() default "";
boolean cachePopWnd() default true;
@NotNull
String width() default "18.0em";
@NotNull
String height() default "5.0em";
String src() default "";
boolean dynLoad() default false;
ComboInputType inputType() default ComboInputType.getter;
Class bindClass() default Void.class;
}
字段解释
parentID
:父ID,默认为空字符串cachePopWnd
:缓存弹出窗口,默认为true
width
:宽度,默认为18.0em
height
:高度,默认为5.0em
src
:源,默认为空字符串dynLoad
:动态加载,默认为false
inputType
:输入类型,默认为ComboInputType.getter
bindClass
:绑定类,默认为Void.class
适用场景
用于配置获取器组合组件,支持父ID、缓存、尺寸和动态加载等属性设置,特别适合创建带获取器的组合输入组件。
33. ComboHelpAnnotation
注解定义
java
@CustomClass(clazz = CustomComboListComponent.class, viewType = CustomViewType.COMBOBOX,
inputType = ComboInputType.helpinput,
componentType = ComponentType.ComboInput)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ComboHelpFieldBean.class)
public @interface ComboHelpAnnotation {
String listKey() default "";
String dropImageClass() default "";
int dropListWidth() default 0;
int dropListHeight() default 0;
ComboInputType inputType() default ComboInputType.helpinput;
}
字段解释
listKey
:列表键,默认为空字符串dropImageClass
:下拉图片类,默认为空字符串dropListWidth
:下拉列表宽度,默认为0
dropListHeight
:下拉列表高度,默认为0
inputType
:输入类型,默认为ComboInputType.helpinput
适用场景
用于配置帮助组合组件,支持列表键、下拉图片类和下拉列表尺寸等属性设置,特别适合创建带帮助功能的组合输入组件。
34. ComboImageAnnotation
注解定义
java
@CustomClass(clazz = CustomComboInputComponent.class, viewType = CustomViewType.COMBOBOX, inputType = {ComboInputType.image}, componentType = ComponentType.ComboInput)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ComboImageFieldBean.class)
public @interface ComboImageAnnotation {
String image() default "";
ImagePos imagePos() default ImagePos.center;
}
字段解释
image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
适用场景
用于配置图片组合组件,支持图片和图片位置等属性设置,特别适合创建带图片的组合输入组件。
35. DatePickerAnnotation
注解定义
java
@CustomClass(clazz = CustomDatePickerComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.DatePicker)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = DatePickerFieldBean.class)
public @interface DatePickerAnnotation {
String id() default "";
boolean timeInput() default false;
String value() default "";
boolean closeBtn() default false;
int firstDayOfWeek() default 0;
String offDays() default "60";
boolean hideWeekLabels() default false;
String dateInputFormat() default "yyyy-mm-dd";
}
字段解释
id
:ID,默认为空字符串timeInput
:是否允许时间输入,默认为false
value
:值,默认为空字符串closeBtn
:是否显示关闭按钮,默认为false
firstDayOfWeek
:一周的第一天,默认为0
offDays
:休息日,默认为60
hideWeekLabels
:是否隐藏周标签,默认为false
dateInputFormat
:日期输入格式,默认为yyyy-mm-dd
适用场景
用于配置日期选择器组件,支持时间输入、关闭按钮和日期格式等属性设置,特别适合创建日期选择界面。
36. DialogAnnotation
注解定义
java
@CustomClass(clazz = DialogComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Dialog)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@BeanClass(clazz = DialogBean.class)
public @interface DialogAnnotation {
String caption() default "";
String tips() default "";
@NotNull
String left() default "220";
@NotNull
String top() default "100";
Dock dock() default Dock.none;
@NotNull
String showEffects() default "Classic";
String hideEffects() default "";
String iframeAutoLoad() default "";
String ajaxAutoLoad() default "";
String initPos() default "";
DiaStatusType status() default DiaStatusType.normal;
String name() default "";
@NotNull
String imageClass() default "spafont spa-icon-c-dialog";
String id() default "";
boolean cmd() default true;
boolean movable() default true;
boolean resizer() default true;
boolean modal() default true;
boolean locked() default false;
String fromRegion() default "";
String minWidth() default "-1";
String minHeight() default "-1";
@NotNull
String width() default "25em";
@NotNull
String height() default "36em";
}
字段解释
caption
:标题,默认为空字符串tips
:提示,默认为空字符串left
:左边距,默认为220
top
:上边距,默认为100
dock
:停靠方式,默认为Dock.none
showEffects
:显示效果,默认为Classic
hideEffects
:隐藏效果,默认为空字符串iframeAutoLoad
:iframe自动加载,默认为空字符串ajaxAutoLoad
:ajax自动加载,默认为空字符串initPos
:初始位置,默认为空字符串status
:状态,默认为DiaStatusType.normal
name
:名称,默认为空字符串imageClass
:图片类,默认为spafont spa-icon-c-dialog
id
:ID,默认为空字符串cmd
:是否显示命令,默认为true
movable
:是否可移动,默认为true
resizer
:是否可调整大小,默认为true
modal
:是否模态,默认为true
locked
:是否锁定,默认为false
fromRegion
:来自区域,默认为空字符串minWidth
:最小宽度,默认为-1
minHeight
:最小高度,默认为-1
width
:宽度,默认为25em
height
:高度,默认为36em
适用场景
用于配置对话框组件,支持标题、位置、效果和大小等属性设置,特别适合创建模态或非模态对话框。
37. DivAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.FIELD,ElementType.TYPE})
@BeanClass(clazz = CustomDivBean.class)
public @interface DivAnnotation {
public String iframeAutoLoad() default "";
public String ajaxAutoLoad() default "";
public String width() default "";
public String height() default "";
public String html() default "";
public OverflowType overflow() default OverflowType.auto;
}
字段解释
iframeAutoLoad
:iframe自动加载,默认为空字符串ajaxAutoLoad
:ajax自动加载,默认为空字符串width
:宽度,默认为空字符串height
:高度,默认为空字符串html
:HTML内容,默认为空字符串overflow
:溢出处理方式,默认为OverflowType.auto
适用场景
用于配置分区组件,支持iframe加载、ajax加载和HTML内容等属性设置,特别适合创建灵活的布局区域。
38. EChartAnnotation
注解定义
java
@CustomClass(clazz = CustomEChartComponent.class, viewType = CustomViewType.MODULE, moduleType = ModuleViewType.ECHARTCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@BeanClass(clazz = CustomEChartViewBean.class)
public @interface EChartAnnotation {
String chartTheme() default "";
boolean chartResizeSilent() default true;
String chartCDN() default "";
String chartCDNGL() default "";
String bottom() default "";
String display() default "";
int chartDevicePixelRatio() default 0;
String xAxisDateFormatter() default "";
CustomFormMenu[] customMenu() default {};
CustomFieldEvent[] event() default {};
CustomFormMenu[] bottombarMenu() default {};
Class[] customService() default {};
}
字段解释
chartTheme
:图表主题,默认为空字符串chartResizeSilent
:图表调整大小是否静默,默认为true
chartCDN
:图表CDN,默认为空字符串chartCDNGL
:图表CDNGL,默认为空字符串bottom
:底部,默认为空字符串display
:显示,默认为空字符串chartDevicePixelRatio
:图表设备像素比,默认为0
xAxisDateFormatter
:X轴日期格式化,默认为空字符串customMenu
:自定义菜单,默认为空数组event
:事件,默认为空数组bottombarMenu
:底部栏菜单,默认为空数组customService
:自定义服务,默认为空数组
适用场景
用于配置EChart图表组件,支持主题、调整大小、CDN和事件等属性设置,特别适合创建交互式图表。
39. FileUploadAnnotation
注解定义
java
cy;
@CustomClass(clazz = CustomFileUploadComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.FileUpload)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = FileUploadFieldBean.class)
public @interface FileUploadAnnotation {
String id() default "";
@NotNull
Dock dock() default Dock.fill;
boolean selectable() default true;
@NotNull
String width() default "30.0em";
@NotNull
String height() default "30.0em";
@NotNull
String src() default "/plugins/fileupload/uploadgrid.html";
Class bindClass() default Void.class;
boolean prepareFormData() default true;
String uploadUrl() default "";
}
字段解释
id
:ID,默认为空字符串dock
:停靠方式,默认为Dock.fill
selectable
:是否可选择,默认为true
width
:宽度,默认为30.0em
height
:高度,默认为30.0em
src
:源,默认为/plugins/fileupload/uploadgrid.html
bindClass
:绑定类,默认为Void.class
prepareFormData
:是否准备表单数据,默认为true
uploadUrl
:上传URL,默认为空字符串
适用场景
用于配置文件上传组件,支持停靠方式、选择功能和上传URL等属性设置,特别适合创建文件上传界面。
40. FlashAnnotation
注解定义
java
@CustomClass(clazz = CustomFlashComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Flash)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = FlashFieldBean.class)
public @interface FlashAnnotation {
boolean selectable() default true;
String width() default "18em";
String height() default "5em";
boolean cover() default false;
String src() default "media";
}
字段解释
selectable
:是否可选择,默认为true
width
:宽度,默认为18em
height
:高度,默认为5em
cover
:是否覆盖,默认为false
src
:源,默认为media
适用场景
用于配置Flash组件,支持选择功能、尺寸和源等属性设置,特别适合嵌入Flash内容。
41. FormViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullClassFormComponent.class, viewType = CustomViewType.MODULE, moduleType = ModuleViewType.FORMCONFIG)
@BeanClass(clazz = CustomFormDataBean.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface FormViewAnnotation {
String expression() default "";
@BindMenuItem(bindItems = CustomMenuItem.SAVE, requestParams = {RequestPathEnum.FORM, RequestPathEnum.CTX})
String saveUrl() default "";
@BindMenuItem(bindFormEvent = CustomFormEvent.RESET,requestParams = {RequestPathEnum.FORM, RequestPathEnum.CTX})
String reSetUrl() default "";
@BindMenuItem(bindItems = CustomMenuItem.DATAURL,
requestParams = {RequestPathEnum.FORM, RequestPathEnum.CTX},
responsePath = {ResponsePathEnum.FORM, ResponsePathEnum.CTX})
String dataUrl() default "";
@BindMenuItem(bindItems = CustomMenuItem.SEARCH,
requestParams = {RequestPathEnum.FORM, RequestPathEnum.CTX}
)
String searchUrl() default "";
String caption() default "";
boolean autoSave() default false;
;
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串reSetUrl
:重置URL,默认为空字符串dataUrl
:数据URL,默认为空字符串searchUrl
:搜索URL,默认为空字符串caption
:标题,默认为空字符串autoSave
:是否自动保存,默认为false
适用场景
用于配置表单视图组件,支持表达式、保存URL和自动保存等属性设置,特别适合创建表单视图。
42. GalleryViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullGalleryComponent.class, viewType = CustomViewType.LISTMODULE, moduleType = ModuleViewType.GALLERYCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomGalleryDataBean.class)
public @interface GalleryViewAnnotation {
String expression() default "";
String saveUrl() default "";
String searchUrl() default "";
String sortPath() default "";
String addPath() default "";
String editorPath() default "";
String delPath() default "";
String dataUrl() default "";
String clickFlagPath() default "";
boolean cache() default true;
boolean autoSave() default false;
String itemCaption() default "";
String itemId() default "";
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串searchUrl
:搜索URL,默认为空字符串sortPath
:排序路径,默认为空字符串addPath
:添加路径,默认为空字符串editorPath
:编辑器路径,默认为空字符串delPath
:删除路径,默认为空字符串dataUrl
:数据URL,默认为空字符串clickFlagPath
:点击标志路径,默认为空字符串cache
:是否缓存,默认为true
autoSave
:是否自动保存,默认为false
itemCaption
:项目标题,默认为空字符串itemId
:项目ID,默认为空字符串
适用场景
用于配置画廊视图组件,支持表达式、保存URL和缓存等属性设置,特别适合创建画廊视图。
43. GridViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullGridComponent.class, viewType = CustomViewType.LISTMODULE, moduleType = ModuleViewType.GRIDCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@BeanClass(clazz = CustomGridDataBean.class)
@Target({ElementType.METHOD})
public @interface GridViewAnnotation {
String expression() default "";
@BindMenuItem(bindItems = CustomMenuItem.DATAURL)
String dataUrl() default "";
@BindMenuItem(bindItems = CustomMenuItem.EDITOR)
String editorPath() default "";
@BindMenuItem(bindItems = CustomMenuItem.ADD)
String addPath() default "";
// @BindMenuItem(bindItems = CustomMenuItem.)
// String sortPath() default "";
@BindMenuItem(bindItems = CustomMenuItem.DELETE)
String delPath() default "";
@BindMenuItem(bindItems = CustomMenuItem.SAVEROW)
String saveRowPath() default "";
@BindMenuItem(bindItems = CustomMenuItem.SAVEALLROW)
String saveAllRowPath() default "";
}
字段解释
expression
:表达式,默认为空字符串dataUrl
:数据URL,默认为空字符串editorPath
:编辑器路径,默认为空字符串addPath
:添加路径,默认为空字符串delPath
:删除路径,默认为空字符串saveRowPath
:保存行路径,默认为空字符串saveAllRowPath
:保存所有行路径,默认为空字符串
适用场景
用于配置网格视图组件,支持表达式、数据URL和保存路径等属性设置,特别适合创建网格视图。
44. GroupViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullGroupComponent.class, viewType = CustomViewType.NAV, moduleType = ModuleViewType.GROUPCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomGroupDataBean.class)
public @interface GroupViewAnnotation {
String expression() default "";
String saveUrl() default "";
String reSetUrl() default "";
String dataUrl() default "";
String searchUrl() default "";
String caption() default "";
boolean autoSave() default false;
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串reSetUrl
:重置URL,默认为空字符串dataUrl
:数据URL,默认为空字符串searchUrl
:搜索URL,默认为空字符串caption
:标题,默认为空字符串autoSave
:是否自动保存,默认为false
适用场景
用于配置组视图组件,支持表达式、保存URL和自动保存等属性设置,特别适合创建组视图。
45. HiddenInputAnnotation
注解定义
java
@CustomClass(clazz = CustomFieldInputComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.HiddenInput)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = HiddenInputFieldBean.class)
public @interface HiddenInputAnnotation {
String value() default "";
}
字段解释
value
:值,默认为空字符串
适用场景
用于配置隐藏输入组件,支持值属性设置,特别适合创建隐藏输入字段。
46. HTMLButtonAnnotation
注解定义
java
@CustomClass(clazz = CustomHTMLButtonComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.HTMLButton)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = HTMLButtonFieldBean.class)
public @interface HTMLButtonAnnotation {
String id() default "";
String nodeName() default "";
int tabindex() default 1;
String width() default "auto";
String height() default "auto";
boolean shadow() default true;
String html() default "";
String caption() default "";
String iconFontCode() default "";
String fontColor() default "";
String fontSize() default "";
String fontWeight() default "";
String fontFamily() default "";
}
字段解释
id
:ID,默认为空字符串nodeName
:节点名称,默认为空字符串tabindex
: tabindex,默认为 1width
:宽度,默认为auto
height
:高度,默认为auto
shadow
:是否有阴影,默认为true
html
:HTML内容,默认为空字符串caption
:标题,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串fontColor
:字体颜色,默认为空字符串fontSize
:字体大小,默认为空字符串fontWeight
:字体粗细,默认为空字符串fontFamily
:字体家族,默认为空字符串
适用场景
用于配置HTML按钮组件,支持ID、尺寸和样式等属性设置,特别适合创建自定义HTML按钮。
47. IconAnnotation
注解定义
java
@CustomClass(clazz = CustomIconComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Icon)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = IconFieldBean.class)
public @interface IconAnnotation {
String id() default "";
boolean selectable() default true;
String html() default "";
String attributes() default "";
String renderer() default "";
boolean defaultFocus() default false;
int tabindex() default -1;
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
String iconFontSize() default "";
String iconColor() default "";
}
字段解释
id
:ID,默认为空字符串selectable
:是否可选择,默认为true
html
:HTML内容,默认为空字符串attributes
:属性,默认为空字符串renderer
:渲染器,默认为空字符串defaultFocus
:是否默认聚焦,默认为false
tabindex
: tabindex,默认为 -1image
:图像,默认为空字符串imagePos
:图像位置,默认为ImagePos.center
imageBgSize
:图像背景大小,默认为空字符串imageClass
:图像类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串iconFontSize
:图标字体大小,默认为空字符串iconColor
:图标颜色,默认为空字符串
适用场景
用于配置图标组件,支持选择功能、图像和样式等属性设置,特别适合创建图标元素。
48. ImageAnnotation
注解定义
java
@CustomClass(clazz = CustomImageComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Image)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ImageFieldBean.class)
public @interface ImageAnnotation {
String id() default "";
boolean selectable() default true;
int maxWidth() default 800;
int maxHeight() default 600;
String width() default "auto";
String height() default "auto";
CursorType cursor() default CursorType.pointer;
String src() default "";
String alt() default "";
}
字段解释
id
:ID,默认为空字符串selectable
:是否可选择,默认为true
maxWidth
:最大宽度,默认为 800maxHeight
:最大高度,默认为 600width
:宽度,默认为auto
height
:高度,默认为auto
cursor
:光标类型,默认为CursorType.pointer
src
:源,默认为空字符串alt
:替代文本,默认为空字符串
适用场景
用于配置图像组件,支持选择功能、尺寸和源等属性设置,特别适合嵌入图像内容。
49. InputAnnotation
注解定义
java
@CustomClass(clazz = CustomFieldInputComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Input)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = InputFieldBean.class)
public @interface InputAnnotation {
InputType texttype() default InputType.text;
int maxlength() default -1;
boolean multiLines() default false;
int autoexpand() default 0;
boolean hiddenBorder() default false;
}
字段解释
texttype
:文本类型,默认为InputType.text
maxlength
:最大长度,默认为 -1multiLines
:是否多行,默认为false
autoexpand
:自动扩展,默认为 0hiddenBorder
:是否隐藏边框,默认为false
适用场景
用于配置输入组件,支持文本类型、最大长度和多行等属性设置,特别适合创建输入字段。
50. JavaEditorAnnotation
注解定义
java
@CustomClass(clazz = CustomJavaEditorComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.JavaEditor)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = JavaEditorFieldBean.class)
public @interface JavaEditorAnnotation {
boolean dynLoad() default false;
boolean selectable() default true;
String value() default "";
String width() default "32.0em";
String height() default "25.0em";
String frameStyle() default "";
String cmdList() default "";
String cmdFilter() default "";
String codeType() default "js";
String labelGap() default "4.0em";
}
字段解释
dynLoad
:是否动态加载,默认为false
selectable
:是否可选择,默认为true
value
:值,默认为空字符串width
:宽度,默认为32.0em
height
:高度,默认为25.0em
frameStyle
:框架样式,默认为空字符串cmdList
:命令列表,默认为空字符串cmdFilter
:命令过滤器,默认为空字符串codeType
:代码类型,默认为js
labelGap
:标签间隙,默认为4.0em
适用场景
用于配置Java编辑器组件,支持动态加载、选择功能和尺寸等属性设置,特别适合代码编辑。
51. LabelAnnotation
注解定义
java
@CustomClass(clazz = CustomLabelComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Label)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = LabelFieldBean.class)
public @interface LabelAnnotation {
String id() default "";
boolean selectable() default true;
String clock() default "hh : mm : ss";
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
HAlignType hAlign() default HAlignType.right;
VAlignType vAlign() default VAlignType.middle;
String fontColor() default "";
String fontSize() default "";
String fontWeight() default "";
String fontFamily() default "";
String position() default "";
boolean isFormField() default true;
String excelCellFormula() default "";
}
字段解释
id
:ID,默认为空字符串selectable
:是否可选择,默认为true
clock
:时钟格式,默认为hh : mm : ss
image
:图像,默认为空字符串imagePos
:图像位置,默认为ImagePos.center
imageBgSize
:图像背景大小,默认为空字符串imageClass
:图像类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串hAlign
:水平对齐方式,默认为HAlignType.right
vAlign
:垂直对齐方式,默认为VAlignType.middle
fontColor
:字体颜色,默认为空字符串fontSize
:字体大小,默认为空字符串fontWeight
:字体粗细,默认为空字符串fontFamily
:字体家族,默认为空字符串position
:位置,默认为空字符串isFormField
:是否为表单字段,默认为true
excelCellFormula
:Excel单元格公式,默认为空字符串
适用场景
用于配置标签组件,支持选择功能、图像和样式等属性设置,特别适合创建标签元素。
52. LayoutFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldLayoutComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.LAYOUTCONFIG, componentType = ComponentType.Layout)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomLayoutFieldBean.class)
public @interface LayoutFieldAnnotation {
LayoutItemAnnotation[] layoutItems() default {};
@NotNull
LayoutType type() default LayoutType.horizontal;
boolean dragSortable() default false;
boolean flexSize() default false;
@NotNull
BorderType borderType() default BorderType.none;
@NotNull
boolean transparent() default true;
String[] listKey() default {};
String left() default "0em";
String top() default "0em";
@NotNull
Class<? extends Enum> enumClass() default LayoutItemEnums.class;
int conLayoutColumns() default -1;
}
字段解释
layoutItems
:布局项,默认为空数组type
:布局类型,默认为LayoutType.horizontal
dragSortable
:是否可拖动排序,默认为false
flexSize
:是否灵活大小,默认为false
borderType
:边框类型,默认为BorderType.none
transparent
:是否透明,默认为true
listKey
:列表键,默认为空数组left
:左边距,默认为0em
top
:上边距,默认为0em
enumClass
:枚举类,默认为LayoutItemEnums.class
conLayoutColumns
:内容布局列数,默认为 -1
适用场景
用于配置布局字段组件,支持布局类型、边框和透明度等属性设置,特别适合创建布局元素。
53. ListAnnotation
注解定义
java
p
@CustomClass(clazz = CustomListComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.List)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = ListFieldBean.class)
public @interface ListAnnotation {
String id() default "";
@NotNull
SelModeType selMode() default SelModeType.single;
@NotNull
BorderType borderType() default BorderType.flat;
boolean noCtrlKey() default true;
@NotNull
String width() default "auto";
@NotNull
String height() default "15em";
@NotNull
Dock dock() default Dock.none;
int maxHeight() default 420;
ItemRow itemRow() default ItemRow.none;
String optBtn() default "";
@NotNull
String tagCmds() default "[]";
TagCmdsAlign tagCmdsAlign() default TagCmdsAlign.right;
String labelCaption() default "";
}
字段解释
id
:ID,默认为空字符串selMode
:选择模式,默认为SelModeType.single
borderType
:边框类型,默认为BorderType.flat
noCtrlKey
:是否无需Ctrl键,默认为true
width
:宽度,默认为auto
height
:高度,默认为15em
dock
:停靠方式,默认为Dock.none
maxHeight
:最大高度,默认为 420itemRow
:项目行,默认为ItemRow.none
optBtn
:操作按钮,默认为空字符串tagCmds
:标签命令,默认为[]
tagCmdsAlign
:标签命令对齐方式,默认为TagCmdsAlign.right
labelCaption
:标签标题,默认为空字符串
适用场景
用于配置列表组件,支持选择模式、边框和尺寸等属性设置,特别适合创建列表元素。
54. MDialogAnnotation
注解定义
java
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@BeanClass(clazz = DialogBean.class)
public @interface MDialogAnnotation {
String caption() default "";
String tips() default "";
int left() default 220;
int top() default 0;
@NotNull
String showEffects() default "Flip H";
@NotNull
String hideEffects() default "Flip H";
String iframeAutoLoad() default "";
String ajaxAutoLoad() default "";
String name() default "";
String imageClass() default "";
String initPos() default "";
@NotNull
Dock dock() default Dock.height;
@NotNull
DiaStatusType status() default DiaStatusType.right;
boolean cmd() default true;
boolean movable() default true;
boolean resizer() default true;
boolean modal() default false;
boolean locked() default false;
String fromRegion() default "";
String minWidth() default "-1";
String minHeight() default "-1";
@NotNull
String width() default "400";
@NotNull
String height() default "600";
}
字段解释
caption
:标题,默认为空字符串tips
:提示,默认为空字符串left
:左边距,默认为 220top
:上边距,默认为 0showEffects
:显示效果,默认为Flip H
hideEffects
:隐藏效果,默认为Flip H
iframeAutoLoad
:iframe自动加载,默认为空字符串ajaxAutoLoad
:ajax自动加载,默认为空字符串name
:名称,默认为空字符串imageClass
:图像类,默认为空字符串initPos
:初始位置,默认为空字符串dock
:停靠方式,默认为Dock.height
status
:状态,默认为DiaStatusType.right
cmd
:是否命令,默认为true
movable
:是否可移动,默认为true
resizer
:是否可调整大小,默认为true
modal
:是否模态,默认为false
locked
:是否锁定,默认为false
fromRegion
:来源区域,默认为空字符串minWidth
:最小宽度,默认为-1
minHeight
:最小高度,默认为-1
width
:宽度,默认为400
height
:高度,默认为600
适用场景
用于配置对话框组件,支持标题、位置和效果等属性设置,特别适合创建对话框元素。
55. MFormViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullMFormComponent.class, viewType = CustomViewType.MODULE, moduleType = ModuleViewType.MFORMCONFIG)
@BeanClass(clazz = CustomFormDataBean.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface MFormViewAnnotation {
String expression() default "";
String saveUrl() default "";
String reSetUrl() default "";
String dataUrl() default "";
String searchUrl() default "";
String caption() default "";
boolean autoSave() default false;
;
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串reSetUrl
:重置URL,默认为空字符串dataUrl
:数据URL,默认为空字符串searchUrl
:搜索URL,默认为空字符串caption
:标题,默认为空字符串autoSave
:是否自动保存,默认为false
适用场景
用于配置表单视图组件,支持表达式、保存URL和自动保存等属性设置,特别适合创建表单视图。
56. MGridViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullMGridComponent.class, viewType = CustomViewType.LISTMODULE, moduleType = ModuleViewType.MGRIDCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@BeanClass(clazz = CustomGridDataBean.class)
@Target({ElementType.METHOD})
public @interface MGridViewAnnotation {
String expression() default "";
String dataUrl() default "";
String editorPath() default "";
String addPath() default "";
String sortPath() default "";
String delPath() default "";
String saveRowPath() default "";
String saveAllRowPath() default "";
}
字段解释
expression
:表达式,默认为空字符串dataUrl
:数据URL,默认为空字符串editorPath
:编辑路径,默认为空字符串addPath
:添加路径,默认为空字符串sortPath
:排序路径,默认为空字符串delPath
:删除路径,默认为空字符串saveRowPath
:保存行路径,默认为空字符串saveAllRowPath
:保存所有行路径,默认为空字符串
适用场景
用于配置网格视图组件,支持表达式、数据URL和编辑路径等属性设置,特别适合创建网格视图。
57. MTreeViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullMTreeComponent.class, viewType = CustomViewType.LISTMODULE, moduleType = ModuleViewType.MTREECONFIG)
@Retention(RetentionPolicy.RUNTIME)
@BeanClass(clazz = CustomTreeDataBean.class)
@Target({ElementType.METHOD})
public @interface MTreeViewAnnotation {
@NotNull
boolean autoSave() default false;
String expression() default "";
String saveUrl() default "";
String editorPath() default "";
String loadChildUrl() default "";
String dataUrl() default "";
String rootId() default "00000000-0000-0000-0000-000000000000";
@NotNull
ResponsePathTypeEnum itemType() default ResponsePathTypeEnum.TREEVIEW;
}
字段解释
autoSave
:是否自动保存,默认为false
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串editorPath
:编辑路径,默认为空字符串loadChildUrl
:加载子节点URL,默认为空字符串dataUrl
:数据URL,默认为空字符串rootId
:根ID,默认为00000000-0000-0000-0000-000000000000
itemType
:项目类型,默认为ResponsePathTypeEnum.TREEVIEW
适用场景
用于配置树视图组件,支持自动保存、表达式和数据URL等属性设置,特别适合创建树视图。
58. MenuBarFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldMenubarComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.NAVMENUBARCONFIG, componentType = ComponentType.MenuBar)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomMenuBarFieldBean.class)
public @interface MenuBarFieldAnnotation {
Class bindClass() default Void.class;
String bgimg() default "";
String imageClass() default "";
String backgroundColor() default "transparent";
@NotNull
BorderType borderType() default BorderType.none;
}
字段解释
bindClass
:绑定类,默认为Void.class
bgimg
:背景图片,默认为空字符串imageClass
:图片类,默认为空字符串backgroundColor
:背景颜色,默认为transparent
borderType
:边框类型,默认为BorderType.none
适用场景
用于配置菜单栏字段组件,支持绑定类、背景图片和边框类型等属性设置,特别适合创建菜单栏元素。
59. ModuleEmbedFieldAnnotation
注解定义
java
@CustomClass(clazz = CustomFieldModuleComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.ModluePlaceHolder)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomModuleEmbedFieldBean.class)
public @interface ModuleEmbedFieldAnnotation {
String src() default "";
boolean dynLoad() default false;
EmbedType embed() default EmbedType.module;
Class bindClass() default Void.class;
AppendType append() default AppendType.ref;
}
字段解释
src
:源路径,默认为空字符串dynLoad
:是否动态加载,默认为false
embed
:嵌入类型,默认为EmbedType.module
bindClass
:绑定类,默认为Void.class
append
:追加类型,默认为AppendType.ref
适用场景
用于配置模块嵌入字段组件,支持源路径、动态加载和嵌入类型等属性设置,特别适合创建模块嵌入元素。
60. ModuleRefFieldAnnotation
注解定义
java
@CustomClass(clazz = CustomModuleInnerComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Module)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomModuleRefFieldBean.class)
public @interface ModuleRefFieldAnnotation {
String src() default "";
boolean dynLoad() default false;
EmbedType embed() default EmbedType.module;
Dock dock() default Dock.none;
Class bindClass() default Void.class;
AppendType append() default AppendType.ref;
}
字段解释
src
:源路径,默认为空字符串dynLoad
:是否动态加载,默认为false
embed
:嵌入类型,默认为EmbedType.module
dock
:停靠方式,默认为Dock.none
bindClass
:绑定类,默认为Void.class
append
:追加类型,默认为AppendType.ref
适用场景
用于配置模块引用字段组件,支持源路径、动态加载和停靠方式等属性设置,特别适合创建模块引用元素。
61. NavTreeAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE})
@BeanClass(clazz = NavTreeComboViewBean.class)
public @interface NavTreeAnnotation {
String caption() default "";
Class[] customService() default {};
CustomFormMenu[] customMenu() default {};
CustomFormMenu[] bottombarMenu() default {};
ComponentType[] bindTypes() default {ComponentType.TreeBar, ComponentType.TreeView};
}
字段解释
caption
:标题,默认为空字符串customService
:自定义服务,默认为空数组customMenu
:自定义菜单,默认为空数组bottombarMenu
:底部栏菜单,默认为空数组bindTypes
:绑定类型,默认为{ComponentType.TreeBar, ComponentType.TreeView}
适用场景
用于配置导航树组件,支持标题、自定义服务和菜单等属性设置,特别适合创建导航树元素。
62. OpinionFieldAnnotation
注解定义
java
@CustomClass(clazz = CustomOpinionFieldComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.OPINIONCONFIG, componentType = ComponentType.Opinion)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@BeanClass(clazz = CustomOpinionFieldBean.class)
public @interface OpinionFieldAnnotation {
String bgimg() default "";
@NotNull
Class<? extends Enum> enumClass() default OpinionItemEnums.class;
String backgroundColor() default "transparent";
Class[] customService() default {};
@NotNull
BorderType borderType() default BorderType.none;
}
字段解释
bgimg
:背景图片,默认为空字符串enumClass
:枚举类,默认为OpinionItemEnums.class
backgroundColor
:背景颜色,默认为transparent
customService
:自定义服务,默认为空数组borderType
:边框类型,默认为BorderType.none
适用场景
用于配置意见字段组件,支持背景图片、枚举类和边框类型等属性设置,特别适合创建意见元素。
63. OpinionItemAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.METHOD})
@BeanClass(clazz = OpinionItemBean.class)
public @interface OpinionItemAnnotation {
String comment() default "";
String renderer() default "";
String imagePos() default "";
String imageBgSize() default "";
String imageRepeat() default "";
String imageClass() default "";
String iconFontSize() default "";
String iconStyle() default "";
String flagText() default "";
String flagClass() default "";
String flagStyle() default "";
String image() default "";
String valueSeparator() default "";
String euClassName() default "";
BorderType borderType() default BorderType.none;
boolean activeLast() default true;
CustomOpinionEvent[] event() default {};
OpinionMenu[] contextMenu() default {};
SelModeType selMode() default SelModeType.single;
IconColorEnum iconColor() default IconColorEnum.NONE;
ItemColorEnum itemColor() default ItemColorEnum.NONE;
FontColorEnum fontColor() default FontColorEnum.NONE;
ComponentType[] bindTypes() default {ComponentType.Opinion, ComponentType.ButtonLayout, ComponentType.TitleBlock};
}
字段解释
comment
:注释,默认为空字符串renderer
:渲染器,默认为空字符串imagePos
:图片位置,默认为空字符串imageBgSize
:图片背景大小,默认为空字符串imageRepeat
:图片重复方式,默认为空字符串imageClass
:图片类,默认为空字符串iconFontSize
:图标字体大小,默认为空字符串iconStyle
:图标样式,默认为空字符串flagText
:标志文本,默认为空字符串flagClass
:标志类,默认为空字符串flagStyle
:标志样式,默认为空字符串image
:图片,默认为空字符串valueSeparator
:值分隔符,默认为空字符串euClassName
:EU类名,默认为空字符串borderType
:边框类型,默认为BorderType.none
activeLast
:是否激活最后一个,默认为true
event
:事件,默认为空数组contextMenu
:上下文菜单,默认为空数组selMode
:选择模式,默认为SelModeType.single
iconColor
:图标颜色,默认为IconColorEnum.NONE
itemColor
:项目颜色,默认为ItemColorEnum.NONE
fontColor
:字体颜色,默认为FontColorEnum.NONE
bindTypes
:绑定类型,默认为{ComponentType.Opinion, ComponentType.ButtonLayout, ComponentType.TitleBlock}
适用场景
用于配置意见项目组件,支持渲染器、图片和事件等属性设置,特别适合创建意见项目元素。
64. OpinionViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullOpinionComponent.class, viewType = CustomViewType.LISTMODULE, moduleType = ModuleViewType.OPINIONCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomOpinionDataBean.class)
public @interface OpinionViewAnnotation {
String expression() default "";
String saveUrl() default "";
String searchUrl() default "";
String sortPath() default "";
String addPath() default "";
String editorPath() default "";
String delPath() default "";
String dataUrl() default "";
String clickFlagPath() default "";
boolean cache() default true;
boolean autoSave() default false;
String itemCaption() default "";
String itemId() default "";
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串searchUrl
:搜索URL,默认为空字符串sortPath
:排序路径,默认为空字符串addPath
:添加路径,默认为空字符串editorPath
:编辑路径,默认为空字符串delPath
:删除路径,默认为空字符串dataUrl
:数据URL,默认为空字符串clickFlagPath
:点击标志路径,默认为空字符串cache
:是否缓存,默认为true
autoSave
:是否自动保存,默认为false
itemCaption
:项目标题,默认为空字符串itemId
:项目ID,默认为空字符串
适用场景
用于配置意见视图组件,支持表达式、保存URL和缓存等属性设置,特别适合创建意见视图。
65. PanelAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.FIELD,ElementType.TYPE})
@BeanClass(clazz = CustomPanelBean.class)
public @interface PanelAnnotation {
Dock dock() default Dock.none;
String caption() default "";
String html() default "";
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
boolean optBtn() default true;
boolean refreshBtn() default true;
boolean infoBtn() default false;
boolean closeBtn() default true;
BorderType borderType() default BorderType.inset;
boolean noFrame() default false;
HAlignType hAlign() default HAlignType.left;
ToggleIconType toggleIcon() default ToggleIconType.taggle;
boolean toggle() default true;
}
字段解释
dock
:停靠方式,默认为Dock.none
caption
:标题,默认为空字符串html
:HTML内容,默认为空字符串image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串imageClass
:图片类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串optBtn
:是否显示操作按钮,默认为true
refreshBtn
:是否显示刷新按钮,默认为true
infoBtn
:是否显示信息按钮,默认为false
closeBtn
:是否显示关闭按钮,默认为true
borderType
:边框类型,默认为BorderType.inset
noFrame
:是否无边框,默认为false
hAlign
:水平对齐方式,默认为HAlignType.left
toggleIcon
:切换图标类型,默认为ToggleIconType.taggle
toggle
:是否可切换,默认为true
适用场景
用于配置面板组件,支持停靠方式、标题和按钮等属性设置,特别适合创建面板元素。
66. PanelFieldAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = CustomFieldPanelComponent.class, viewType = CustomViewType.COMPONENT, moduleType = ModuleViewType.PANELCONFIG, componentType = ComponentType.Panel)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@BeanClass(clazz = CustomPanelFieldBean.class)
public @interface PanelFieldAnnotation {
Dock dock() default Dock.fill;
String caption() default "";
String html() default "";
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
BorderType borderType() default BorderType.inset;
boolean noFrame() default false;
HAlignType hAlign() default HAlignType.left;
ToggleIconType toggleIcon() default ToggleIconType.taggle;
boolean toggle() default true;
}
字段解释
dock
:停靠方式,默认为Dock.fill
caption
:标题,默认为空字符串html
:HTML内容,默认为空字符串image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串imageClass
:图片类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串borderType
:边框类型,默认为BorderType.inset
noFrame
:是否无边框,默认为false
hAlign
:水平对齐方式,默认为HAlignType.left
toggleIcon
:切换图标类型,默认为ToggleIconType.taggle
toggle
:是否可切换,默认为true
适用场景
用于配置面板字段组件,支持停靠方式、标题和边框等属性设置,特别适合创建面板字段元素。
67. PanelFormAnnotation
注解定义
java
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@BeanClass(clazz = CustomPanelFormViewBean.class)
public @interface PanelFormAnnotation {
Dock dock() default Dock.none;
String caption() default "";
String html() default "";
String image() default "";
ImagePos imagePos() default ImagePos.center;
String imageBgSize() default "";
String imageClass() default "";
String iconFontCode() default "";
BorderType borderType() default BorderType.inset;
boolean noFrame() default false;
HAlignType hAlign() default HAlignType.left;
ToggleIconType toggleIcon() default ToggleIconType.taggle;
boolean toggle() default true;
CustomFormMenu[] customMenu() default {};
CustomFormEvent[] event() default {};
CustomFormMenu[] bottombarMenu() default {};
Class[] customService() default {};
}
字段解释
dock
:停靠方式,默认为Dock.none
caption
:标题,默认为空字符串html
:HTML内容,默认为空字符串image
:图片,默认为空字符串imagePos
:图片位置,默认为ImagePos.center
imageBgSize
:图片背景大小,默认为空字符串imageClass
:图片类,默认为空字符串iconFontCode
:图标字体代码,默认为空字符串borderType
:边框类型,默认为BorderType.inset
noFrame
:是否无边框,默认为false
hAlign
:水平对齐方式,默认为HAlignType.left
toggleIcon
:切换图标类型,默认为ToggleIconType.taggle
toggle
:是否可切换,默认为true
customMenu
:自定义菜单,默认为空数组event
:事件,默认为空数组bottombarMenu
:底部栏菜单,默认为空数组customService
:自定义服务,默认为空数组
适用场景
用于配置面板表单组件,支持停靠方式、标题和菜单等属性设置,特别适合创建面板表单元素。
68. PanelViewAnnotation
注解定义
java
@Inherited
@CustomClass(clazz = FullPanelComponent.class, viewType = CustomViewType.NAV, moduleType = ModuleViewType.PANELCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = CustomPanelDataBean.class)
public @interface PanelViewAnnotation {
String expression() default "";
String saveUrl() default "";
String reSetUrl() default "";
String dataUrl() default "";
String searchUrl() default "";
String caption() default "";
boolean autoSave() default false;
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串reSetUrl
:重置URL,默认为空字符串dataUrl
:数据URL,默认为空字符串searchUrl
:搜索URL,默认为空字符串caption
:标题,默认为空字符串autoSave
:是否自动保存,默认为false
适用场景
用于配置面板视图组件,支持表达式、保存URL和自动保存等属性设置,特别适合创建面板视图元素。
69. PopMenuViewAnnotation
注解定义
java
p
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface PopMenuViewAnnotation {
String expression() default "";
String saveUrl() default "";
String dataPath() default "";
String fieldCaption() default "";
String fieldId() default "";
@NotNull
boolean cache() default true;
boolean dynLoad() default false;
@NotNull
ResponsePathTypeEnum itemType() default ResponsePathTypeEnum.POPMENU;
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串dataPath
:数据路径,默认为空字符串fieldCaption
:字段标题,默认为空字符串fieldId
:字段ID,默认为空字符串cache
:是否缓存,默认为true
(必填)dynLoad
:是否动态加载,默认为false
itemType
:项目类型,默认为ResponsePathTypeEnum.POPMENU
(必填)
适用场景
用于配置弹出菜单视图组件,支持表达式、缓存和动态加载等属性设置,特别适合创建弹出菜单视图元素。
70. RadioBoxAnnotation
注解定义
java
@CustomClass(clazz = CustomRadioBoxComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.RadioBox)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = RadioBoxFieldBean.class)
public @interface RadioBoxAnnotation {
String id() default "";
Dock dock() default Dock.fill;
boolean checkBox() default false;
BorderType borderType() default BorderType.none;
String tagCmds() default "";
}
字段解释
id
:ID,默认为空字符串dock
:停靠方式,默认为Dock.fill
checkBox
:是否为复选框,默认为false
borderType
:边框类型,默认为BorderType.none
tagCmds
:标签命令,默认为空字符串
适用场景
用于配置单选框组件,支持停靠方式、边框类型和标签命令等属性设置,特别适合创建单选框元素。
71. RichEditorAnnotation
注解定义
java
@CustomClass(clazz = CustomRichEditorComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.RichEditor)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = RichEditorFieldBean.class)
public @interface RichEditorAnnotation {
String id() default "";
boolean dynLoad() default false;
boolean selectable() default true;
String value() default "";
@NotNull
Dock dock() default Dock.fill;
String width() default "32.0em";
String height() default "25.0em";
String frameStyle() default "";
String cmdList() default "font1;font2;align;list;font4;font3;insert;clear;html";
String cmdFilter() default "";
boolean enableBar() default true;
String textType() default "html";
int steps() default 0;
String labelCaption() default "";
}
字段解释
id
:ID,默认为空字符串dynLoad
:是否动态加载,默认为false
selectable
:是否可选择,默认为true
value
:值,默认为空字符串dock
:停靠方式,默认为Dock.fill
(必填)width
:宽度,默认为32.0em
height
:高度,默认为25.0em
frameStyle
:框架样式,默认为空字符串cmdList
:命令列表,默认为font1;font2;align;list;font4;font3;insert;clear;html
cmdFilter
:命令过滤器,默认为空字符串enableBar
:是否启用工具栏,默认为true
textType
:文本类型,默认为html
steps
:步骤数,默认为0
labelCaption
:标签标题,默认为空字符串
适用场景
用于配置富编辑器组件,支持动态加载、停靠方式和命令列表等属性设置,特别适合创建富文本编辑元素。
72. SliderAnnotation
注解定义
java
@CustomClass(clazz = CustomSliderComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Slider)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = SliderFieldBean.class)
public @interface SliderAnnotation {
String id() default "";
String width() default "15.0em";
String height() default "4.0em";
int precision() default 1;
String numberTpl() default "* - 1% ~ 2%";
@NotNull
int steps() default 1;
String value() default "1:20";
LayoutType layoutType() default LayoutType.horizontal;
boolean isRange() default true;
boolean showIncreaseHandle() default true;
boolean showDecreaseHandle() default true;
String labelSize() default "4";
LabelPos labelPos() default LabelPos.left;
String labelGap() default "4.0em";
String labelCaption() default "";
HAlignType labelHAlign() default HAlignType.right;
VAlignType labelVAlign() default VAlignType.top;
}
字段解释
id
:ID,默认为空字符串width
:宽度,默认为15.0em
height
:高度,默认为4.0em
precision
:精度,默认为1
numberTpl
:数字模板,默认为* - 1% ~ 2%
steps
:步数,默认为1
(必填)value
:值,默认为1:20
layoutType
:布局类型,默认为LayoutType.horizontal
isRange
:是否为范围,默认为true
showIncreaseHandle
:是否显示增加手柄,默认为true
showDecreaseHandle
:是否显示减少手柄,默认为true
labelSize
:标签大小,默认为4
labelPos
:标签位置,默认为LabelPos.left
labelGap
:标签间距,默认为4.0em
labelCaption
:标签标题,默认为空字符串labelHAlign
:标签水平对齐方式,默认为HAlignType.right
labelVAlign
:标签垂直对齐方式,默认为VAlignType.top
适用场景
用于配置滑块组件,支持精度、布局类型和标签位置等属性设置,特别适合创建滑块元素。
73. SpanAnnotation
注解定义
java
@CustomClass(clazz = CustomSpanComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Span)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = SpanFieldBean.class)
public @interface SpanAnnotation {
String width() default "2.0em";
String height() default "1.0em";
boolean selectable() default true;
String html() default "";
OverflowType overflow() default OverflowType.auto;
int tabindex() default -1;
}
字段解释
width
:宽度,默认为2.0em
height
:高度,默认为1.0em
selectable
:是否可选择,默认为true
html
:HTML内容,默认为空字符串overflow
:溢出类型,默认为OverflowType.auto
tabindex
:标签索引,默认为-1
适用场景
用于配置跨度组件,支持宽度、高度和溢出类型等属性设置,特别适合创建跨度元素。
74. StacksViewAnnotation
注解定义
java
import java.lang.annotation.*;
@Inherited
@CustomClass(clazz = FullStacksComponent.class, viewType = CustomViewType.NAV, moduleType = ModuleViewType.NAVSTACKSCONFIG)
@Retention(RetentionPolicy.RUNTIME)
@BeanClass(clazz = StacksDataBean.class)
@Target({ElementType.METHOD})
public @interface StacksViewAnnotation {
String expression() default "";
String saveUrl() default "";
String editorPath() default "";
@NotNull
ResponsePathTypeEnum itemType() default ResponsePathTypeEnum.TABS;
}
字段解释
expression
:表达式,默认为空字符串saveUrl
:保存URL,默认为空字符串editorPath
:编辑器路径,默认为空字符串itemType
:项目类型,默认为ResponsePathTypeEnum.TABS
(必填)
适用场景
用于配置导航栈组件,支持表达式、保存URL和编辑器路径等属性设置,特别适合创建导航栈元素。
75. StatusButtonsAnnotation
注解定义
java
@CustomClass(clazz = CustomStatusButtonsComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.StatusButtons)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = StatusButtonsFieldBean.class)
public @interface StatusButtonsAnnotation {
String barHeight() default "2.5em";
@NotNull
String position() default "static";
@NotNull
String width() default "auto";
@NotNull
AlignType align() default AlignType.center;
String itemMargin() default "";
String itemPadding() default "";
String itemWidth() default "";
@NotNull
AlignType itemAlign() default AlignType.center;
Dock dock() default Dock.fill;
TagCmdsAlign tagCmdsAlign() default TagCmdsAlign.right;
@NotNull
BorderType borderType() default BorderType.flat;
@NotNull
StatusItemType itemType() default StatusItemType.button;
boolean autoIconColor() default true;
boolean autoItemColor() default false;
boolean autoFontColor() default false;
String[] iconColors() default {};
String[] itemColors() default {};
String[] fontColors() default {};
boolean connected() default false;
}
字段解释
barHeight
:栏高度,默认为2.5em
position
:位置,默认为static
(必填)width
:宽度,默认为auto
(必填)align
:对齐方式,默认为AlignType.center
(必填)itemMargin
:项目边距,默认为空字符串itemPadding
:项目填充,默认为空字符串itemWidth
:项目宽度,默认为空字符串itemAlign
:项目对齐方式,默认为AlignType.center
(必填)dock
:停靠方式,默认为Dock.fill
tagCmdsAlign
:标签命令对齐方式,默认为TagCmdsAlign.right
borderType
:边框类型,默认为BorderType.flat
(必填)itemType
:项目类型,默认为StatusItemType.button
(必填)autoIconColor
:自动图标颜色,默认为true
autoItemColor
:自动项目颜色,默认为false
autoFontColor
:自动字体颜色,默认为false
iconColors
:图标颜色数组,默认为空数组itemColors
:项目颜色数组,默认为空数组fontColors
:字体颜色数组,默认为空数组connected
:是否连接,默认为false
适用场景
用于配置状态按钮组件,支持栏高度、对齐方式和边框类型等属性设置,特别适合创建状态按钮元素。
76. TensorAnnotation
注解定义
java
@CustomClass(clazz = CustomTensorComponent.class, viewType = CustomViewType.COMPONENT, componentType = ComponentType.Tensor)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@BeanClass(clazz = TensorFieldBean.class)
public @interface TensorAnnotation {
String id() default "";
@NotNull
Dock dock() default Dock.fill;
boolean selectable() default true;
@NotNull
String width() default "30.0em";
@NotNull
String height() default "30.0em";
@NotNull
String src() default "/plugins/dist/index.html";
Class bindClass() default Void.class;
boolean prepareFormData() default true;
String uploadUrl() default "";
}
字段解释
id
:ID,默认为空字符串dock
:停靠方式,默认为Dock.fill
(必填)selectable
:是否可选择,默认为true
width
:宽度,默认为30.0em
(必填)height
:高度,默认为30.0em
(必填)src
:源文件路径,默认为/plugins/dist/index.html
(必填)bindClass
:绑定类,默认为Void.class
prepareFormData
:是否准备表单数据,默认为true
uploadUrl
:上传URL,默认为空字符串
适用场景
用于配置张量组件,支持停靠方式、宽度和高度等属性设置,特别适合创建张量元素。