info.magnolia.module.templatingcomponents.components
Class NewBar

java.lang.Object
  extended by info.magnolia.module.templatingcomponents.components.AbstractAuthoringUiComponent
      extended by 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

Constructor Summary
NewBar(ServerConfiguration server, AggregationState aggregationState)
           
 
Method Summary
protected  void doRender(Appendable out)
           
static NewBar make(ServerConfiguration serverCfg, AggregationState aggState, String containerName, List<String> allowedParagraphs, String newButtonLabel)
           
 void setAllowedParagraphs(List<String> allowedParagraphs)
           
 void setContainerName(String containerName)
           
 void setNewButtonLabel(String newButtonLabel)
           
 
Methods inherited from class info.magnolia.module.templatingcomponents.components.AbstractAuthoringUiComponent
asString, currentContent, getAggregationState, getI18BasenameFor, getMessage, getMessage, getServer, postRender, render, shouldRender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewBar

public NewBar(ServerConfiguration server,
              AggregationState aggregationState)
Method Detail

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 component
newButtonLabel - 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.