|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScriptProcessor
Defines methods needed by a IScript
to execute.
Body
Method Summary | |
---|---|
void |
addBodyScript(IComponent target,
String script)
Adds scripting code to the main body. |
void |
addBodyScript(String script)
Deprecated. To be removed sometime after 4.1. |
void |
addExternalScript(IComponent target,
org.apache.hivemind.Resource resource)
Adds an external script. |
void |
addExternalScript(org.apache.hivemind.Resource resource)
Deprecated. To be removed sometime after 4.1 |
void |
addInitializationScript(IComponent target,
String script)
Adds initialization script. |
void |
addInitializationScript(String script)
Deprecated. To be removed sometime after 4.1. |
void |
addScriptAfterInitialization(IComponent target,
String script)
Works in the same way as addInitializationScript(IComponent, String) - except this
method causes the script being added to appear after all of the script content written out
from the normal initialization script processing happens. |
String |
getUniqueString(String baseValue)
Ensures that the given string is unique. |
boolean |
isBodyScriptAllowed(IComponent target)
Determines if the specified component should have its javascript body added to the response. |
boolean |
isExternalScriptAllowed(IComponent target)
Determines if the specified component should have its javascript external resource scripts added to the response. |
boolean |
isInitializationScriptAllowed(IComponent target)
Determines if the specified component should have its javascript initialization added to the response. |
Method Detail |
---|
void addBodyScript(String script)
Body
component will write the body script contents
just inside the <body>
tag.
#addBodyScript(IComponent, String)}
void addBodyScript(IComponent target, String script)
Body
component will write the body script contents
just inside the <body>
tag.
target
- The component this script is being added for.script
- The script to add to the body response.void addInitializationScript(String script)
</body>
tag).
#addInitializationScript(IComponent, String)}
void addInitializationScript(IComponent target, String script)
</body>
tag).
target
- The component the script is being added for.script
- The script to add.void addScriptAfterInitialization(IComponent target, String script)
addInitializationScript(IComponent, String)
- except this
method causes the script being added to appear after all of the script content written out
from the normal initialization script processing happens. This is useful if you have some initialization
script logic that absolutely must happen at the very end of the rest of things.
target
- The component the script is being added for.script
- The script to add.#addInitializationScript(IComponent, String)}.
void addExternalScript(org.apache.hivemind.Resource resource)
#addExternalScript(IComponent, Resource)}
void addExternalScript(IComponent target, org.apache.hivemind.Resource resource)
target
- The component the script is being added for.resource
- The external script to add.boolean isBodyScriptAllowed(IComponent target)
target
- The component to allow/disallow body script content from.
boolean isInitializationScriptAllowed(IComponent target)
target
- The component to allow/disallow initialization script content from.
boolean isExternalScriptAllowed(IComponent target)
target
- The component to check for inclusion/exclusion.
String getUniqueString(String baseValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |