BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags
Class JavaScriptUtils

java.lang.Object
  extended by com.bea.wlw.netui.tags.JavaScriptUtils
All Implemented Interfaces:
Serializable

public class JavaScriptUtils
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
JavaScriptUtils()
           
 
Method Summary
static String getFocusScript(String formName, String fieldName)
          this will write out the form focus script block
static String getString(String aKey, Object[] args)
          Returns the string specified by aKey from the errors.properties bundle.
 String getTagIdMapping(String tagId, String value)
          This method will write out a tagId map entry for when there isn't a ScriptContainer defined.
 String writeAnchorFormSubmit(ScriptReporter scriptReporter)
           
 String writeAnchorFormSubmitAction(String action, String newAction)
           
 String writeIdMap(ScriptReporter scriptRepoter, String entries)
           
 String writeNetuiNameFunctions(ScriptReporter scriptReporter)
           
 String writeRollover(ScriptReporter scriptReporter)
           
static void writeScriptBlock(weblogic.utils.UnsyncStringBuffer results, String script)
          This is a static method that will write a consistent look/feel to the tags and comment markup that appears around the JavaScript.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptUtils

public JavaScriptUtils()
Method Detail

writeAnchorFormSubmit

public String writeAnchorFormSubmit(ScriptReporter scriptReporter)

writeAnchorFormSubmitAction

public String writeAnchorFormSubmitAction(String action,
                                          String newAction)

getFocusScript

public static String getFocusScript(String formName,
                                    String fieldName)
this will write out the form focus script block


getTagIdMapping

public String getTagIdMapping(String tagId,
                              String value)
This method will write out a tagId map entry for when there isn't a ScriptContainer defined.


writeRollover

public String writeRollover(ScriptReporter scriptReporter)

writeIdMap

public String writeIdMap(ScriptReporter scriptRepoter,
                         String entries)

writeNetuiNameFunctions

public String writeNetuiNameFunctions(ScriptReporter scriptReporter)

writeScriptBlock

public static void writeScriptBlock(weblogic.utils.UnsyncStringBuffer results,
                                    String script)
This is a static method that will write a consistent look/feel to the tags and comment markup that appears around the JavaScript.

Parameters:
results - the UnsyncStringBuffer that will have the <script> tag written into
script - the JavaScript block

getString

public static String getString(String aKey,
                               Object[] args)
Returns the string specified by aKey from the errors.properties bundle.

Parameters:
aKey - The key for the message pattern in the bundle.
args - The args to use in the message format.

BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.