info.magnolia.module.templatingcomponents.components
Class EditBar
java.lang.Object
info.magnolia.module.templatingcomponents.components.AbstractAuthoringUiComponent
info.magnolia.module.templatingcomponents.components.EditBar
- All Implemented Interfaces:
- AuthoringUiComponent
public class EditBar
- extends AbstractAuthoringUiComponent
This describes an "edit bar" for paragraphs. It typically displays edit, move and delete buttons.
The dialog to use is normally deduced from the given content node, but can be overridden by a specific one.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditBar
public EditBar(ServerConfiguration serverConfiguration,
AggregationState aggregationState)
make
public static EditBar make(ServerConfiguration serverCfg,
AggregationState aggState,
Content specificContent,
java.lang.String specificDialogName,
java.lang.String editButtonLabel,
boolean enableMoveButton,
boolean enableDeleteButton)
- Parameters:
serverCfg
- aggState
- specificContent
- if null, will deduce a defaultspecificDialogName
- if null, deduced from paragraph definition of current nodeeditButtonLabel
- if null, will use defaultenableMoveButton
- true should be the defaultenableDeleteButton
- true should be the default
setContent
public void setContent(Content content)
setSpecificDialogName
public void setSpecificDialogName(java.lang.String specificDialogName)
setEditButtonLabel
public void setEditButtonLabel(java.lang.String editButtonLabel)
setEnableMoveButton
public void setEnableMoveButton(boolean enableMoveButton)
setEnableDeleteButton
public void setEnableDeleteButton(boolean enableDeleteButton)
doRender
protected void doRender(java.lang.Appendable out)
throws java.io.IOException,
javax.jcr.RepositoryException
- Specified by:
doRender
in class AbstractAuthoringUiComponent
- Throws:
java.io.IOException
javax.jcr.RepositoryException
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.