Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces Core API 4.1.0.20110910-M2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ajax4jsf.javascript
Class JSLiteral

    java.lang.Object
      org.ajax4jsf.javascript.ScriptStringBase
          org.ajax4jsf.javascript.JSLiteral

All Implemented Interfaces:
  java.io.Serializable, ScriptString

    public class JSLiteral

extends ScriptStringBase
implements java.io.Serializable

Class provides creation of simple literal javascript to be set in ajax response data

Author:
  Andrey Markavtsov
See Also:
  Serialized Form

Field Summary
`static JSLiteral` | `EMPTY_HASH`
`static JSLiteral` | `EMPTY_LIST`

Fields inherited from class org.ajax4jsf.javascript.ScriptStringBase
`COLON, COMMA, DOT, EMPTY_STRING, EQUALS, FUNCTION, LEFT_CURLY_BRACKET, LEFT_ROUND_BRACKET, LEFT_SQUARE_BRACKET, RIGHT_CURLY_BRACKET, RIGHT_ROUND_BRACKET, RIGHT_SQUARE_BRACKET`

Constructor Summary
`JSLiteral(java.lang.String literal)` Constructor using literal parameter

Method Summary
`void` | `appendScript(java.lang.Appendable target)` Append JavaScript code to @link `Appendable`
`java.lang.String` | `getLiteral()`

Methods inherited from class org.ajax4jsf.javascript.ScriptStringBase
`appendScriptToStringBuilder, toScript, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### EMPTY_HASH

    public static final JSLiteral EMPTY_HASH

### EMPTY_LIST

    public static final JSLiteral EMPTY_LIST

Constructor Detail

### JSLiteral

    public JSLiteral(java.lang.String literal)

  Constructor using literal parameter

  Parameters:
    `literal` -

Method Detail

### appendScript

    public void appendScript(java.lang.Appendable target)
                      throws java.io.IOException

  Description copied from interface: `ScriptString`
  Append JavaScript code to @link `Appendable`

  Specified by:
    `appendScript` in interface `ScriptString`
  Throws:
    `java.io.IOException`

### getLiteral

    public java.lang.String getLiteral()

  Returns:
    the literal

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces Core API 4.1.0.20110910-M2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.