コード例 #1
0
  public void preRender() {
    super.preRender();

    AcPageSession ps = getPageSession();
    JwList<String> statuses = ps.getInternationalNominatedRouteStatusList();

    _statusCbGroup.setSelectedValues(statuses);
  }
コード例 #2
0
  private ScControl createStatusFilter() {
    _statusCbGroup = new ScCheckboxGroup();
    _statusCbGroup.setLabel("Status");
    _statusCbGroup.hideLines();
    _statusCbGroup.useHorizontalLayout();
    _statusCbGroup.setNullSelectsAll();
    ScOptionTree all = _statusCbGroup.addOption("All", "-- all --");

    all.addOption(
        AcUspsInternationalNominatedRouteStatusEnum.NEW.getLabel(),
        AcUspsInternationalNominatedRouteStatusEnum.NEW.getCode());
    all.addOption(
        AcUspsInternationalNominatedRouteStatusEnum.ACCEPTED.getLabel(),
        AcUspsInternationalNominatedRouteStatusEnum.ACCEPTED.getCode());
    all.addOption(
        AcUspsInternationalNominatedRouteStatusEnum.REJECTED.getLabel(),
        AcUspsInternationalNominatedRouteStatusEnum.REJECTED.getCode());
    return _statusCbGroup;
  }
コード例 #3
0
 protected void handleGo() {
   JwList<String> statuses = _statusCbGroup.getSelectedStrings();
   getPageSession().setInternationalNominatedRouteStatusList(statuses);
   super.handleGo();
 }