if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getHelpText().key(wp.getLocale()))) { html.append(" onMouseOver=\"sMH('"); html.append(getId()); html.append("');\" onMouseOut=\"hMH('"); html.append(getId()); html.append("');\""); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getIconPath())) { html.append("<img src='"); html.append(CmsWorkplace.getSkinUri()); if (!isEnabled()) { StringBuffer icon = new StringBuffer(128); icon.append(getIconPath().substring(0, getIconPath().lastIndexOf('.'))); icon.append("_disabled"); icon.append(getIconPath().substring(getIconPath().lastIndexOf('.'))); if (wp.getCms().existsResource(CmsWorkplace.VFS_PATH_RESOURCES + icon.toString())) { html.append(icon); } else { html.append(getIconPath()); html.append(getIconPath()); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getName().key(wp.getLocale()))) { html.append(" alt='"); html.append(getName().key(wp.getLocale())); html.append("'"); html.append(" title='"); html.append(getName().key(wp.getLocale())); html.append("'");
/** * @see org.opencms.workplace.list.A_CmsListDialog#setIndependentActions(org.opencms.workplace.list.CmsListMetadata) */ @Override protected void setIndependentActions(CmsListMetadata metadata) { CmsListDropdownAction filterAction = new CmsListDropdownAction(LIST_IACTION_FILTER); filterAction.setName(Messages.get().container(Messages.GUI_PROJECT_FILES_FILTER_ACTION_NAME_0)); filterAction.setHelpText(Messages.get().container(Messages.GUI_PROJECT_FILES_FILTER_ACTION_HELP_0)); Iterator<?> it = CmsProjectResourcesDisplayMode.VALUES.iterator(); while (it.hasNext()) { CmsProjectResourcesDisplayMode mode = (CmsProjectResourcesDisplayMode)it.next(); filterAction.addItem(mode.getMode(), Messages.get().container(A_CmsWidget.LABEL_PREFIX + mode.getMode())); } metadata.addIndependentAction(filterAction); super.setIndependentActions(metadata); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getList() */ @Override public CmsHtmlList getList() { CmsHtmlList list = super.getList(); // get parameter m_filter = getJsp().getRequest().getParameter(LIST_IACTION_FILTER + CmsListDropdownAction.SUFFIX_PARAM); CmsListDropdownAction listAction = null; if (list != null) { listAction = ((CmsListDropdownAction)list.getMetadata().getIndependentAction(LIST_IACTION_FILTER)); if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_filter)) { // if no param, get old value m_filter = listAction.getSelection(); } } if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_filter)) { m_filter = CmsProjectResourcesDisplayMode.ALL_CHANGES.getMode(); } if (listAction != null) { listAction.setSelection(m_filter); } return list; }
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getHelpText().key(wp.getLocale()))) { html.append(" onMouseOver=\"sMH('"); html.append(getId()); html.append("');\" onMouseOut=\"hMH('"); html.append(getId()); html.append("');\""); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getIconPath())) { html.append("<img src='"); html.append(CmsWorkplace.getSkinUri()); if (!isEnabled()) { StringBuffer icon = new StringBuffer(128); icon.append(getIconPath().substring(0, getIconPath().lastIndexOf('.'))); icon.append("_disabled"); icon.append(getIconPath().substring(getIconPath().lastIndexOf('.'))); if (wp.getCms().existsResource(CmsWorkplace.VFS_PATH_RESOURCES + icon.toString())) { html.append(icon); } else { html.append(getIconPath()); html.append(getIconPath()); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getName().key(wp.getLocale()))) { html.append(" alt='"); html.append(getName().key(wp.getLocale())); html.append("'"); html.append(" title='"); html.append(getName().key(wp.getLocale())); html.append("'");