/** * Insert the end HTML for the direct edit buttons in manual mode (if required).<p> * * Same as closing the <code></cms:editable</code> tag after opening one in manual mode.<p> * * @param needsClose result of {@link #editableManualOpen()} should be the value for this parameter * * @throws JspException if something goes wrong */ public void editableManualClose(boolean needsClose) throws JspException { if (needsClose) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.MANUAL, null); } }
/** * Insert the end HTML for the direct edit buttons in manual mode (if required).<p> * * Same as closing the <code></cms:editable</code> tag after opening one in manual mode.<p> * * @param needsClose result of {@link #editableManualOpen()} should be the value for this parameter * * @throws JspException if something goes wrong */ public void editableManualClose(boolean needsClose) throws JspException { if (needsClose) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.MANUAL, null); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable /></code> tag.<p> * * The configured default direct edit provider is used.<p> * * @param isEditable include scriptlet only if true * * @throws JspException if something goes wrong */ public void editable(boolean isEditable) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.AUTO, null); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable /></code> tag.<p> * * The configured default direct edit provider is used.<p> * * @param isEditable include scriptlet only if true * * @throws JspException if something goes wrong */ public void editable(boolean isEditable) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.AUTO, null); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable file="..." /></code>tag.<p> * * For backward compatibility, this always uses the JSP include based direct edit provider<p>. * * @param isEditable include scriptlet only if true * @param filename file with scriptlet code * * @throws JspException if something goes wrong */ public void editable(boolean isEditable, String filename) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction( getJspContext(), CmsDirectEditJspIncludeProvider.class.getName(), CmsDirectEditMode.AUTO, filename); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable file="..." /></code>tag.<p> * * For backward compatibility, this always uses the JSP include based direct edit provider<p>. * * @param isEditable include scriptlet only if true * @param filename file with scriptlet code * * @throws JspException if something goes wrong */ public void editable(boolean isEditable, String filename) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction( getJspContext(), CmsDirectEditJspIncludeProvider.class.getName(), CmsDirectEditMode.AUTO, filename); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable provider="..." mode="..." file="..." /></code>tag.<p> * * @param provider the direct edit provider class name * @param mode the direct edit mode to use * @param filename file with scriptlet code (may be <code>null</code>) * * @throws JspException if something goes wrong */ public void editable(String provider, String mode, String filename) throws JspException { CmsJspTagEditable.editableTagAction(getJspContext(), provider, CmsDirectEditMode.valueOf(mode), filename); }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable provider="..." mode="..." file="..." /></code>tag.<p> * * @param provider the direct edit provider class name * @param mode the direct edit mode to use * @param filename file with scriptlet code (may be <code>null</code>) * * @throws JspException if something goes wrong */ public void editable(String provider, String mode, String filename) throws JspException { CmsJspTagEditable.editableTagAction(getJspContext(), provider, CmsDirectEditMode.valueOf(mode), filename); }
/** * Writes the dialog html code, only if the <code>{@link org.opencms.workplace.CmsDialog#ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page */ public void writeDialog() throws IOException { JspWriter out = m_activeWp.getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Writes the dialog html code, only if the <code>{@link org.opencms.workplace.CmsDialog#ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page */ public void writeDialog() throws IOException { JspWriter out = m_activeWp.getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Writes the dialog html code, only if the <code>{@link org.opencms.workplace.CmsDialog#ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errors forwarding to the required result page */ public void writeDialog() throws IOException { if (m_activeWp.isForwarded() || m_passiveWp.isForwarded()) { return; } JspWriter out = m_activeWp.getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Writes the dialog html code, only if the <code>{@link org.opencms.workplace.CmsDialog#ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errors forwarding to the required result page */ public void writeDialog() throws IOException { if (m_activeWp.isForwarded() || m_passiveWp.isForwarded()) { return; } JspWriter out = m_activeWp.getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Writes the dialog html code, only if the <code>{@link #ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page */ public void writeDialog() throws IOException { if (isForwarded()) { return; } if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_START_WRITE_LIST_1, getListId())); } JspWriter out = getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_END_WRITE_LIST_1, getListId())); } }
/** * Writes the dialog html code, only if the <code>{@link #ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page */ public void writeDialog() throws IOException { if (isForwarded()) { return; } if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_START_WRITE_LIST_1, getListId())); } JspWriter out = getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_END_WRITE_LIST_1, getListId())); } }
/** * Returns the current used macro resolver instance.<p> * * @return the macro resolver */ public CmsMacroResolver getMacroResolver() { if (m_macroResolver == null) { // create a new macro resolver "with everything we got" m_macroResolver = CmsMacroResolver.newInstance() // initialize resolver with the objects available .setCmsObject(m_cms).setMessages(getMessages()).setJspPageContext( (m_jsp == null) ? null : m_jsp.getJspContext()); } return m_macroResolver; }
/** * Validates the needed parameters and display the frameset.<p> * * @throws IOException in case of errros displaying to the required page */ public void displayFrameSet() throws IOException { if (getJsp().getRequest().getParameter(CmsListExplorerFrameset.PARAM_PAGE) != null) { int page = Integer.parseInt(getJsp().getRequest().getParameter(CmsListExplorerFrameset.PARAM_PAGE)); getSettings().setExplorerPage(page); if (getSettings().getCollector() instanceof I_CmsListResourceCollector) { I_CmsListResourceCollector collector = (I_CmsListResourceCollector)getSettings().getCollector(); collector.setPage(page); } } JspWriter out = getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Validates the needed parameters and display the frameset.<p> * * @throws IOException in case of errros displaying to the required page */ public void displayFrameSet() throws IOException { if (getJsp().getRequest().getParameter(CmsListExplorerFrameset.PARAM_PAGE) != null) { int page = Integer.parseInt(getJsp().getRequest().getParameter(CmsListExplorerFrameset.PARAM_PAGE)); getSettings().setExplorerPage(page); if (getSettings().getCollector() instanceof I_CmsListResourceCollector) { I_CmsListResourceCollector collector = (I_CmsListResourceCollector)getSettings().getCollector(); collector.setPage(page); } } JspWriter out = getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Returns the current used macro resolver instance.<p> * * @return the macro resolver */ public CmsMacroResolver getMacroResolver() { if (m_macroResolver == null) { // create a new macro resolver "with everything we got" m_macroResolver = CmsMacroResolver.newInstance() // initialize resolver with the objects available .setCmsObject(m_cms).setMessages(getMessages()).setJspPageContext( (m_jsp == null) ? null : m_jsp.getJspContext()); m_macroResolver.setParameterMap(m_parameterMap); } return m_macroResolver; }
/** * Generates the html code for the title frame.<p> * * @throws Exception if writing to the JSP out fails */ public void displayTitle() throws Exception { JspWriter out = getJsp().getJspContext().getOut(); out.println(htmlStart()); out.println(bodyStart(null)); out.println(dialogStart()); out.println(dialogContentStart(getParamTitle())); out.println(dialogContentEnd()); out.println(dialogEnd()); out.println(bodyEnd()); out.println(htmlEnd()); } }
/** * Generates the html code for the title frame.<p> * * @throws Exception if writing to the JSP out fails */ public void displayTitle() throws Exception { JspWriter out = getJsp().getJspContext().getOut(); out.println(htmlStart()); out.println(bodyStart(null)); out.println(dialogStart()); out.println(dialogContentStart(getParamTitle())); out.println(dialogContentEnd()); out.println(dialogEnd()); out.println(bodyEnd()); out.println(htmlEnd()); } }