|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectScriptRequestState
public class ScriptRequestState
Provides tag specific support for the HTML tags so they can create JavaScript. There is a bundle which contains all of the Java Script. This bundle will be cached inside this class. THe properties file does not get i18n support.
| Field Summary | |
|---|---|
static String |
JAVASCRIPT_STATUS
This is the name of a request scoped attribute that contains the status of what JavaScript processing has taken place. |
| Method Summary | |
|---|---|
static ScriptRequestState |
getScriptRequestState(HttpServletRequest request)
This method will return the javaScriptUtils that is assocated
with this request. |
static String |
getString(String aKey,
Object[] args)
Returns the string specified by aKey from the errors.properties bundle. |
boolean |
isFeatureWritten(CoreScriptFeature feature)
|
String |
mapLegacyTagId(IScriptReporter scriptReporter,
String tagId,
String value)
This method will add a tagId and value to the ScriptRepoter TagId map. |
String |
mapTagId(IScriptReporter scriptReporter,
String tagId,
String realId,
String realName)
|
void |
writeFeature(IScriptReporter scriptReporter,
AbstractRenderAppender results,
CoreScriptFeature feature,
boolean singleInstance,
boolean inline,
Object[] args)
|
void |
writeFeature(IScriptReporter scriptReporter,
AbstractRenderAppender results,
String featureKey,
Object[] args)
|
String |
writeNetuiNameFunctions(IScriptReporter scriptReporter,
boolean writeLegacy,
boolean writeId,
boolean writeName)
|
static void |
writeScriptBlock(ServletRequest req,
AbstractRenderAppender 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 |
| Field Detail |
|---|
public static final String JAVASCRIPT_STATUS
| Method Detail |
|---|
public static ScriptRequestState getScriptRequestState(HttpServletRequest request)
javaScriptUtils that is assocated
with this request. If this doesn't exist, it will be created before it is
returned.
request - the HttpServletRequest associated with this request
ScriptRequestState assocated with the request
public 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.public boolean isFeatureWritten(CoreScriptFeature feature)
public void writeFeature(IScriptReporter scriptReporter,
AbstractRenderAppender results,
String featureKey,
Object[] args)
scriptReporter - results - featureKey - args -
public void writeFeature(IScriptReporter scriptReporter,
AbstractRenderAppender results,
CoreScriptFeature feature,
boolean singleInstance,
boolean inline,
Object[] args)
scriptReporter - results - feature - singleInstance - inline - args -
public String mapTagId(IScriptReporter scriptReporter,
String tagId,
String realId,
String realName)
scriptReporter - tagId - realId - realName -
public String mapLegacyTagId(IScriptReporter scriptReporter,
String tagId,
String value)
tagId - value -
public String writeNetuiNameFunctions(IScriptReporter scriptReporter,
boolean writeLegacy,
boolean writeId,
boolean writeName)
scriptReporter - writeLegacy - writeId - writeName -
public static void writeScriptBlock(ServletRequest req,
AbstractRenderAppender results,
String script)
results - the InternalStringBuilder that will have the <script>
tag written intoscript - the JavaScript block
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||