Sfoglia il codice sorgente

界面设计器+枚举

master
郑根木 2 anni fa
parent
commit
f631d7ccce
1 ha cambiato i file con 23 aggiunte e 0 eliminazioni
  1. +23
    -0
      smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/common/SwEnum.java

+ 23
- 0
smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/common/SwEnum.java Vedi File

@@ -146,6 +146,29 @@ public interface SwEnum {
}

/**
* 界面定义类型:::控件/页面
*/
class FormType extends StrEnum {
public static FormType instance = new FormType();

public static StrEnumBean PAGE = instance.addEnum("page", "页面");
public static StrEnumBean WIDGET = instance.addEnum("widget", "控件");
}

/**
* 控件类型:::grid,tree,combotree,combogrid、custom
*/
class WidgetType extends StrEnum {
public static WidgetType instance = new WidgetType();

public static StrEnumBean GRID = instance.addEnum("grid", "表格");
public static StrEnumBean TREE = instance.addEnum("tree", "下拉树");
public static StrEnumBean COMBOGRID = instance.addEnum("combogrid", "下拉表格");
public static StrEnumBean COMBOTREE = instance.addEnum("combotree", "下拉树");
public static StrEnumBean CUSTOM = instance.addEnum("custom", "自定义");
}

/**
* 数据集类型:::list-列表;form-表单;editList-编辑列表;tree;enum
*/
class DatasetType extends StrEnum {


Caricamento…
Annulla
Salva