public ScControl createRoot() { _missing = new ScText(); _missing.setValue("Skeleton Route no longer exists."); _missing.setHtmlClass(BLUE_TITLE_CLASS); _missing.setBoldAndNoWrap(); _blockText = new ScText(); _blockText.setLabel("Block"); _blockText.setHtmlClass(BLUE_TITLE_CLASS); _details = new ScContainer(); _details.useVerticalLayout(); _details.add(_blockText); _details.addTextBold("Route"); _details.add(createRouteGroup()); _details.addTextBold("Flights"); _details.add(createFlightGrid()); _details.addButton(newAddLegCommand(), "Add Leg"); _details.addSpace(); _details.addTextBold("Offers"); _details.add(createOffersGrid()); _details.addButton(newAddOfferCommand(), "Add Offer"); _form = new ScForm(); _form.useCollapsibleRowLayout(); _form.add(_missing); _form.add(_details); return _form; }
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; }
protected ScContainer createTitleContainer() { _duration = new ScText(); _duration.setHtmlClass(BLUE_TITLE_CLASS); ScContainer c = super.createTitleContainer(); c.addBreak(); c.add(_duration); return c; }