コード例 #1
0
  public PassportWrapper(Passport passport) {
    super();

    this.setId(passport.getId());
    this.setParId(passport.getParId());
    this.setRname(passport.getRname());
    this.setKname(passport.getKname());
    this.setEname(passport.getEname());
    this.setPasstype(passport.getPasstype());
  }
コード例 #2
0
  public String toOption(Long selectedId) {

    StringBuilder stringBuilder =
        new StringBuilder("<option ")
            .append(getId().equals(selectedId) ? " selected " : "")
            .append(" value=\"")
            .append(getId() == null ? "" : getId().toString())
            .append("\">");

    stringBuilder
        .append(passport.getRname())
        .append("&nbsp;&nbsp;|&nbsp;&nbsp;")
        .append(indicator.getRname())
        .append("&nbsp;&nbsp;|&nbsp;&nbsp;")
        .append(measure != null ? measure.getRname() : "")
        .append("</option>");

    return stringBuilder.toString();
  }