org.apache.myfaces.html5.renderkit.util
Class Html5RendererUtils.ScriptContext

java.lang.Object
  extended by org.apache.myfaces.html5.renderkit.util.Html5RendererUtils.ScriptContext
Enclosing class:
Html5RendererUtils

public static class Html5RendererUtils.ScriptContext
extends Object

The ScriptContext offers methods and fields to help with rendering out a script and keeping a proper formatting.


Constructor Summary
Html5RendererUtils.ScriptContext()
           
Html5RendererUtils.ScriptContext(boolean prettyPrint)
           
Html5RendererUtils.ScriptContext(StringBuffer buf, boolean prettyPrint)
           
 
Method Summary
 Html5RendererUtils.ScriptContext append(char c)
           
 Html5RendererUtils.ScriptContext append(int i)
           
 Html5RendererUtils.ScriptContext append(String str)
           
 void decreaseIndent()
           
 long getCurrentIndentationLevel()
           
 void increaseIndent()
           
 void prettyLine()
           
 void prettyLineDecreaseIndent()
           
 void prettyLineIncreaseIndent()
           
 void setCurrentIndentationLevel(long currentIndentationLevel)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Html5RendererUtils.ScriptContext

public Html5RendererUtils.ScriptContext()

Html5RendererUtils.ScriptContext

public Html5RendererUtils.ScriptContext(boolean prettyPrint)

Html5RendererUtils.ScriptContext

public Html5RendererUtils.ScriptContext(StringBuffer buf,
                                        boolean prettyPrint)
Method Detail

increaseIndent

public void increaseIndent()

decreaseIndent

public void decreaseIndent()

prettyLine

public void prettyLine()

prettyLineIncreaseIndent

public void prettyLineIncreaseIndent()

prettyLineDecreaseIndent

public void prettyLineDecreaseIndent()

getCurrentIndentationLevel

public long getCurrentIndentationLevel()

setCurrentIndentationLevel

public void setCurrentIndentationLevel(long currentIndentationLevel)

append

public Html5RendererUtils.ScriptContext append(String str)

append

public Html5RendererUtils.ScriptContext append(char c)

append

public Html5RendererUtils.ScriptContext append(int i)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.