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,
String specificDialogName,
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(String specificDialogName)
setEditButtonLabel
public void setEditButtonLabel(String editButtonLabel)
setEnableMoveButton
public void setEnableMoveButton(boolean enableMoveButton)
setEnableDeleteButton
public void setEnableDeleteButton(boolean enableDeleteButton)
doRender
protected void doRender(Appendable out)
throws IOException,
javax.jcr.RepositoryException
- Specified by:
doRender
in class AbstractAuthoringUiComponent
- Throws:
IOException
javax.jcr.RepositoryException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.