org.zkoss.zk.ui.http
Class FileWcsExtendlet

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

public class FileWcsExtendlet
extends WcsExtendlet

Used by ZK Lighter to generate the CSS content of a WCS file. Unlike WcsExtendlet, it is based on the file system.

Since:
5.0.0
Author:
tomyeh

Nested Class Summary
static interface FileWcsExtendlet.Includer
          Work with service(java.io.File, org.zkoss.zk.ui.http.FileWcsExtendlet.Includer) to inlcude a resource.
 
Field Summary
 
Fields inherited from interface org.zkoss.web.util.resource.Extendlet
ALLOW_DIRECT_INCLUDE
 
Constructor Summary
FileWcsExtendlet()
           
 
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.
 java.lang.String service(java.io.File fl, FileWcsExtendlet.Includer includer)
          Parses and return the content of the specified WCS 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.WcsExtendlet
init, service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWcsExtendlet

public FileWcsExtendlet()
Method Detail

service

public java.lang.String service(java.io.File fl,
                                FileWcsExtendlet.Includer includer)
                         throws java.lang.Exception
Parses and return the content of the specified WCS 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