Package com.bluersw.model
Class CheckboxList
java.lang.Object
com.bluersw.model.CheckboxList
- All Implemented Interfaces:
org.kohsuke.stapler.HttpResponse
复选框列表JSON对象 Checkbox list JSON object
- Author:
- sunweisheng
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class复选框数据模型定义 Checkbox data model definition -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid添加一个复选框 Add a checkboxvoidgenerateResponse(org.kohsuke.stapler.StaplerRequest2 staplerRequest, org.kohsuke.stapler.StaplerResponse2 staplerResponse, Object o) voidsetMessage(String message) 客户端显示的信息 Information displayed by the clientMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kohsuke.stapler.HttpResponse
generateResponse
-
Field Details
-
list
-
-
Constructor Details
-
CheckboxList
public CheckboxList()
-
-
Method Details
-
add
添加一个复选框 Add a checkbox- Parameters:
name- 复选框显示的文字 Checkbox textvalue- 选择复选框的值 Select the value of the check boxselected- 复选框是否被勾选 Whether the check box is checked
-
setMessage
客户端显示的信息 Information displayed by the client- Parameters:
message- 显示的信息 Information displayed
-
getMessage
-
generateResponse
public void generateResponse(org.kohsuke.stapler.StaplerRequest2 staplerRequest, org.kohsuke.stapler.StaplerResponse2 staplerResponse, Object o) throws IOException, jakarta.servlet.ServletException - Specified by:
generateResponsein interfaceorg.kohsuke.stapler.HttpResponse- Throws:
IOExceptionjakarta.servlet.ServletException
-