Creates the options for the select box.<p>

@return the options for the select box
490208
public static List<String> createOptions() {

        List<String> result = new ArrayList<String>();
        result.add(nameLookup.get(CmsAliasMode.permanentRedirect));
        result.add(nameLookup.get(CmsAliasMode.redirect));
        result.add(nameLookup.get(CmsAliasMode.page));
        return result;
    }
277089
protected List<String> createOption(final String option, final List<String> values) {
        if (values == null){
            return new ArrayList<String>();
        }
        final List<String> list = new ArrayList<String>();
        for (String value: values) {
            list.add(option);
            list.add(value);
        }
        return list;
    }
1306000
public Plan makeSelectPlan() {
		Plan p = makeIndexSelectPlan();
		if (p == null)
			p = tp;
		return addSelectPredicate(p);
	}
914892
public Set<Integer> getSelections() {
        if (mOriginalItems != null) {
            Set<Integer> selections = new HashSet<>();
            int adapterOffset = mItemAdapter.getFastAdapter().getPreItemCountByOrder(mItemAdapter.getOrder());
            for (int i = 0, size = mOriginalItems.size(); i < size; i++) {
                Item item = mOriginalItems.get(i);
                if (item.isSelected()) {
                    selections.add(i + adapterOffset);
                }
            }
            return selections;
        } else {
            return mItemAdapter.getFastAdapter().getSelections();
        }
    }
705299
private CmsElementOptionBar createOptionBar(CmsContainerPageElementPanel elementWidget) {

        CmsElementOptionBar optionBar = new CmsElementOptionBar(elementWidget);
        CmsPushButton button = new CmsRemoveOptionButton(elementWidget, this);
        button.addClickHandler(m_optionClickHandler);
        optionBar.add(button);

        button = new CmsFavoritesOptionButton(elementWidget, this);
        button.addClickHandler(m_optionClickHandler);
        optionBar.add(button);

        button = new CmsSettingsOptionButton(elementWidget, this);
        button.addClickHandler(m_optionClickHandler);
        optionBar.add(button);

        button = new CmsInfoOptionButton(elementWidget, this);
        button.addClickHandler(m_optionClickHandler);
        optionBar.add(button);

        button = new CmsAddOptionButton(elementWidget, this);
        button.addClickHandler(m_optionClickHandler);
        optionBar.add(button);

        button = new CmsInheritedOptionButton(elementWidget, this);
        optionBar.add(button);

        button = new CmsMoveOptionButton(elementWidget, this);
        // setting the drag and drop handler
        button.addMouseDownHandler(getController().getDndHandler());
        optionBar.add(button);

        button = new CmsEditOptionButton(elementWidget, this);
        button.addClickHandler(m_optionClickHandler);
        optionBar.add(button);

        return optionBar;
    }
81521
private List buildResourceTypeSelectWidgetList() {

        List fileFormats = new ArrayList();
        // get all OpenCms resource types
        List resourceTypes = OpenCms.getResourceManager().getResourceTypes();
        // put for every resource type type id and name into list object for select widget
        Iterator iter = resourceTypes.iterator();
        while (iter.hasNext()) {
            I_CmsResourceType type = (I_CmsResourceType)iter.next();
            // only xml resource types
            if (type.isDirectEditable() && !type.getTypeName().toUpperCase().equals("JSP")) {
                CmsSelectWidgetOption option = new CmsSelectWidgetOption(
                    new Integer(type.getTypeId()).toString(),
                    false,
                    type.getTypeName());
                fileFormats.add(option);
            }
        }
        return fileFormats;
    }
1359171
private List<CmsSelectWidgetOption> getFieldConfigurationWidgetConfiguration() {

        List<CmsSelectWidgetOption> result = new ArrayList<CmsSelectWidgetOption>();
        if (getSearchIndexIndex() instanceof CmsSolrIndex) {
            List<CmsSolrFieldConfiguration> fieldConfigurations = m_searchManager.getFieldConfigurationsSolr();
            for (CmsSearchFieldConfiguration config : fieldConfigurations) {
                CmsSelectWidgetOption option = new CmsSelectWidgetOption(
                    config.getName(),
                    (config.getName()).equals(CmsSearchFieldConfiguration.STR_STANDARD));
                result.add(option);
            }
        } else {
            List<CmsLuceneFieldConfiguration> fieldConfigurations = m_searchManager.getFieldConfigurationsLucene();
            for (CmsSearchFieldConfiguration config : fieldConfigurations) {
                CmsSelectWidgetOption option = new CmsSelectWidgetOption(
                    config.getName(),
                    (config.getName()).equals(CmsSearchFieldConfiguration.STR_STANDARD));
                result.add(option);
            }
        }
        return result;
    }
