📄 cmspreferences.java
字号:
/**
* Returns the "editor button style" setting.<p>
*
* @return the "editor button style" setting
*/
public String getParamTabEdButtonStyle() {
return "" + m_userSettings.getEditorButtonStyle();
}
/**
* Returns the "direct edit button style" setting.<p>
*
* @return the "direct edit button style" setting
*/
public String getParamTabEdDirectEditButtonStyle() {
return "" + m_userSettings.getDirectEditButtonStyle();
}
/**
* Returns the "explorer button style" setting.<p>
*
* @return the "explorer button style" setting
*/
public String getParamTabExButtonStyle() {
return "" + m_userSettings.getExplorerButtonStyle();
}
/**
* Returns the "display file creation date" setting.<p>
*
* @return <code>"true"</code> if the file creation date input field is checked, otherwise ""
*/
public String getParamTabExFileDateCreated() {
return isParamEnabled(m_userSettings.showExplorerFileDateCreated());
}
/**
* Returns the "display file date expired" setting.<p>
*
* @return <code>"true"</code> if the file date expired input field is checked, otherwise ""
*/
public String getParamTabExFileDateExpired() {
return isParamEnabled(m_userSettings.showExplorerFileDateExpired());
}
/**
* Returns the "display file last modification date" setting.<p>
*
* @return <code>"true"</code> if the file last modification date input field is checked, otherwise ""
*/
public String getParamTabExFileDateLastModified() {
return isParamEnabled(m_userSettings.showExplorerFileDateLastModified());
}
/**
* Returns the "display file date released" setting.<p>
*
* @return <code>"true"</code> if the file date released input field is checked, otherwise ""
*/
public String getParamTabExFileDateReleased() {
return isParamEnabled(m_userSettings.showExplorerFileDateReleased());
}
/**
* Returns the "explorer number of entries per page" setting.<p>
*
* @return the "explorer number of entries per page" setting
*/
public String getParamTabExFileEntries() {
return "" + m_userSettings.getExplorerFileEntries();
}
/**
* Returns the "display file locked by" setting.<p>
*
* @return <code>"true"</code> if the file locked by input field is checked, otherwise ""
*/
public String getParamTabExFileLockedBy() {
return isParamEnabled(m_userSettings.showExplorerFileLockedBy());
}
/**
* Returns the "display navtext" setting.<p>
*
* @return <code>"true"</code> if the file navtext input field is checked, otherwise ""
*/
public String getParamTabExFileNavText() {
return isParamEnabled(m_userSettings.showExplorerFileNavText());
}
/**
* Returns the "display file permissions" setting.<p>
*
* @return <code>"true"</code> if the file permissions input field is checked, otherwise ""
*/
public String getParamTabExFilePermissions() {
return isParamEnabled(m_userSettings.showExplorerFilePermissions());
}
/**
* Returns the "display file size" setting.<p>
*
* @return <code>"true"</code> if the file size input field is checked, otherwise ""
*/
public String getParamTabExFileSize() {
return isParamEnabled(m_userSettings.showExplorerFileSize());
}
/**
* Returns the "display file state" setting.<p>
*
* @return <code>"true"</code> if the file state input field is checked, otherwise ""
*/
public String getParamTabExFileState() {
return isParamEnabled(m_userSettings.showExplorerFileState());
}
/**
* Returns the "display file title" setting.<p>
*
* @return <code>"true"</code> if the file title input field is checked, otherwise ""
*/
public String getParamTabExFileTitle() {
return isParamEnabled(m_userSettings.showExplorerFileTitle());
}
/**
* Returns the "display file type" setting.<p>
*
* @return <code>"true"</code> if the file type input field is checked, otherwise ""
*/
public String getParamTabExFileType() {
return isParamEnabled(m_userSettings.showExplorerFileType());
}
/**
* Returns the "display file created by" setting.<p>
*
* @return <code>"true"</code> if the file created by input field is checked, otherwise ""
*/
public String getParamTabExFileUserCreated() {
return isParamEnabled(m_userSettings.showExplorerFileUserCreated());
}
/**
* Returns the "display file last modified by" setting.<p>
*
* @return <code>"true"</code> if the file last modified by input field is checked, otherwise ""
*/
public String getParamTabExFileUserLastModified() {
return isParamEnabled(m_userSettings.showExplorerFileUserLastModified());
}
/**
* Returns the "workplace search result style" setting.<p>
*
* @return the "workplace search result style" setting
*/
public String getParamTabExWorkplaceSearchResult() {
return m_userSettings.getWorkplaceSearchViewStyle().toString();
}
/**
* Returns the "workplace button style" setting.<p>
*
* @return the "workplace button style" setting
*/
public String getParamTabWpButtonStyle() {
return "" + m_userSettings.getWorkplaceButtonStyle();
}
/**
* Returns the "start folder" setting.<p>
*
* @return the "start folder" setting
*/
public String getParamTabWpFolder() {
return m_userSettings.getStartFolder();
}
/**
* Returns the start language setting.<p>
*
* @return the start language setting
*/
public String getParamTabWpLanguage() {
return m_userSettings.getLocale().toString();
}
/**
* Returns the start project setting.<p>
*
* @return the start project setting
*/
public String getParamTabWpProject() {
return m_userSettings.getStartProject();
}
/**
* Returns the "workplace report type" setting.<p>
*
* @return the "workplace report type" setting
*/
public String getParamTabWpReportType() {
return m_userSettings.getWorkplaceReportType();
}
/**
* Returns the "workplace restrict explorer view" setting.<p>
*
* @return the "workplace restrict explorer view" setting
*/
public String getParamTabWpRestrictExplorerView() {
return "" + m_userSettings.getRestrictExplorerView();
}
/**
* Returns the "show publish notification" setting.<p>
*
* @return <code>"true"</code> if the "show publish notification" input is checked, otherwise ""
*/
public String getParamTabWpShowPublishNotification() {
return isParamEnabled(m_userSettings.getShowPublishNotification());
}
/**
* Returns the "start site" setting.<p>
*
* @return the "start site" setting
*/
public String getParamTabWpSite() {
return m_userSettings.getStartSite();
}
/**
* Get the "user timewparp" setting in form of a formatted date string.<p>
*
* If no timewarp has been chosen, a value "-" will be returned.<p>
*
* @return the "user timewarp" setting in form of a formatted date string
*/
public String getParamTabWpTimewarp() {
String result;
if (m_userSettings.getTimeWarp() == CmsContextInfo.CURRENT_TIME) {
result = "-";
} else {
result = CmsCalendarWidget.getCalendarLocalizedTime(
getLocale(),
getMessages(),
m_userSettings.getTimeWarp());
}
return result;
}
/**
* Returns the "use upload applet" setting.<p>
*
* @return <code>"true"</code> if the "use upload applet" input is checked, otherwise ""
*/
public String getParamTabWpUseUploadApplet() {
return isParamEnabled(m_userSettings.useUploadApplet());
}
/**
* Returns the start view setting.<p>
*
* @return the start view setting
*/
public String getParamTabWpView() {
return m_userSettings.getStartView();
}
/**
* @see org.opencms.workplace.CmsTabDialog#getTabParameterOrder()
*/
public List getTabParameterOrder() {
ArrayList orderList = new ArrayList(5);
orderList.add("tabwp");
orderList.add("tabex");
orderList.add("tabdi");
orderList.add("tabed");
orderList.add("tabwf");
orderList.add("tabup");
return orderList;
}
/**
* @see org.opencms.workplace.CmsTabDialog#getTabs()
*/
public List getTabs() {
ArrayList tabList = new ArrayList(6);
tabList.add(key(Messages.GUI_PREF_PANEL_WORKPLACE_0));
tabList.add(key(Messages.GUI_PREF_PANEL_EXPLORER_0));
tabList.add(key(Messages.GUI_PREF_PANEL_DIALOGS_0));
tabList.add(key(Messages.GUI_PREF_PANEL_EDITORS_0));
tabList.add(key(Messages.GUI_PREF_PANEL_USER_0));
return tabList;
}
/**
* Helper method to add the "checked" attribute to an input field.<p>
*
* @param paramValue the parameter value, if <code>"true"</code>, the "checked" attribute will be returned
* @return the "checked" attribute or an empty String
*/
public String isChecked(String paramValue) {
if (Boolean.valueOf(paramValue).booleanValue()) {
return " checked=\"checked\"";
}
return "";
}
/**
* Sets the new password value.<p>
*
* @param newPwd the new password value
*/
public void setParamNewPassword(String newPwd) {
m_paramNewPassword = newPwd;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -