ButtonRightDemo.java
package com.example.entity.demo_4.base_1;
@Entity
@DynamicInsert
@DodoEntity(name = "自定义按钮", actions = { DodoAction.ALL })
@DodoMenus(
levelOne = @DodoMenu(name = "Demo系统", sortSeq = 7),
levelTwo = @DodoMenu(name = "基础演示", sortSeq = 1),
levelThree = @DodoMenu(name = "自定义按钮演示", sortSeq = 7)
)
@DodoButtonRight(name = "底部AJAX", path = "/bottom/ajax", model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.BOTTOM, event = DodoButtonRightEvent.AJAX)
@DodoButtonRight(name = "顶部AJAX", path = "/top/ajax", model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.TOP, event = DodoButtonRightEvent.AJAX)
@DodoButtonRight(name = "底部URL", path = "https://www.0yi0.com", model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.BOTTOM, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
@DodoButtonRight(name = "顶部URL", path = "https://www.0yi0.com", model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.TOP, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
@DodoButtonRight(name = "行AJAX", path = "/row/ajax", model = DodoButtonRightModel.ROW, event = DodoButtonRightEvent.AJAX)
@DodoButtonRight(name = "后台URL", path = "${rootPath}/special/view.jhtml", model = DodoButtonRightModel.ROW, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
@DodoButtonRight(name = "前台URL", path = "${webHomeUrl}/test.html", model = DodoButtonRightModel.ROW, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
@DodoButtonRight(name = "站外URL", path = "https://www.0yi0.com", model = DodoButtonRightModel.ROW, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
public class ButtonRightDemo extends BaseEntity {
private static final long serialVersionUID = 5475359959248427119L;
@DodoField(sortSeq = 4, name = "字段1")
private String field1;
@DodoField(sortSeq = 5, name = "字段2")
private String field2;
@Column(length = 8)
public String getField1() {
return field1;
}
public void setField1(String field1) {
this.field1 = field1;
}
@Column(length = 8)
public String getField2() {
return field2;
}
public void setField2(String field2) {
this.field2 = field2;
}
}
当前内容版权归 DodoFramework 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 DodoFramework .