info.magnolia.module.templatingcomponents.components
Class EditBar

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

public class EditBar
extends AbstractAuthoringUiComponent

This describes an "edit bar" for paragraphs. It typically displays edit, move and delete buttons. The dialog to use is normally deduced from the given content node, but can be overridden by a specific one.

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

Constructor Summary
EditBar(ServerConfiguration serverConfiguration, AggregationState aggregationState)
           
 
Method Summary
protected  void doRender(Appendable out)
           
static EditBar make(ServerConfiguration serverCfg, AggregationState aggState, Content specificContent, String specificDialogName, String editButtonLabel, boolean enableMoveButton, boolean enableDeleteButton)
           
 void setContent(Content content)
           
 void setEditButtonLabel(String editButtonLabel)
           
 void setEnableDeleteButton(boolean enableDeleteButton)
           
 void setEnableMoveButton(boolean enableMoveButton)
           
 void setSpecificDialogName(String specificDialogName)
           
 
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

EditBar

public EditBar(ServerConfiguration serverConfiguration,
               AggregationState aggregationState)
Method Detail

make

public static EditBar make(ServerConfiguration serverCfg,
                           AggregationState aggState,
                           Content specificContent,
                           String specificDialogName,
                           String editButtonLabel,
                           boolean enableMoveButton,
                           boolean enableDeleteButton)
Parameters:
serverCfg -
aggState -
specificContent - if null, will deduce a default
specificDialogName - if null, deduced from paragraph definition of current node
editButtonLabel - if null, will use default
enableMoveButton - true should be the default
enableDeleteButton - true should be the default

setContent

public void setContent(Content content)

setSpecificDialogName

public void setSpecificDialogName(String specificDialogName)

setEditButtonLabel

public void setEditButtonLabel(String editButtonLabel)

setEnableMoveButton

public void setEnableMoveButton(boolean enableMoveButton)

setEnableDeleteButton

public void setEnableDeleteButton(boolean enableDeleteButton)

doRender

protected void doRender(Appendable out)
                 throws IOException,
                        javax.jcr.RepositoryException
Specified by:
doRender in class AbstractAuthoringUiComponent
Throws:
IOException
javax.jcr.RepositoryException


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