Class CheckboxList

java.lang.Object
com.bluersw.model.CheckboxList
All Implemented Interfaces:
org.kohsuke.stapler.HttpResponse

@ExportedBean public class CheckboxList extends Object implements org.kohsuke.stapler.HttpResponse
复选框列表JSON对象 Checkbox list JSON object
Author:
sunweisheng
  • Field Details

  • Constructor Details

    • CheckboxList

      public CheckboxList()
  • Method Details

    • add

      public void add(String name, String value, boolean selected)
      添加一个复选框 Add a checkbox
      Parameters:
      name - 复选框显示的文字 Checkbox text
      value - 选择复选框的值 Select the value of the check box
      selected - 复选框是否被勾选 Whether the check box is checked
    • setMessage

      public void setMessage(String message)
      客户端显示的信息 Information displayed by the client
      Parameters:
      message - 显示的信息 Information displayed
    • getMessage

      @Exported public String getMessage()
    • generateResponse

      public void generateResponse(org.kohsuke.stapler.StaplerRequest2 staplerRequest, org.kohsuke.stapler.StaplerResponse2 staplerResponse, Object o) throws IOException, jakarta.servlet.ServletException
      Specified by:
      generateResponse in interface org.kohsuke.stapler.HttpResponse
      Throws:
      IOException
      jakarta.servlet.ServletException