private ScControl createGroup() {
   ScGroup g = new ScGroup();
   g.add(createFields());
   g.addBreak();
   g.addButton(newSaveCommand(), "Save");
   g.addBackButton("Cancel");
   return g;
 }
  private ScGroup createRouteGroup() {
    AcUspsInternationalSkeletonRouteTools x = AcUspsInternationalSkeletonRouteTools.instance;
    ScContainer c = new ScContainer();
    c.useFieldLayout();
    c.add(x.newBeginDateBoldText("Begin"));
    c.add(x.newEndDateBoldText("End"));
    c.add(x.newOriginAirportCodeBoldText("Origin"));
    c.add(x.newDestinationAirportCodeBoldText("Destination"));

    _route = new ScGroup();
    _route.add(c);
    _route.addBreak();
    _route.addButton(newEditRouteCommand(), "Edit");
    return _route;
  }
  public ScControl createRoot() {
    _numberField = new ScTextField();
    _numberField.setLabel("Number");
    _numberField.setWidth(40);
    _numberField.setDefaultFocus();

    ScCommand goCommand = newGoCommand();

    ScForm f = new ScForm();
    f.setDefaultCommand(goCommand);
    ScGroup g = f.addGroup();
    g.useColumnLayout();

    ScContainer fields = g.addFieldLayout();
    fields.add(_numberField);

    g.addSpace();
    g.addButton(goCommand, "Go");

    return f;
  }
  public void preRender() {
    AcUspsInternationalSkeletonRouteVo vo = getDetails();
    boolean exists = vo.hasRoute();
    _missing.setVisible(!exists);
    _details.setVisible(exists);

    _blockText.setValue(getBlockDisplayLabel());

    if (exists) {
      _route.applyModel(vo.getRoute());
      _flightGrid.setList(vo.getLegs());
      _offerGrid.setList(vo.getOffers());
    }
  }
 private ScControl createGroup() {
   ScGroup g = new ScGroup();
   g.add(createFields());
   return g;
 }