info.magnolia.module.admininterface.dialogs
Class ParagraphSelectDialog
java.lang.Object
info.magnolia.cms.servlets.MVCServletHandlerImpl
info.magnolia.module.admininterface.DialogMVCHandler
info.magnolia.module.admininterface.dialogs.ParagraphSelectDialog
- All Implemented Interfaces:
- info.magnolia.cms.servlets.MVCServletHandler
public class ParagraphSelectDialog
- extends DialogMVCHandler
If there are more than one paragraph available you have first to choose one.
- Author:
- philipp
Fields inherited from class info.magnolia.module.admininterface.DialogMVCHandler |
COMMAND_SAVE, COMMAND_SELECT_PARAGRAPH, COMMAND_SHOW_DIALOG, form, hm, locale, msgs, nodeName, params, path, repository, richE, richEPaste, storageNode, VIEW_CLOSE_WINDOW, VIEW_SHOW_DIALOG |
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
exception, request, response, VIEW_ERROR, VIEW_SUCCESS |
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler |
VIEW_NOTHING |
Constructor Summary |
ParagraphSelectDialog(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary |
protected void |
addParagraph(info.magnolia.cms.gui.dialog.DialogButtonSet radioButtonSet,
String paragraph)
|
protected info.magnolia.cms.gui.dialog.Dialog |
createDialog(info.magnolia.cms.core.Content configNode,
info.magnolia.cms.core.Content websiteNode)
Is called during showDialog(). |
info.magnolia.cms.core.Content |
getConfigNode()
Returns the node with the dialog definition. |
info.magnolia.cms.core.Content |
getStorageNode()
Defines the node/page containing the data editing in this dialog. |
String |
save()
Uses the SaveControl. |
Methods inherited from class info.magnolia.module.admininterface.DialogMVCHandler |
configureDialog, configureSaveHandler, createSaveHandler, getCommand, getDialog, getItemType, getJsExecutedAfterSaving, getRepository, getSaveHandler, onPostSave, onPreSave, onSave, onSaveFailed, removeSessionAttributes, renderHtml, setDialog, setItemType, setJsExecutedAfterSaving, showDialog, validate |
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
execute, getException, getExceptionStackTrace, getName, getRequest, getResponse, init, populateFromRequest, setCommand, setRequest, setResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EDITPARAGRAPH_DIALOG_URL
public static final String EDITPARAGRAPH_DIALOG_URL
- See Also:
- Constant Field Values
ParagraphSelectDialog
public ParagraphSelectDialog(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
createDialog
protected info.magnolia.cms.gui.dialog.Dialog createDialog(info.magnolia.cms.core.Content configNode,
info.magnolia.cms.core.Content websiteNode)
throws javax.jcr.RepositoryException
- Description copied from class:
DialogMVCHandler
- Is called during showDialog(). Here can you create/ add controls for the dialog.
- Overrides:
createDialog
in class DialogMVCHandler
- Throws:
javax.jcr.RepositoryException
addParagraph
protected void addParagraph(info.magnolia.cms.gui.dialog.DialogButtonSet radioButtonSet,
String paragraph)
getStorageNode
public info.magnolia.cms.core.Content getStorageNode()
- Description copied from class:
DialogMVCHandler
- Defines the node/page containing the data editing in this dialog. The default implementation is using the path
parameter
- Overrides:
getStorageNode
in class DialogMVCHandler
getConfigNode
public info.magnolia.cms.core.Content getConfigNode()
- Description copied from class:
DialogMVCHandler
- Returns the node with the dialog definition. Default: null
- Overrides:
getConfigNode
in class DialogMVCHandler
save
public String save()
- Description copied from class:
DialogMVCHandler
- Uses the SaveControl. Override to take influence.
todo - this should take care of exceptions thrown while writing
- onPreSave, Save and onPostSave should be allowed to throw an exception on failure
- Overrides:
save
in class DialogMVCHandler
- Returns:
- close view name
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.