Commit 6887dadd by s_guodong

处理listbox

parent d8b7458b
package com.brilliance.mda.runtime.mda.snapshot.bo;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
public enum AttributeEnum {
LABELID("i18n"),
FIELDURL("fieldUrl"),
CODETABLE("codeTable");
private String value;
AttributeEnum(String value) {
this.value = value;
}
}
......@@ -36,4 +36,8 @@ public class PackDivBo {
@XmlElement(name = "checkbox")
private List<PackCheckboxBo> checkboxBoList;
@XmlElement(name = "listbox")
private List<PackListboxBo> listboxBoList;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.*;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listbox")
@Data
public class PackListboxBo {
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "zclass")
private String zclass = "z-listbox";
@XmlElement(name = "listhead")
private PackListheadBo packListheadBo;
@XmlElement(name = "listitem")
private PackListitemBo packListitemBo;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listcell")
@Data
public class PackListcellBo {
@XmlAttribute(name = "label")
private String label;
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "zclass")
private String zclass = "z-listcell";
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listhead")
@Data
public class PackListheadBo {
@XmlAttribute(name = "sizable")
private String sizable = "true";
@XmlAttribute(name = "zclass")
private String zclass = "z-listhead";
@XmlElement(name = "listheader")
private List<PackListheaderBo> listheader;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listheader")
@Data
public class PackListheaderBo {
@XmlAttribute(name = "label")
private String label;
@XmlAttribute(name = "width")
private String width;
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "zclass")
private String zclass = "z-listheader";
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listiteam")
@Data
public class PackListitemBo {
@XmlAttribute(name = "height")
private String height;
@XmlAttribute(name = "zclass")
private String zclass = "z-listitem";
@XmlElement(name = "listcell")
private List<PackListcellBo> listcell;
}
......@@ -25,4 +25,16 @@ public class CustomAttributes {
@XmlAttribute(name = "codeTable")
private String codeTable;
@XmlAttribute(name = "columnName")
private String columnName;
@XmlAttribute(name = "columnStyle")
private String columnStyle;
@XmlAttribute(name = "formatter")
private String formatter;
@XmlAttribute(name = "rowHeight")
private String rowHeight;
}
......@@ -36,4 +36,7 @@ public class DivBo {
@XmlElement(name = "checkbox")
private List<CheckboxBo> checkboxList;
@XmlElement(name = "listbox")
private List<ListboxBo> listboxBoList;
}
......@@ -36,6 +36,9 @@ public class DocumentBo {
@XmlElement(name = "checkbox")
private List<CheckboxBo> checkboxList;
@XmlElement(name = "listbox")
private List<ListboxBo> listboxBoList;
@XmlElement(name = "borderlayout")
private BorderlayoutBo borderlayoutBo;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.unpack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/16
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listbox")
@Data
public class ListboxBo {
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "mold")
private String mold = "paging";
@XmlAttribute(name = "pageSize")
private String pageSize;
@XmlElement(name = "custom-attributes")
private List<CustomAttributes> customAttributes;
@XmlElement(name = "listhead")
private ListheadBo listhead;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.unpack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/16
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listhead")
@Data
public class ListheadBo {
@XmlElement(name = "listheader")
private List<ListheaderBo> listheaderList;
@XmlAttribute(name = "sizable")
private String sizable = "true";
}
package com.brilliance.mda.runtime.mda.snapshot.bo.unpack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/16
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listheader")
@Data
public class ListheaderBo {
@XmlElement(name = "custom-attributes")
private List<CustomAttributes> customAttributes;
@XmlAttribute(name = "width")
private String width;
@XmlAttribute(name = "style")
private String style;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment