private ScContainer createFields() {
    _originAirport = new ScText();
    _originAirport.setLabel("Origin");
    _originAirport.setBoldAndNoWrap();

    _destinationAirport = new ScText();
    _destinationAirport.setLabel("Destination");
    _destinationAirport.setBoldAndNoWrap();

    _departureLocalTm = new ScTimestampText();
    _departureLocalTm.setTimeZoneUtility(AcTimeZoneUtility.instance);
    _departureLocalTm.setLabel("Departure");
    _departureLocalTm.beShowOnlyTimeHideSuffix();
    _departureLocalTm.setBoldAndNoWrap();

    _arrivalLocalTm = new ScTimestampText();
    _arrivalLocalTm.setTimeZoneUtility(AcTimeZoneUtility.instance);
    _arrivalLocalTm.setLabel("Arrival");
    _arrivalLocalTm.beShowOnlyTimeHideSuffix();
    _arrivalLocalTm.setBoldAndNoWrap();

    ScContainer c = new ScContainer();
    c.useFieldLayout();
    c.add(_originAirport);
    c.add(_destinationAirport);
    c.add(_departureLocalTm);
    c.add(_arrivalLocalTm);
    return c;
  }
  private ScContainer createTitleContainer() {
    AcGlobalUspsInternationalSubmissionBlockTools x =
        AcGlobalUspsInternationalSubmissionBlockTools.instance;
    _blockTitle = x.newDisplayLabelText();
    _blockTitle.setHtmlClass(BLUE_TITLE_CLASS);

    _dateStart = new ScTimestampText();
    _dateStart.setTimeZoneUtility(AcTimeZoneUtility.instance);
    _dateStart.beShowOnlyDateHideSuffix();
    _dateStart.setHtmlClass(BLUE_TITLE_CLASS);

    _dateEnd = new ScTimestampText();
    _dateEnd.setTimeZoneUtility(AcTimeZoneUtility.instance);
    _dateEnd.beShowOnlyDateHideSuffix();
    _dateEnd.setHtmlClass(BLUE_TITLE_CLASS);

    _dateTitle = new ScContainer();
    _dateTitle.add(_dateStart);
    _dateTitle.addText(" - ").setHtmlClass(BLUE_TITLE_CLASS);
    _dateTitle.add(_dateEnd);

    ScContainer c = new ScContainer();
    c.add(_blockTitle);
    c.add(_dateTitle);
    return c;
  }
  public void preRender() {
    AcPageSession ps = getPageSession();
    JwDate startUtcDt = ps.getInternationalRouteBlockStartUtcDt();
    JwDate endUtcDt = ps.getInternationalRouteBlockEndUtcDt();
    AcGlobalUspsInternationalSubmissionBlock block = getBlock(startUtcDt, endUtcDt);

    Integer sourceId = ps.getInternationalRequestedRouteSourceId();
    String originAirport = ps.getInternationalRequestedRouteDetailsOriginAirportCode();
    String destinationAirport = ps.getInternationalRequestedRouteDetailsDestinationAirportCode();
    JwTime departureLocalTm = ps.getInternationalRequestedRouteDetailsDepartureLocalTm();
    JwTimestamp departureLocalTs = new JwTimestamp();
    departureLocalTs.setTime(departureLocalTm);
    JwTime arrivalLocalTm = ps.getInternationalRequestedRouteDetailsArrivalLocalTm();
    JwTimestamp arrivalLocalTs = new JwTimestamp();
    arrivalLocalTs.setTime(arrivalLocalTm);
    JwList<AcUspsInternationalRequestedRoute> v =
        getInternationalRequestedRoutes(
            sourceId,
            startUtcDt,
            endUtcDt,
            originAirport,
            destinationAirport,
            departureLocalTm,
            arrivalLocalTm);

    boolean hasBlock = block != null;
    _blockTitle.setVisible(hasBlock);
    _blockTitle.applyModel(block);
    _dateTitle.setVisible(!hasBlock);
    _dateStart.setValue(startUtcDt);
    _dateEnd.setValue(endUtcDt);

    _originAirport.setValue(originAirport);
    _destinationAirport.setValue(destinationAirport);
    _departureLocalTm.setValue(departureLocalTs);
    _arrivalLocalTm.setValue(arrivalLocalTs);

    _grid.setList(v);
  }
 public ScTimestampText newCloseoutLocalTsText(String label) {
   ScTimestampText e = getAirportLocalTimestampText(getCloseoutLocalTsAdaptor());
   e.setLabel(label);
   return e;
 }
 public ScTimestampText newExpectedDeliverLocalTsText(String label) {
   ScTimestampText e = getAirportLocalTimestampText(getExpectedDeliverLocalTsAdaptor());
   e.setLabel(label);
   return e;
 }