org.zkoss.zk.ui.http
Class FileWpdExtendlet
java.lang.Object
org.zkoss.zk.ui.http.WpdExtendlet
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileWpdExtendlet
public FileWpdExtendlet()
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.