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(java.lang.Appendable out)
           
static NewBar make(ServerConfiguration serverCfg, AggregationState aggState, java.lang.String containerName, java.util.List<java.lang.String> allowedParagraphs, java.lang.String newButtonLabel)
           
 void setAllowedParagraphs(java.util.List<java.lang.String> allowedParagraphs)
           
 void setContainerName(java.lang.String containerName)
           
 void setNewButtonLabel(java.lang.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,
                          java.lang.String containerName,
                          java.util.List<java.lang.String> allowedParagraphs,
                          java.lang.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(java.lang.String containerName)

setNewButtonLabel

public void setNewButtonLabel(java.lang.String newButtonLabel)

setAllowedParagraphs

public void setAllowedParagraphs(java.util.List<java.lang.String> allowedParagraphs)

doRender

protected void doRender(java.lang.Appendable out)
                 throws java.io.IOException
Specified by:
doRender in class AbstractAuthoringUiComponent
Throws:
java.io.IOException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.