@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);
  }
Beispiel #2
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);
  }