@Override
  protected void onInit() {
    super.onInit();

    contents = new LocatableVLayout(extendLocatorId("Contents"));
    contents.setWidth100();
    contents.setHeight100();

    addMember(contents);

    filterForm = new CarouselFilter(this);

    /*
     * carousel filters and search bar are currently mutually exclusive
     */

    if (getSearchSubsystem() == null) {
      configureCarouselFilters();

    } else {
      if (!this.hideSearchBar) {
        final EnhancedSearchBarItem searchFilter =
            new EnhancedSearchBarItem(
                "search", getSearchSubsystem(), getInitialSearchBarSearchText());
        setFilterFormItems(searchFilter);
      }
    }

    carouselHolder = new LocatableHLayout(extendLocatorId("Holder"));
    carouselHolder.setOverflow(Overflow.AUTO);
    carouselHolder.setWidth100();
    contents.addMember(carouselHolder);
  }
Exemplo n.º 2
0
  @Override
  protected LocatableVLayout defaultView() {
    LocatableVLayout vLayout = new LocatableVLayout(this.extendLocatorId("Default"));
    vLayout.setWidth100();

    // TODO: Help icon.
    TitleBar titleBar = new TitleBar(this, MSG.common_title_help());
    vLayout.addMember(titleBar);

    Label label = new Label(MSG.view_helpTop_description());
    label.setPadding(10);
    vLayout.addMember(label);

    return vLayout;
  }
Exemplo n.º 3
0
  public SystemSettingsView(String locatorId) {
    super(locatorId);
    setHeight100();
    setWidth100();

    TitleBar titleBar =
        new TitleBar(
            this, MSG.view_adminConfig_systemSettings(), "subsystems/configure/Configure_24.png");
    addMember(titleBar);

    canvas = new LocatableVLayout("innerLayout");
    canvas.setHeight100();
    canvas.setWidth100();
    canvas.setMargin(15);
    addMember(canvas);
  }