📄 cmspreferences.java
字号:
try {
m_userSettings.setEditorButtonStyle(Integer.parseInt(value));
} catch (Throwable t) {
// should usually never happen
}
}
/**
* Sets the "direct edit button style" setting.<p>
*
* @param value a String representation of an int value to set the "direct edit button style" setting
*/
public void setParamTabEdDirectEditButtonStyle(String value) {
try {
m_userSettings.setDirectEditButtonStyle(Integer.parseInt(value));
} catch (Throwable t) {
// should usually never happen
}
}
/**
* Sets the "explorer button style" setting.<p>
*
* @param value a String representation of an int value to set the "explorer button style" setting
*/
public void setParamTabExButtonStyle(String value) {
try {
m_userSettings.setExplorerButtonStyle(Integer.parseInt(value));
} catch (Throwable t) {
// should usually never happen
}
}
/**
* Sets the "display file creation date" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file creation date" setting, all others to disable
*/
public void setParamTabExFileDateCreated(String value) {
m_userSettings.setShowExplorerFileDateCreated(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file expired date" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file expired date" setting, all others to disable
*/
public void setParamTabExFileDateExpired(String value) {
m_userSettings.setShowExplorerFileDateExpired(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file last modification date" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file last modification date" setting, all others to disable
*/
public void setParamTabExFileDateLastModified(String value) {
m_userSettings.setShowExplorerFileDateLastModified(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file released date" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file released date" setting, all others to disable
*/
public void setParamTabExFileDateReleased(String value) {
m_userSettings.setShowExplorerFileDateReleased(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "explorer number of entries per page" setting.<p>
*
* @param value a String representation of an int value to set the "number of entries per page" setting
*/
public void setParamTabExFileEntries(String value) {
try {
m_userSettings.setExplorerFileEntries(Integer.parseInt(value));
} catch (Throwable t) {
// should usually never happen
}
}
/**
* Sets the "display file locked by" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file locked by" setting, all others to disable
*/
public void setParamTabExFileLockedBy(String value) {
m_userSettings.setShowExplorerFileLockedBy(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file permissions" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file permissions" setting, all others to disable
*/
public void setParamTabExFilePermissions(String value) {
m_userSettings.setShowExplorerFilePermissions(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file size" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file size" setting, all others to disable
*/
public void setParamTabExFileSize(String value) {
m_userSettings.setShowExplorerFileSize(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file state" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file state" setting, all others to disable
*/
public void setParamTabExFileState(String value) {
m_userSettings.setShowExplorerFileState(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file title" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file title" setting, all others to disable
*/
public void setParamTabExFileTitle(String value) {
m_userSettings.setShowExplorerFileTitle(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file type" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file type" setting, all others to disable
*/
public void setParamTabExFileType(String value) {
m_userSettings.setShowExplorerFileType(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file created by" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file created by" setting, all others to disable
*/
public void setParamTabExFileUserCreated(String value) {
m_userSettings.setShowExplorerFileUserCreated(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "display file last modified by" setting.<p>
*
* @param value <code>"true"</code> to enable the "display file last modified by" setting, all others to disable
*/
public void setParamTabExFileUserLastModified(String value) {
m_userSettings.setShowExplorerFileUserLastModified(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "task startup filter" setting.<p>
*
* @param filter the "task startup filter" setting
*/
public void setParamTabWfFilter(String filter) {
if ("".equals(filter)) {
filter = "a1";
}
m_userSettings.setTaskStartupFilter(filter);
}
/**
* Sets the "message when accepted" setting.<p>
*
* @param value the "message when accepted" setting
*/
public void setParamTabWfMessageAccepted(String value) {
m_userSettings.setTaskMessageAccepted(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "message when completed" setting.<p>
*
* @param value the "message when completed" setting
*/
public void setParamTabWfMessageCompleted(String value) {
m_userSettings.setTaskMessageCompleted(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "message when forwarded" setting.<p>
*
* @param value the "message when forwarded" setting
*/
public void setParamTabWfMessageForwarded(String value) {
m_userSettings.setTaskMessageForwarded(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "inform all role members" setting.<p>
*
* @param value <code>"true"</code> to enable the "inform all role members" setting, all others to disable
*/
public void setParamTabWfMessageMembers(String value) {
m_userSettings.setTaskMessageMembers(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "show all projects" setting.<p>
*
* @param value the "show all projects" setting
*/
public void setParamTabWfShowAllProjects(String value) {
m_userSettings.setTaskShowAllProjects(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "workplace button style" setting.<p>
*
* @param value a String representation of an int value to set the "workplace button style" setting
*/
public void setParamTabWpButtonStyle(String value) {
try {
m_userSettings.setWorkplaceButtonStyle(Integer.parseInt(value));
} catch (Throwable t) {
// should usually never happen
}
}
/**
* Sets the "start folder" setting.<p>
*
* @param value the start folder to show in the explorer view
*/
public void setParamTabWpFolder(String value) {
m_userSettings.setStartFolder(value);
}
/**
* Sets the start language setting.<p>
*
* @param value the start language setting
*/
public void setParamTabWpLanguage(String value) {
m_userSettings.setLocale(CmsLocaleManager.getLocale(value));
}
/**
* Sets the start project setting.<p>
*
* @param value the start project setting
*/
public void setParamTabWpProject(String value) {
m_userSettings.setStartProject(value);
}
/**
* Sets the "workplace report type" setting.<p>
*
* @param value the "workplace report type" setting
*/
public void setParamTabWpReportType(String value) {
if (I_CmsReport.REPORT_TYPE_SIMPLE.equals(value) || I_CmsReport.REPORT_TYPE_EXTENDED.equals(value)) {
// set only if valid parameter value is found
m_userSettings.setWorkplaceReportType(value);
}
}
/**
* Sets the "workplace restrict explorer view" setting.<p>
*
* @param value the "workplace restrict explorer view" setting
*/
public void setParamTabWpRestrictExplorerView(String value) {
m_userSettings.setRestrictExplorerView(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the "start site" setting.<p>
*
* @param value the start site to show in the explorer view
*/
public void setParamTabWpSite(String value) {
m_userSettings.setStartSite(value);
}
/**
* Sets the "use upload applet" setting.<p>
*
* @param value <code>"true"</code> to enable the "use upload applet" setting, all others to disable
*/
public void setParamTabWpUseUploadApplet(String value) {
m_userSettings.setUseUploadApplet(Boolean.valueOf(value).booleanValue());
}
/**
* Sets the start view setting.<p>
*
* @param value the start view setting
*/
public void setParamTabWpView(String value) {
m_userSettings.setStartView(value);
}
/**
* @see org.opencms.workplace.CmsWorkplace#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
*/
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) {
// create an empty user settings object
m_userSettings = new CmsUserSettings();
// fill the parameter values in the get/set methods
fillParamValues(request);
// get the active tab from request parameter or display first tab
getActiveTab();
// set the dialog type
setParamDialogtype(DIALOG_TYPE);
// set the action for the JSP switch
if (DIALOG_SET.equals(getParamAction())) {
setAction(ACTION_SET);
} else if (DIALOG_OK.equals(getParamAction())) {
setAction(ACTION_OK);
} else if (DIALOG_RELOAD.equals(getParamAction())) {
setAction(ACTION_RELOAD);
} else if (DIALOG_CANCEL.equals(getParamAction())) {
setAction(ACTION_CANCEL);
} else if (DIALOG_CHPWD.equals(getParamAction())) {
setAction(ACTION_CHPWD);
} else {
if (!DIALOG_SWITCHTAB.eq
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -