|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJavaScriptUtils
public class JavaScriptUtils
Provides tag specific support for the HTML tags so they can create JavaScript.
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(IScriptReporter scriptReporter)
|
String |
writeAnchorFormSubmitAction(String action,
String newAction)
|
String |
writeIdMap(IScriptReporter scriptRepoter,
String entries)
|
String |
writeNetuiNameFunctions(IScriptReporter scriptReporter)
|
String |
writeRollover(IScriptReporter scriptReporter)
|
static void |
writeScriptBlock(StringBuilder 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 Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaScriptUtils()
Method Detail |
---|
public String writeAnchorFormSubmit(IScriptReporter scriptReporter)
public String writeAnchorFormSubmitAction(String action, String newAction)
public static String getFocusScript(String formName, String fieldName)
public String getTagIdMapping(String tagId, String value)
public String writeRollover(IScriptReporter scriptReporter)
public String writeIdMap(IScriptReporter scriptRepoter, String entries)
public String writeNetuiNameFunctions(IScriptReporter scriptReporter)
public static void writeScriptBlock(StringBuilder results, String script)
results
- the StringBuilder that will have the <script>
tag written intoscript
- the JavaScript blockpublic static String getString(String aKey, Object[] args)
aKey
- The key for the message pattern in the bundle.args
- The args to use in the message format.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |