info.magnolia.module.templatingcomponents.components
Class NewBar
java.lang.Object
info.magnolia.module.templatingcomponents.components.AbstractAuthoringUiComponent
info.magnolia.module.templatingcomponents.components.NewBar
- All Implemented Interfaces:
- AuthoringUiComponent
public class NewBar
- extends AbstractAuthoringUiComponent
Builds a new bar UI component.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewBar
public NewBar(ServerConfiguration server,
AggregationState aggregationState)
make
public static NewBar make(ServerConfiguration serverCfg,
AggregationState aggState,
String containerName,
List<String> allowedParagraphs,
String newButtonLabel)
- Parameters:
serverCfg
- aggState
- containerName
- the name of the node into which new paragraphs will be added; this is a child node of AbstractAuthoringUiComponent.currentContent()
.allowedParagraphs
- the list of paragraph definitions (their names) that are allow to be added by this componentnewButtonLabel
- if null, default will be used
setContainerName
public void setContainerName(String containerName)
setNewButtonLabel
public void setNewButtonLabel(String newButtonLabel)
setAllowedParagraphs
public void setAllowedParagraphs(List<String> allowedParagraphs)
doRender
protected void doRender(Appendable out)
throws IOException
- Specified by:
doRender
in class AbstractAuthoringUiComponent
- Throws:
IOException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.