info.magnolia.module.templatingcomponents.components
Class PageEditBar

java.lang.Object
  extended by info.magnolia.module.templatingcomponents.components.AbstractAuthoringUiComponent
      extended by info.magnolia.module.templatingcomponents.components.PageEditBar
All Implemented Interfaces:
AuthoringUiComponent

public class PageEditBar
extends AbstractAuthoringUiComponent

This describes the "main bar" for pages. This typically renders a bar to be placed on top of pages, with a "preview" button and a "page info" button. It might also display a language selector (if i18n authoring is enabled), and a "back to AdminCentral" button if relevant.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Constructor Summary
PageEditBar(ServerConfiguration server, AggregationState aggregationState)
           
 
Method Summary
protected  void doRender(Appendable out)
           
static PageEditBar make(ServerConfiguration serverCfg, AggregationState aggState, String editButtonLabel, String dialogName)
           
 void setDialogName(String dialogName)
           
 void setEditButtonLabel(String editButtonLabel)
           
 
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

PageEditBar

public PageEditBar(ServerConfiguration server,
                   AggregationState aggregationState)
Method Detail

make

public static PageEditBar make(ServerConfiguration serverCfg,
                               AggregationState aggState,
                               String editButtonLabel,
                               String dialogName)
Parameters:
serverCfg -
aggState -
editButtonLabel - pass null for the default
dialogName - if null or empty, no dialog button will be rendered

setDialogName

public void setDialogName(String dialogName)

setEditButtonLabel

public void setEditButtonLabel(String editButtonLabel)

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.