info.magnolia.templating.elements
Class InitElement

java.lang.Object
  extended by info.magnolia.templating.elements.AbstractTemplatingElement
      extended by info.magnolia.templating.elements.AbstractContentTemplatingElement
          extended by info.magnolia.templating.elements.InitElement
All Implemented Interfaces:
TemplatingElement

public class InitElement
extends AbstractContentTemplatingElement

Embeds js and css needed while authoring pages. TODO: this will probably go away in 5.0 as the widget-editor will inject all needed js and css into the page to be edited. Or we might deprecte it and keep it for backward compatibility but w/o injecting the page_editor js source and css.


Field Summary
static String PAGE_EDITOR_CSS
           
static String PAGE_EDITOR_JS_SOURCE
           
 
Constructor Summary
InitElement(ServerConfiguration server, RenderingContext renderingContext)
           
 
Method Summary
 void begin(Appendable out)
           
 void end(Appendable out)
          Override this method if you need to "do something" once the component is rendered, i.e cleanup the context.
 void setDialog(String dialog)
           
 
Methods inherited from class info.magnolia.templating.elements.AbstractContentTemplatingElement
getContent, getNodeIdentifier, getNodePath, getPassedContent, getPath, getWorkspace, restoreAttributesInWebContext, setAttributesInWebContext, setContent, setNodeIdentifier, setPath, setWorkspace
 
Methods inherited from class info.magnolia.templating.elements.AbstractTemplatingElement
currentContent, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGE_EDITOR_JS_SOURCE

public static final String PAGE_EDITOR_JS_SOURCE

PAGE_EDITOR_CSS

public static final String PAGE_EDITOR_CSS
Constructor Detail

InitElement

public InitElement(ServerConfiguration server,
                   RenderingContext renderingContext)
Method Detail

begin

public void begin(Appendable out)
           throws IOException,
                  RenderException
Specified by:
begin in interface TemplatingElement
Overrides:
begin in class AbstractTemplatingElement
Throws:
IOException
RenderException

end

public void end(Appendable out)
         throws IOException,
                RenderException
Description copied from class: AbstractTemplatingElement
Override this method if you need to "do something" once the component is rendered, i.e cleanup the context.

Specified by:
end in interface TemplatingElement
Overrides:
end in class AbstractTemplatingElement
Throws:
IOException
RenderException

setDialog

public void setDialog(String dialog)


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