net.sf.jportlet.service.velocity
Class Runtime

java.lang.Object
  |
  +--net.sf.jportlet.service.velocity.Runtime

public class Runtime
extends java.lang.Object

Helper for Velocity templates.

Author:
Herve Tchepannou

Constructor Summary
Runtime()
           
 
Method Summary
 java.util.Collection getLocales()
          Return all the available java.util.Locale
 Portlet.Mode getMode(java.lang.String name)
          Return a Portlet.Mode by its name
 java.lang.String getReturnUriKey()
          Return the key of the returnURI
 java.lang.String getText(java.lang.String key, java.util.Locale locale)
          Returns a localize text from the jPortlet ResourceBundle
 PortletWindow.State getWindowState(java.lang.String name)
          Return a PortletWindow.State by its name
 java.lang.String htmlEncode(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Runtime

public Runtime()
Method Detail

getMode

public Portlet.Mode getMode(java.lang.String name)
Return a Portlet.Mode by its name

Returns:
Portlet.Mode

getReturnUriKey

public java.lang.String getReturnUriKey()
Return the key of the returnURI

Returns:
String

getText

public java.lang.String getText(java.lang.String key,
                                java.util.Locale locale)
Returns a localize text from the jPortlet ResourceBundle

Parameters:
key - key of the text requester
locale - target locale
Returns:
String

getWindowState

public PortletWindow.State getWindowState(java.lang.String name)
Return a PortletWindow.State by its name

Returns:
Portlet.Mode

getLocales

public java.util.Collection getLocales()
Return all the available java.util.Locale

Returns:

htmlEncode

public java.lang.String htmlEncode(java.lang.String str)
See Also:
HTMLHelper#encode(java.lang..String)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.