org.rythmengine
Class RythmEngine.RenderSettings

java.lang.Object
  extended by org.rythmengine.RythmEngine.RenderSettings
Enclosing class:
RythmEngine

public class RythmEngine.RenderSettings
extends Object

Define the render time settings, which is intialized each time a renderXX method get called


Method Summary
 RythmEngine clear()
          Clear the render time after render process done
 ICodeType codeType()
          Return thread local code type
 RythmEngine.RenderSettings init(ICodeType codeType)
          Init the render time by setting code type.
 RythmEngine.RenderSettings init(Locale locale)
          Init the render time by setting locale.
 RythmEngine.RenderSettings init(Map<String,Object> usrCtx)
          Init the render time by setting user context This method should called before calling render methods to setup the context of this render
 Locale locale()
          Return ThreadLocal locale.
 Map<String,Object> userContext()
          Return thread local user context map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public final RythmEngine.RenderSettings init(ICodeType codeType)
Init the render time by setting code type. This method should called before calling render methods to setup the context of this render

Parameters:
codeType -
Returns:
the render setting instance

init

public final RythmEngine.RenderSettings init(Locale locale)
Init the render time by setting locale. This method should called before calling render methods to setup the context of this render

Parameters:
locale -
Returns:
the render setting instance

init

public final RythmEngine.RenderSettings init(Map<String,Object> usrCtx)
Init the render time by setting user context This method should called before calling render methods to setup the context of this render

Parameters:
usrCtx -
Returns:
the render setting instance

locale

public final Locale locale()
Return ThreadLocal locale.

Returns:
locale setting for this render process

codeType

public final ICodeType codeType()
Return thread local code type

Returns:
code type setting for this render process

userContext

public final Map<String,Object> userContext()
Return thread local user context map

Returns:
the user context map

clear

public final RythmEngine clear()
Clear the render time after render process done

Returns:
this engine instance


Copyright © 2013. All Rights Reserved.