コード例 #1
0
 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;
  }
コード例 #3
0
  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;
  }