14388
public String buildOptions() {

        StringBuffer result = new StringBuffer(128);

        result.append("<input type='checkbox' name='");
        result.append(PARAM_READTREE);
        result.append("' value='true' onclick=\"reloadReport();\"");
        if (Boolean.valueOf(getParamReadtree()).booleanValue()) {
            result.append(" checked='checked'");
        }
        result.append(">&nbsp;");
        result.append(key(Messages.GUI_DELETED_RESOURCES_READ_TREE_0));

        return result.toString();
    }
17507
public String buildSubChoices() {

        String elementPath = getParamElementName();

        // we have to add a choice element, first check if the element to add itself is part of a choice or not
        boolean choiceType = Boolean.valueOf(getParamChoiceType()).booleanValue();
        I_CmsXmlSchemaType elemType = m_content.getContentDefinition().getSchemaType(elementPath);
        if (!choiceType || (elemType.isChoiceOption() && elemType.isChoiceType())) {
            // this is a choice option or a nested choice type to add, remove last element name from xpath
            elementPath = CmsXmlUtils.removeLastXpathElement(elementPath);
        }
        elementPath = CmsXmlUtils.concatXpath(elementPath, getParamChoiceElement());
        return buildElementChoices(elementPath, choiceType, false).toString();
    }
309965
public String[] getOptions() {
    Vector<String>	result;
    String[]		options;
    int			i;

    result = new Vector<String>();

    options = super.getOptions();
    for (i = 0; i < options.length; i++)
      result.add(options[i]);

    if (!getCustomDelimiter().isEmpty()) {
      result.add("-custom-delimiter");
      result.add("" + getCustomDelimiter());
    }

    result.add("-list");
    result.add("" + getList());

    return result.toArray(new String[result.size()]);	  
  }
293825
public String buildOrgUnitSelector() {

        StringBuffer html = new StringBuffer();
        html.append("<select style='width: 100%;' size='1' ");
        appendId(html, PARAM_OUFQN);
        html.append(">\n");
        for (CmsOrganizationalUnit ou : getOus()) {
            String selected = "";
            if (ou.getName().equals(m_oufqn)
                || (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_oufqn) && ou.getName().equals(m_oufqn.substring(1)))) {
                selected = " selected='selected'";
            }
            html.append("<option value='").append(ou.getName()).append("'").append(selected).append(">");
            html.append(ou.getDisplayName(m_locale));
            html.append("</option>\n");
        }
        html.append("</select>\n");
        return html.toString();
    }
1297102
public IModel<List<T>> getChildChoices()
	{
		final T selectedRootOption = TwoDropDownChoicesModel.this.selectedRootOption;
		final IModel<List<T>> childChoices = new AbstractReadOnlyModel<List<T>>()
		{

			/** The Constant serialVersionUID. */
			private static final long serialVersionUID = 1L;

			/**
			 * {@inheritDoc}
			 */
			@Override
			public List<T> getObject()
			{
				List<T> models = getModelsMap().get(selectedRootOption);
				if (models == null)
				{
					models = Collections.emptyList();
				}
				return models;
			}

		};
		return childChoices;
	}
1110944
@Override
  protected Options getOptions() {
    final Options options = super.getOptions();

    final Option filenameOption =
        new Option("k", "the keyword to search for in the page  [required]");
    filenameOption.setArgName("KEYWORD");
    filenameOption.setLongOpt("keyword");
    filenameOption.setRequired(true);
    filenameOption.setArgs(1);

    options.addOption(filenameOption);

    return options;

  }
1038158
public List<String[]> selectAll(){
		final List<String[]> result = new ArrayList<>((int)countAll(this.datas.length));
		for(int i = 1; i <= this.datas.length; i++) {
			result.addAll(select(i));
		}
		return result;
	}
1292801
public Collection<Select> getAllSelects()
    {
        final List<Select> ret = new ArrayList<>(this.selects);
        ret.addAll(this.instSelects.values());
        return Collections.unmodifiableCollection(ret);
    }
904478
@Override
    public List<String> getOptions() throws WidgetException {
        try {
            Select select = new Select(getByLocator());
            return select.getOptions();
        } catch (Exception e) {
            throw new WidgetException("Error while fetching drop down options", getByLocator(), e);
        }
    }
702133
private void buildConfigOptions() {
		WFieldLayout layout = new WFieldLayout(WFieldLayout.LAYOUT_STACKED);
		layout.setMargin(new Margin(null, null, Size.LARGE, null));
		layout.addField("Select a WPanel Type", panelType);
		contentField = layout.addField("Panel content", panelContent);
		headingField = layout.addField("heading", tfHeading);
		showMenuField = layout.addField("Show menu", showMenu);
		showUtilBarField = layout.addField("Show utility bar", showUtilBar);
		layout.addField((WLabel) null, applyConfigButton);
		add(layout);
	}