/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#getIconPath() */ @Override public String getIconPath() { String iconpath = super.getIconPath(); if (iconpath == null) { if (isEnabled()) { iconpath = "list/resource_edit.png"; } else { iconpath = "list/resource_edit_disabled.png"; } } return iconpath; }
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#getIconPath() */ @Override public String getIconPath() { String iconpath = super.getIconPath(); if (iconpath == null) { if (isEnabled()) { iconpath = "list/resource_edit.png"; } else { iconpath = "list/resource_edit_disabled.png"; } } return iconpath; }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getIconPath() */ @Override public String getIconPath() { if (getItem() != null) { if (((Boolean)getItem().get(LIST_COLUMN_WEBUSER)).booleanValue()) { return PATH_BUTTONS + "webuser_ou.png"; } } return super.getIconPath(); }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getIconPath() */ @Override public String getIconPath() { if (getItem() != null) { if (((Boolean)getItem().get(LIST_COLUMN_WEBUSER)).booleanValue()) { return PATH_BUTTONS + "webuser_ou.png"; } } return super.getIconPath(); }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getIconPath() */ @Override public String getIconPath() { try { int resourceType = Integer.parseInt(getItem().get(m_resColumnTypeId).toString()); String typeName = OpenCms.getResourceManager().getResourceType(resourceType).getTypeName(); return "filetypes/" + OpenCms.getWorkplaceManager().getExplorerTypeSetting(typeName).getIcon(); } catch (CmsException e) { return super.getIconPath(); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getIconPath() */ @Override public String getIconPath() { try { int resourceType = Integer.parseInt(getItem().get(m_resColumnTypeId).toString()); String typeName = OpenCms.getResourceManager().getResourceType(resourceType).getTypeName(); return CmsWorkplace.RES_PATH_FILETYPES + OpenCms.getWorkplaceManager().getExplorerTypeSetting(typeName).getIcon(); } catch (CmsException e) { return super.getIconPath(); } }
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#buttonHtml(CmsWorkplace) */ public String buttonHtml(CmsWorkplace wp) { if (!isVisible()) { return ""; } return A_CmsHtmlIconButton.defaultButtonHtml( resolveButtonStyle(), getId() + getItem().getId(), getId(), resolveName(wp.getLocale()), resolveHelpText(wp.getLocale()), isEnabled(), getIconPath(), null, resolveOnClic(wp.getLocale()), getColumnForTexts() == null, null); }
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#buttonHtml(CmsWorkplace) */ public String buttonHtml(CmsWorkplace wp) { if (!isVisible()) { return ""; } return A_CmsHtmlIconButton.defaultButtonHtml( resolveButtonStyle(), getId() + getItem().getId(), getId(), resolveName(wp.getLocale()), resolveHelpText(wp.getLocale()), isEnabled(), getIconPath(), null, resolveOnClic(wp.getLocale()), getColumnForTexts() == null, null); }