org.zkoss.zk.fn
Class ZkFns

java.lang.Object
  extended by org.zkoss.zk.fn.ZkFns

public class ZkFns
extends java.lang.Object

Utilities for using XEL in ZUL.

For JSP pages, use JspFns instead.
For DSP pages, use DspFns instead.

Author:
tomyeh

Constructor Summary
protected ZkFns()
           
 
Method Summary
static java.lang.String encodeWithZK(java.lang.String name)
          Returns the string encoded with ZK.
static java.lang.String getBuild()
          Returns the build identifier, such as 2007121316.
static java.lang.String getEdition()
          Returns the edition, such as EE, PE and CE.
static java.lang.String getVersion()
          Returns the ZK version, such as "1.1.0" and "2.0.0".
static boolean isEditionValid()
          Returns the edition whether valid or invalid.
static java.lang.String toAbsoluteURI(java.lang.String uri)
          Converts the specified URI to absolute if not included by another page.
static java.lang.String toAbsoluteURI(java.lang.String uri, boolean skipInclude)
          Converts the specified URI to absolute if necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZkFns

protected ZkFns()
Method Detail

toAbsoluteURI

public static java.lang.String toAbsoluteURI(java.lang.String uri,
                                             boolean skipInclude)
Converts the specified URI to absolute if necessary. Refer to Execution.toAbsoluteURI(java.lang.String, boolean).

Parameters:
skipInclude - whether not to convert to an absolute URI if the current page is included by another page. When use the include directive, skipInclude shall be true.

toAbsoluteURI

public static java.lang.String toAbsoluteURI(java.lang.String uri)
Converts the specified URI to absolute if not included by another page. It is a shortcut of toAbsoluteURI(String, boolean) with skipInclude is true.


getBuild

public static java.lang.String getBuild()
Returns the build identifier, such as 2007121316.

Each time ZK is built, a different build identifier is assigned.

Since:
6.0.3

getVersion

public static java.lang.String getVersion()
Returns the ZK version, such as "1.1.0" and "2.0.0".

Since:
6.0.3

getEdition

public static java.lang.String getEdition()
Returns the edition, such as EE, PE and CE. Notice that prior to 5.0.1, the return value is one of Enterprise, Professional and Standard.

Since:
6.0.3

isEditionValid

public static boolean isEditionValid()
Returns the edition whether valid or invalid.

Since:
6.5.5

encodeWithZK

public static java.lang.String encodeWithZK(java.lang.String name)
Returns the string encoded with ZK.

Since:
6.0.3


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo