@ExportedBean public class CheckboxList extends Object implements org.kohsuke.stapler.HttpResponse
| Modifier and Type | Class and Description |
|---|---|
static class |
CheckboxList.CheckboxModel
复选框数据模型定义 Checkbox data model definition
|
| Modifier and Type | Field and Description |
|---|---|
ArrayList<CheckboxList.CheckboxModel> |
list |
String |
message |
| Constructor and Description |
|---|
CheckboxList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
String value,
boolean selected)
添加一个复选框 Add a checkbox
|
void |
generateResponse(org.kohsuke.stapler.StaplerRequest staplerRequest,
org.kohsuke.stapler.StaplerResponse staplerResponse,
Object o) |
void |
setMessage(String message)
客户端显示的信息 Information displayed by the client
|
@Exported public ArrayList<CheckboxList.CheckboxModel> list
@Exported public String message
public void add(String name, String value, boolean selected)
name - 复选框显示的文字 Checkbox textvalue - 选择复选框的值 Select the value of the check boxselected - 复选框是否被勾选 Whether the check box is checkedpublic void setMessage(String message)
message - 显示的信息 Information displayedpublic void generateResponse(org.kohsuke.stapler.StaplerRequest staplerRequest,
org.kohsuke.stapler.StaplerResponse staplerResponse,
Object o)
throws IOException,
javax.servlet.ServletException
generateResponse in interface org.kohsuke.stapler.HttpResponseIOExceptionjavax.servlet.ServletExceptionCopyright © 2016–2021. All rights reserved.