|
ICEfaces ACE Components 3.3.0 Java API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.icefaces.ace.util.ScriptWriter
public class ScriptWriter
A utility class used to easily insert a script element into the markup. It allows the writing of the script in one call or writing it out gradually.
Constructor Summary | |
---|---|
ScriptWriter(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
|
Method Summary | |
---|---|
void |
endScript()
|
static ScriptWriter |
insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Write the script markup and then gradually write the script code by calling the 'write' write methods on the ScriptWriter instance. |
static void |
insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String script)
Write script markup and script code in one method call. |
static void |
insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String script,
java.lang.String id)
Write script markup and script code in one method call. |
void |
startScript()
|
void |
write(boolean val)
|
void |
write(char val)
|
void |
write(double val)
|
void |
write(float val)
|
void |
write(int val)
|
void |
write(long val)
|
void |
write(java.lang.Object val)
|
void |
write(java.lang.String val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptWriter(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
Method Detail |
---|
public static void insertScript(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String script) throws java.io.IOException
context
- the curent FacesContextcomponent
- the component making the callscript
- the code
java.io.IOException
public static void insertScript(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String script, java.lang.String id) throws java.io.IOException
context
- the curent FacesContextcomponent
- the component making the callscript
- the codeid
- the id of the rendered span
java.io.IOException
public static ScriptWriter insertScript(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
context
- the curent FacesContextcomponent
- the component making the call
java.io.IOException
public void startScript() throws java.io.IOException
java.io.IOException
public void write(java.lang.String val) throws java.io.IOException
java.io.IOException
public void write(int val) throws java.io.IOException
java.io.IOException
public void write(long val) throws java.io.IOException
java.io.IOException
public void write(double val) throws java.io.IOException
java.io.IOException
public void write(float val) throws java.io.IOException
java.io.IOException
public void write(boolean val) throws java.io.IOException
java.io.IOException
public void write(char val) throws java.io.IOException
java.io.IOException
public void write(java.lang.Object val) throws java.io.IOException
java.io.IOException
public void endScript() throws java.io.IOException
java.io.IOException
|
ICEfaces ACE Components 3.3.0 Java API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |