/** * 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; }
/** * @see org.opencms.workplace.CmsWorkplace#initMessages() */ @Override protected void initMessages() { initSessionInfo(); super.initMessages(); }
/** * Determines if the given element should be shown in the editor.<p> * * @param key the element key name which should be displayed * @param displayOptions the display options for the current user * * @return true if the element should be shown, otherwise false */ public boolean showElement(String key, Properties displayOptions) { return showElement(key, null, displayOptions); }
/** * Creates a list of possible elements of a template from the template property "template-elements".<p> * * @return the list of elements in a String array with element name, nice name (if present) and mandatory flag */ public List<CmsDialogElement> computeElements() { if (m_elementList == null) { m_elementList = computeElements(getCms(), getParamTempfile(), getElementLocale()); } return m_elementList; }
/** * Builds the HTML String for the element language selector.<p> * * This method has to use the resource request parameter because the temporary file is * not available in the upper button frame.<p> * * @param attributes optional attributes for the <select> tag * @return the HTML for the element language select box */ public String buildSelectElementLanguage(String attributes) { return buildSelectElementLanguage(attributes, getParamResource(), getElementLocale()); }
/** * Forwards to the editor and opens it after the action was performed.<p> * * @param dialog the dialog instance forwarding to the editor */ public static void sendForwardToEditor(CmsDialog dialog) { sendForwardToEditor(dialog, null); }
/** * Returns if the dialog is called in direct edit mode before the editor is opened.<p> * * @return true if the dialog is called in direct edit mode before the editor is opened */ public boolean isPreEditor() { return CmsPreEditorAction.isPreEditorMode(this); }
/** * Creates a new widget collector node visitor.<p> */ public CmsXmlContentWidgetVisitor() { initialize(null); }
/** * @see org.opencms.workplace.editors.CmsEditor#getEditorResourceUri() */ @Override public String getEditorResourceUri() { return getSkinUri() + "editors/" + EDITOR_TYPE + "/"; }
/** * @see org.opencms.workplace.editors.CmsEditor#getEditorResourceUri() */ @Override public String getEditorResourceUri() { return getSkinUri() + "editors/" + EDITOR_TYPE + "/"; }
/** * @see org.opencms.workplace.editors.CmsEditor#getEditorResourceUri() */ @Override public String getEditorResourceUri() { return getSkinUri() + "editors/" + EDITOR_TYPE + "/"; }
/** * Decodes the content from the content request parameter.<p> * * @param encodedContent the encoded content * @param encoding the encoding to use * @param originalFile the current file state * * @return the decoded content */ protected String decodeContentParameter(String encodedContent, String encoding, CmsFile originalFile) { return decodeContent(encodedContent); }
/** * Returns the path to the images used by this editor.<p> * * @return the path to the images used by this editor */ public String getPicsUri() { if (m_picsUri == null) { m_picsUri = getEditorResourceUri() + "pics/"; } return m_picsUri; }
/** * Clears the editor session info bean.<p> */ protected void clearEditorSessionInfo() { if (m_editorSessionInfo != null) { getSession().removeAttribute(m_editorSessionInfo.getEditorSessionInfoKey()); } m_editorSessionInfo = null; }
/** * 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; }
/** * Creates a list of possible elements of a template from the template property "template-elements".<p> * * @return the list of elements in a String array with element name, nice name (if present) and mandatory flag */ public List computeElements() { if (m_elementList == null) { m_elementList = computeElements(getCms(), getParamTempfile(), getElementLocale()); } return m_elementList; }
/** * Creates a new widget collector node visitor.<p> * * @param locale the Locale to get the widgets from */ public CmsXmlContentWidgetVisitor(Locale locale) { initialize(locale); }
/** * Determines if the given element should be shown in the editor.<p> * * @param key the element key name which should be displayed * @param displayOptions the display options for the current user * * @return true if the element should be shown, otherwise false */ public boolean showElement(String key, Properties displayOptions) { return showElement(key, null, displayOptions); }
/** * @see org.opencms.workplace.editors.CmsEditor#getEditorResourceUri() */ @Override public String getEditorResourceUri() { return getSkinUri() + "editors/" + EDITOR_TYPE + "/"; }
/** * Creates a new widget collector node visitor.<p> */ public CmsXmlContentWidgetVisitor() { initialize(null); }