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(java.lang.Appendable out)
           
static PageEditBar make(ServerConfiguration serverCfg, AggregationState aggState, java.lang.String editButtonLabel, java.lang.String dialogName)
           
 void setDialogName(java.lang.String dialogName)
           
 void setEditButtonLabel(java.lang.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,
                               java.lang.String editButtonLabel,
                               java.lang.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(java.lang.String dialogName)

setEditButtonLabel

public void setEditButtonLabel(java.lang.String editButtonLabel)

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.