/** * Builds the html String for the element language selector.<p> * * @param attributes optional attributes for the <select> tag * @return the html for the element language selectbox */ public String buildSelectElementLanguage(String attributes) { return buildSelectElementLanguage(attributes, getParamTempfile(), getElementLocale()); }
/** * Builds the html String for the element language selector.<p> * * @param attributes optional attributes for the <select> tag * @return the html for the element language selectbox */ public String buildSelectElementLanguage(String attributes) { return buildSelectElementLanguage(attributes, getParamResource(), getElementLocale()); }
/** * Returns the list of active elements of the page.<p> * * @return the list of active elements of the page */ protected List<CmsDialogElement> getElementList() { if (m_elementList == null) { m_elementList = CmsDialogElements.computeElements(getCms(), m_page, getParamTempfile(), getElementLocale()); } return m_elementList; }
/** * Returns the list of active elements of the page.<p> * * @return the list of active elements of the page */ protected List getElementList() { if (m_elementList == null) { m_elementList = CmsDialogElements.computeElements(getCms(), m_page, getParamTempfile(), getElementLocale()); } return m_elementList; }
|| (m_page.hasValue(elementName, getElementLocale()) && !m_page.isEnabled(elementName, getElementLocale()))) { List<String> allElements = m_page.getNames(getElementLocale()); int elementCount = allElements.size(); List<String> elements = new ArrayList<String>(elementCount); for (int i = 0; i < elementCount; i++) { if (m_page.isEnabled(allElements.get(i), getElementLocale())) { elements.add(allElements.get(i));
|| (m_page.hasValue(elementName, getElementLocale()) && !m_page.isEnabled(elementName, getElementLocale()))) { List allElements = m_page.getNames(getElementLocale()); int elementCount = allElements.size(); List elements = new ArrayList(elementCount); for (int i = 0; i < elementCount; i++) { if (m_page.isEnabled((String)allElements.get(i), getElementLocale())) { elements.add(allElements.get(i));
if ((!m_page.hasValue(element.getName(), getElementLocale()) && element.isMandantory()) || m_page.isEnabled(element.getName(), getElementLocale())) {
if ((!m_page.hasValue(element.getName(), getElementLocale()) && element.isMandantory()) || m_page.isEnabled(element.getName(), getElementLocale())) {
Locale loc = getElementLocale(); m_page.removeLocale(loc);
Locale loc = getElementLocale(); m_page.removeLocale(loc);
/** * @see org.opencms.workplace.editors.CmsEditor#actionSave() */ @Override public void actionSave() throws JspException { try { // save content to temporary file performSaveContent(getParamElementname(), getElementLocale()); // copy the temporary file content back to the original file commitTempFile(); // set the modified parameter setParamModified(Boolean.TRUE.toString()); } catch (CmsException e) { showErrorPage(e); } if (getAction() != ACTION_CANCEL) { // save successful, set save action setAction(ACTION_SAVE); } }
/** * @see org.opencms.workplace.editors.CmsEditor#actionSave() */ @Override public void actionSave() throws JspException { try { // save content to temporary file performSaveContent(getParamElementname(), getElementLocale()); // copy the temporary file content back to the original file commitTempFile(); // set the modified parameter setParamModified(Boolean.TRUE.toString()); } catch (CmsException e) { showErrorPage(e); } if (getAction() != ACTION_CANCEL) { // save successful, set save action setAction(ACTION_SAVE); } }
if (m_page.hasValue(getParamElementname(), getElementLocale())) { elementData = m_page.getStringValue(getCms(), getParamElementname(), getElementLocale()); } else { m_page.addValue(getParamElementname(), getElementLocale());
/** * Performs the preview page action in a new browser window.<p> * * @throws IOException if redirect fails * @throws JspException if inclusion of error page fails */ public void actionPreview() throws IOException, JspException { try { // save content of the editor to the temporary file performSaveContent(getParamElementname(), getElementLocale()); } catch (CmsException e) { // show error page showErrorPage(this, e); } // redirect to the temporary file with current active element language String param = "?" + org.opencms.i18n.CmsLocaleManager.PARAMETER_LOCALE + "=" + getParamElementlanguage(); sendCmsRedirect(getParamTempfile() + param); }
/** * Performs the preview page action in a new browser window.<p> * * @throws IOException if redirect fails * @throws JspException if inclusion of error page fails */ public void actionPreview() throws IOException, JspException { try { // save content of the editor to the temporary file performSaveContent(getParamElementname(), getElementLocale()); } catch (CmsException e) { // show error page showErrorPage(this, e); } // redirect to the temporary file with current active element language String param = "?" + org.opencms.i18n.CmsLocaleManager.PARAMETER_LOCALE + "=" + getParamElementlanguage(); sendCmsRedirect(getParamTempfile() + param); }
if (m_page.hasValue(getParamElementname(), getElementLocale())) { elementData = m_page.getStringValue(getCms(), getParamElementname(), getElementLocale()); } else { m_page.addValue(getParamElementname(), getElementLocale());