Fills the container.<p>

@param showIndirect true-> show all user, false -> only direct user
480827
protected void fillContainer(boolean showIndirect) {

        m_container.removeAllContainerFilters();
        m_container.removeAllItems();
        m_checkedUserPasswordReset = new HashSet<CmsUUID>();
        for (CmsUser user : m_users) {
            if (showIndirect || !m_indirects.contains(user)) {
                addUserToContainer(m_container, user);
            }
        }
        setVisibilities();
    }
431040
public void fillContent(CmsImageInfoBean imageInfo, CmsJSONMap imageAttributes, boolean initialFill) {

        for (Entry<Attribute, I_CmsFormWidget> entry : m_fields.entrySet()) {
            String val = imageAttributes.getString(entry.getKey().name());
            if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(val)) {
                if ((entry.getKey() == Attribute.linkPath) && val.startsWith(CmsCoreProvider.get().getVfsPrefix())) {
                    entry.getValue().setFormValueAsString(val.substring(CmsCoreProvider.get().getVfsPrefix().length()));
                } else {
                    entry.getValue().setFormValueAsString(val);
                }
            }
        }
    }
934133
public void init(String url, String user, String pass) {
		init(url, user, pass, null);
	}
138001
public void setRedirect(ClassNode cn) {
        if (isPrimaryNode) throw new GroovyBugError("tried to set a redirect for a primary ClassNode ("+getName()+"->"+cn.getName()+").");
        if (cn!=null) cn = cn.redirect();
        if (cn==this) return;
        redirect = cn;
    }
321530
@OverrideOnDemand
  @OverridingMethodsMustInvokeSuper
  protected void fillHead (@Nonnull final ISimpleWebExecutionContext aSWEC, @Nonnull final HCHtml aHtml)
  {
    final IRequestWebScopeWithoutResponse aRequestScope = aSWEC.getRequestScope ();
    final HCHead aHead = aHtml.head ();

    // Add all meta elements
    addMetaElements (aRequestScope, aHead);
  }
1341002
public void fillContent(CmsImageInfoBean imageInfo) {

        //checking for enhanced image options
        m_form.hideEnhancedOptions(
            (getDialogMode() != GalleryMode.editor) || !CmsPreviewUtil.hasEnhancedImageOptions());
        CmsJSONMap imageAttributes = CmsPreviewUtil.getImageAttributes();
        boolean inititalFill = false;
        // checking if selected image resource is the same as previewed resource
        if ((imageAttributes.containsKey(Attribute.emptySelection.name()))
            || (imageAttributes.containsKey(Attribute.hash.name())
                && !imageAttributes.getString(Attribute.hash.name()).equals(
                    String.valueOf(m_handler.getImageIdHash())))) {
            imageAttributes = CmsJSONMap.createJSONMap();
            inititalFill = true;
        }
        m_form.fillContent(imageInfo, imageAttributes, inititalFill);
    }
411230
private void showDialog(@NonNull final Source source) {
        // Caching the source object here because this app makes a lot of them.
        mRedirectSource = source;

        final SourceRedirect sourceRedirect = source.getRedirect();
        final String redirectUrl = sourceRedirect != null ? sourceRedirect.getUrl() : null;
        if (redirectUrl != null) {
            mRedirectDialogController.showDialog(redirectUrl);
        }
    }
1219033
public void fillTo(int size)
   {
      if (size <= 0)
         return;

      if (pool.getLogger().isTraceEnabled())
      {
         synchronized (this)
         {
            pool.getLogger().trace(ManagedConnectionPoolUtility.fullDetails(this,
               "fillTo(" + size + ")",
               pool.getConnectionManager().getManagedConnectionFactory(),
               pool.getConnectionManager(),
               pool, pool.getConfiguration(),
               listeners, pool.getInternalStatistics(),
               credential.getSubject(),
               credential.getConnectionRequestInfo()));
         }
      }
      else if (pool.getLogger().isDebugEnabled())
      {
         pool.getLogger().debug(ManagedConnectionPoolUtility.details(
            "fillTo(" + size + ")",
            pool.getConfiguration().getId(),
            getCount(IN_USE, listeners),
            pool.getConfiguration().getMaxSize()));
      }

      while (!pool.isFull())
      {
         // Get a permit - avoids a race when the pool is nearly full
         // Also avoids unnessary fill checking when all connections are checked out
         try
         {
            //TODO:statistics
            if (pool.getRequestSemaphore()
                  .tryAcquire(pool.getConfiguration().getBlockingTimeout(), TimeUnit.MILLISECONDS))
            {
               try
               {
                  if (pool.isShutdown())
                  {
                     return;
                  }

                  // We already have enough connections
                  if (listeners.size() >= size)
                  {
                     return;
                  }

                  // Create a connection to fill the pool
                  try
                  {
                     ConnectionListener cl = pool.createConnectionListener(credential, this);

                     if (Tracer.isEnabled())
                        Tracer.createConnectionListener(pool.getConfiguration().getId(), this, cl,
                                                        cl.getManagedConnection(),
                                                        false, true, false,
                                                        Tracer.isRecordCallstacks() ?
                                                        new Throwable("CALLSTACK") : null);

                     boolean added = false;

                     if (listeners.size() < size)
                     {

                        listeners.add(cl);
                        added = true;
                     }

                     if (!added)
                     {

                        if (Tracer.isEnabled())
                           Tracer.destroyConnectionListener(pool.getConfiguration().getId(), this, cl,
                                                            false, false, false, false,
                                                            false, true, false,
                                                            Tracer.isRecordCallstacks() ?
                                                            new Throwable("CALLSTACK") : null);
                     
                        pool.destroyConnectionListener(cl);
                        return;
                     }
                  }
                  catch (ResourceException re)
                  {
                     return;
                  }
               }
               finally
               {
                  pool.getRequestSemaphore().release();
               }
            }
         }
         catch (InterruptedException ignored)
         {
            Thread.interrupted();
            //TODO:trace
         }
      }
   }
