/** * Builds the html for the default copy file mode select box.<p> * * @param htmlAttributes optional html attributes for the &lgt;select> tag * @return the html for the default copy file mode select box */ public String buildSelectCopyFileMode(String htmlAttributes) { List options = new ArrayList(2); options.add(key(Messages.GUI_PREF_COPY_AS_SIBLING_0)); options.add(key(Messages.GUI_COPY_AS_NEW_0)); List values = new ArrayList(2); values.add(CmsResource.COPY_AS_SIBLING.toString()); values.add(CmsResource.COPY_AS_NEW.toString()); int selectedIndex = values.indexOf(getParamTabDiCopyFileMode()); return buildSelect(htmlAttributes, options, values, selectedIndex); }
/** * Builds the html for the default copy file mode select box.<p> * * @param htmlAttributes optional html attributes for the &lgt;select> tag * @return the html for the default copy file mode select box */ public String buildSelectCopyFileMode(String htmlAttributes) { List<String> options = new ArrayList<String>(2); options.add(key(Messages.GUI_PREF_COPY_AS_SIBLING_0)); options.add(key(Messages.GUI_COPY_AS_NEW_0)); List<String> values = new ArrayList<String>(2); values.add(CmsResource.COPY_AS_SIBLING.toString()); values.add(CmsResource.COPY_AS_NEW.toString()); int selectedIndex = values.indexOf(getParamTabDiCopyFileMode()); return buildSelect(htmlAttributes, options, values, selectedIndex); }
/** * Builds the html for the default copy folder mode select box.<p> * * @param htmlAttributes optional html attributes for the &lgt;select> tag * @return the html for the default copy folder mode select box */ public String buildSelectCopyFolderMode(String htmlAttributes) { List options = new ArrayList(3); options.add(key(Messages.GUI_PREF_COPY_AS_SIBLINGS_0)); options.add(key(Messages.GUI_PREF_PRESERVE_SIBLINGS_RESOURCES_0)); options.add(key(Messages.GUI_PREF_COPY_AS_NEW_0)); List values = new ArrayList(3); values.add(CmsResource.COPY_AS_SIBLING.toString()); values.add(CmsResource.COPY_PRESERVE_SIBLING.toString()); values.add(CmsResource.COPY_AS_NEW.toString()); int selectedIndex = values.indexOf(getParamTabDiCopyFolderMode()); return buildSelect(htmlAttributes, options, values, selectedIndex); }
/** * Builds the html for the default copy folder mode select box.<p> * * @param htmlAttributes optional html attributes for the &lgt;select> tag * @return the html for the default copy folder mode select box */ public String buildSelectCopyFolderMode(String htmlAttributes) { List<String> options = new ArrayList<String>(3); options.add(key(Messages.GUI_PREF_COPY_AS_SIBLINGS_0)); options.add(key(Messages.GUI_PREF_PRESERVE_SIBLINGS_RESOURCES_0)); options.add(key(Messages.GUI_PREF_COPY_AS_NEW_0)); List<String> values = new ArrayList<String>(3); values.add(CmsResource.COPY_AS_SIBLING.toString()); values.add(CmsResource.COPY_PRESERVE_SIBLING.toString()); values.add(CmsResource.COPY_AS_NEW.toString()); int selectedIndex = values.indexOf(getParamTabDiCopyFolderMode()); return buildSelect(htmlAttributes, options, values, selectedIndex); }