org.springframework.extensions.webscripts
Class ScriptMessage
java.lang.Object
org.springframework.extensions.webscripts.AbstractMessageHelper
org.springframework.extensions.webscripts.ScriptMessage
public final class ScriptMessage
- extends AbstractMessageHelper
Helper to resolve an I18N message for JS scripts.
- Author:
- Kevin Roast
Method Summary |
String |
get(String id)
Get an I18N message |
String |
get(String id,
org.mozilla.javascript.Scriptable args)
Get an I18N message with the given message args |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptMessage
public ScriptMessage(WebScript webscript)
- Constructor
- Parameters:
webscript
-
get
public String get(String id)
- Get an I18N message
- Parameters:
id
- Message Id
- Returns:
- resolved message
get
public String get(String id,
org.mozilla.javascript.Scriptable args)
- Get an I18N message with the given message args
- Parameters:
id
- Message Idargs
- Message args
- Returns:
- resolved message
Copyright © 2009 SpringSource, Inc. All Rights Reserved.