/** * Returns the "workplace button style" setting.<p> * * @return the "workplace button style" setting */ public String getParamTabWpButtonStyle() { return "" + m_userSettings.getWorkplaceButtonStyle(); }
/** * Returns the "workplace button style" setting.<p> * * @return the "workplace button style" setting */ public String getParamTabWpButtonStyle() { return "" + m_userSettings.getWorkplaceButtonStyle(); }
/** * Returns the html for the "publish queue" button.<p> * * @return the html for the "publish queue" button */ public String getPublishQueueButton() { int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle(); StringBuffer js = new StringBuffer(128); js.append("javascript:if (parent.body.admin_content && parent.body.admin_menu) {"); js.append("parent.body.location.href = '"); js.append(getJsp().link("/system/workplace/views/admin/admin-fs.jsp?root=admin&path=/publishqueue")); js.append("';"); js.append("} else {"); js.append("parent.body.explorer_body.explorer_files.location.href = '"); js.append(getJsp().link("/system/workplace/views/admin/admin-fs.jsp?root=explorer&path=/publishqueue&menu=no")); js.append("';"); js.append("};"); return button(js.toString(), null, "publish_queue.png", Messages.GUI_BUTTON_PUBLISHQUEUE_0, buttonStyle); }
/** * Returns the html for the "publish queue" button.<p> * * @return the html for the "publish queue" button */ public String getPublishQueueButton() { int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle(); StringBuffer js = new StringBuffer(128); js.append("javascript:if (parent.body.admin_content && parent.body.admin_menu) {"); js.append("parent.body.location.href = '"); js.append(getJsp().link("/system/workplace/views/admin/admin-fs.jsp?root=admin&path=/publishqueue")); js.append("';"); js.append("} else {"); js.append("parent.body.explorer_body.explorer_files.location.href = '"); js.append(getJsp().link("/system/workplace/views/admin/admin-fs.jsp?root=explorer&path=/publishqueue&menu=no")); js.append("';"); js.append("};"); return button(js.toString(), null, "publish_queue.png", Messages.GUI_BUTTON_PUBLISHQUEUE_0, buttonStyle); }
int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle();
int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle();
/** * Returns the html for the "preferences" button depending on the current users permissions and * the default workplace settings.<p> * * @return the html for the "preferences" button */ public String getPreferencesButton() { int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle(); if (!getCms().getRequestContext().getCurrentUser().isManaged()) { return button( "../commons/preferences.jsp", "body", "preferences.png", Messages.GUI_BUTTON_PREFERENCES_0, buttonStyle); } else { return button(null, null, "preferences_in.png", Messages.GUI_BUTTON_PREFERENCES_0, buttonStyle); } }
int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle();
/** * Returns the html for the "preferences" button depending on the current users permissions and * the default workplace settings.<p> * * @return the html for the "preferences" button */ public String getPreferencesButton() { int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle(); if (!getCms().getRequestContext().currentUser().isManaged()) { return button( "../commons/preferences.jsp", "body", "preferences.png", Messages.GUI_BUTTON_PREFERENCES_0, buttonStyle); } else { return button(null, null, "preferences_in.png", Messages.GUI_BUTTON_PREFERENCES_0, buttonStyle); } }
int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle();
if (getWorkplaceButtonStyle() != OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceButtonStyle()) { m_user.setAdditionalInfo( PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACEGENERALOPTIONS + CmsWorkplaceConfiguration.N_BUTTONSTYLE, new Integer(getWorkplaceButtonStyle())); } else if (cms != null) { m_user.deleteAdditionalInfo(
if (getWorkplaceButtonStyle() != OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceButtonStyle()) { m_user.setAdditionalInfo(PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACEGENERALOPTIONS + CmsWorkplaceConfiguration.N_BUTTONSTYLE, new Integer(getWorkplaceButtonStyle())); } else if (cms != null) { m_user.deleteAdditionalInfo(PREFERENCES