org.zkoss.zk.ui.http
Class FileWpdExtendlet

java.lang.Object
  extended by org.zkoss.zk.ui.http.WpdExtendlet
      extended by org.zkoss.zk.ui.http.FileWpdExtendlet
All Implemented Interfaces:
Extendlet

public class FileWpdExtendlet
extends WpdExtendlet

Used by ZK Lighter to generate the JavaScript content of a WPD file. Unlike WpdExtendlet, it is based on the file system.

Author:
tomyeh

Field Summary
 
Fields inherited from interface org.zkoss.web.util.resource.Extendlet
ALLOW_DIRECT_INCLUDE
 
Constructor Summary
FileWpdExtendlet()
           
 
Method Summary
 boolean getFeature(int feature)
          Returns if the specified feature is supported.
 boolean isDebugJS()
          Returns whether to generate JS files that is easy to debug.
 byte[] service(java.io.File fl)
          Parses and return the content of the specified WPD file.
 void setDebugJS(boolean debugJS)
          Sets whether to generate JS files that is easy to debug.
 
Methods inherited from class org.zkoss.zk.ui.http.WpdExtendlet
init, service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWpdExtendlet

public FileWpdExtendlet()
Method Detail

service

public byte[] service(java.io.File fl)
               throws java.lang.Exception
Parses and return the content of the specified WPD file.

Throws:
java.lang.Exception

setDebugJS

public void setDebugJS(boolean debugJS)
Sets whether to generate JS files that is easy to debug.


isDebugJS

public boolean isDebugJS()
Returns whether to generate JS files that is easy to debug.


getFeature

public boolean getFeature(int feature)
Description copied from interface: Extendlet
Returns if the specified feature is supported.

Specified by:
getFeature in interface Extendlet


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