| java.lang.Object com.flexive.faces.javascript.FxJavascriptUtils
FxJavascriptUtils | public class FxJavascriptUtils (Code) | | Utility functions for handling/creating javascript code.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 1 $ |
Method Summary | |
public static void | beginJavascript(Writer out) Start a javascript block. | public static void | endJavascript(Writer out) End a javascript block. | public static String | getWidgetName(String fqn) Converts the given fully qualified widget name (e.g. | public static void | writeDojoRequires(Writer out, String... packages) Write dojo "require" calls for all requested components.
Parameters: out - the output writer Parameters: packages - array of packages to be written (e.g. |
beginJavascript | public static void beginJavascript(Writer out) throws IOException(Code) | | Start a javascript block.
Parameters: out - the output writer throws: IOException - if the code could not be written |
endJavascript | public static void endJavascript(Writer out) throws IOException(Code) | | End a javascript block.
Parameters: out - the output writer throws: IOException - if the code could not be written |
getWidgetName | public static String getWidgetName(String fqn)(Code) | | Converts the given fully qualified widget name (e.g. dojo.widget.Menu2) to
the widget name used createWidget. The package prefix "flexive.widget" is converted
to the namespace prefix "flexive:".
Parameters: fqn - a fully qualified widget name, e.g. "dojo.widget.Menu2" the widget name for dojo.widget.createWidget |
writeDojoRequires | public static void writeDojoRequires(Writer out, String... packages) throws IOException(Code) | | Write dojo "require" calls for all requested components.
Parameters: out - the output writer Parameters: packages - array of packages to be written (e.g. "dojo.widget.*") throws: IOException - if the code could not be written |
|
|