405343
protected void addHelpFileRedirect(String fieldName, Class<? extends Describable> owner, String fieldNameToRedirectTo) {
        helpRedirect.put(fieldName, new HelpRedirect(owner,fieldNameToRedirectTo));
    }
290225
private void init(Set<CmsResource> resources, List<CmsUser> user) {

        addStyleName("o-no-padding");
        m_container = new IndexedContainer();
        m_container.addContainerProperty(PROP_ELEMENT, CmsResourceInfo.class, null);

        for (CmsResource res : resources) {
            Item item = m_container.addItem(res);
            if (item != null) { //Item is null if resource is dependency of multiple groups/user to delete
                item.getItemProperty(PROP_ELEMENT).setValue(new CmsResourceInfo(res));
            }
        }
        if (user != null) {
            for (CmsUser us : user) {
                Item item = m_container.addItem(us);
                if (item != null) { //Item is null if User is dependency of multiple groups to delete
                    item.getItemProperty(PROP_ELEMENT).setValue(
                        new CmsResourceInfo(
                            us.getSimpleName(),
                            us.getDescription(),
                            new CmsCssIcon(OpenCmsTheme.ICON_USER)));
                }
            }
        }
        setColumnHeaderMode(ColumnHeaderMode.HIDDEN);
        setContainerDataSource(m_container);
        setVisibleColumns(PROP_ELEMENT);

    }
737811
public void setHeaderVisible(boolean visible) {

        String style = I_CmsSitemapLayoutBundle.INSTANCE.sitemapCss().headerContainerVaadinMode();
        if (visible) {
            m_headerContainer.removeStyleName(style);
        } else {
            m_headerContainer.addStyleName(style);
        }
    }
405160
public void setShowEditorHelp(CmsObject cms, boolean showHelp) throws CmsException {

        CmsUser user = cms.getRequestContext().getCurrentUser();
        user.setAdditionalInfo(ADDINFO_ADE_SHOW_EDITOR_HELP, String.valueOf(showHelp));
        cms.writeUser(user);
    }
771574
public void fillContent(CmsResourceInfoBean info) {

        m_info = info;
        // width of a property form
        m_propertiesPanel.clear();
        Map<String, String> properties = info.getProperties();
        String noEditReason = info.getNoEditReason();
        if (properties != null) {
            Iterator<Entry<String, String>> it = properties.entrySet().iterator();
            while (it.hasNext()) {

                Entry<String, String> entry = it.next();
                CmsPropertyForm property = new CmsPropertyForm(
                    entry.getKey(),

                    entry.getValue(),
                    noEditReason);
                property.addValueChangeHandler(this);
                m_propertiesPanel.add(property);
            }
        }
        updateImageInfo();
        setChanged(false);
    }
687219
public static void loadAndShow(final Runnable finishAction) {

        CmsRpcAction<CmsUserSettingsBean> action = new CmsRpcAction<CmsUserSettingsBean>() {

            @Override
            public void execute() {

                start(200, false);
                CmsCoreProvider.getService().loadUserSettings(this);

            }

            @Override
            protected void onResponse(CmsUserSettingsBean result) {

                stop(false);
                CmsUserSettingsDialog dlg = new CmsUserSettingsDialog(result, finishAction);
                dlg.centerHorizontally(50);
                dlg.initWidth();
            }
        };

        action.execute();

    }
980071
protected void addUserToContainer(IndexedContainer container, CmsUser user) {

        if (m_blackList.contains(user)) {
            return;
        }
        Item item = container.addItem(user);
        fillItem(item, user);
    }
724424
protected void fill(GroupContainerPopulator parentContainer,
                        Object factory,
                        CommandButtonConfigurer configurer,
                        List previousButtons) {
        parentContainer.add(Box.createGlue());
    }
156771
public void fillContent(List<CmsCategoryTreeEntry> categoryRoot, List<String> selected) {

        setInitOpen(true);

        updateContentTree(categoryRoot, selected);
    }