Deprecated API


Contents
Deprecated Interfaces
org.zkoss.util.ListX
          As of release 5.0.8, it is not used and no longer maintained. The extended list interface. It provides methods to access the entry of each node in the list.

Any class implementing this interface guarantees the binding between the entry and the element never changes even after removed. 

org.zkoss.net.URLEncoder
          As of release 5.0.5, for simple ZK core. A plugin to allow developer to customize the encoding of URL.

By default, java.net.URLEncoder.encode(s, "UTF-8") is used. If it is not what you want, you can customize it by implementing this interface and specify it in the library property called org.zkoss.net.URLEncoder. 

 

Deprecated Classes
org.zkoss.util.CheckableTreeArray
          As of release 5.0.8, it is not used and no longer maintained. The checkable TreeArray. It extends TreeArray such that deriving classes could add validation when an element is added, removed or set. It is also useful to maintain the modification flag. 
org.zkoss.util.TreeArray
          As of release 5.0.8, it is not used and no longer maintained. Red-black tree based array implementation of List interface. Unlike LinkedList, the random access by index is as fast as log(n). Unlike ArrayList, the insertion is as fast as log(n). It is a great compromise between random and sequential access.

In additions, it extends the features by also implementing ListX.

The deriving class might override newEntry if it also extends RbEntry; override insert(RbEntry, RbEntry) for adding element; override delete(RbEntry) for removing element; clear() for clearing the whole list.

Also, RbEntry.setElement might be overridden if the deriving class wants to do something when the set method is called.

The iterator method is designed such that next() will proceed correctly even if getElement() throws an exception.

The original algorithm is invented by Henri Chen. 

 

Deprecated Methods
org.zkoss.lang.Strings.appendEscape(StringBuffer, String, String)
          As of release 5.0.0, use Strings.escape(StringBuffer,CharSequence,String) instead. 
org.zkoss.idom.Item.clearModified(boolean)
          As of release 5.0.8, it does nothing. 
org.zkoss.idom.impl.AbstractItem.clearModified(boolean)
          As of release 5.0.8, it does nothing. 
org.zkoss.idom.Item.clone(boolean)
          As of release 5.0.8, replaced with Item.clone(). 
org.zkoss.idom.impl.AbstractItem.clone(boolean)
          As of release 5.0.8, replaced with AbstractItem.clone(). 
org.zkoss.net.URLs.encode(String)
          As of release 5.0.5, for simple ZK core. Translates a string into x-www-form-urlencoded format.

By default, java.net.URLEncoder.encode(s, "UTF-8") is used to translate the string. However, you can customize the translation by implementing the URLEncoder interface, and and specify the class in the library property called org.zkoss.net.URLEncoder. 

org.zkoss.lang.reflect.Fields.getField(Object, String)
          As of release 3.0.6, replaced with Fields.getByCompound(java.lang.Object, java.lang.String). 
org.zkoss.idom.Element.isAttributeModificationAware()
          As of release 5.0.8, it always returns false. 
org.zkoss.idom.Attributable.isAttributeModificationAware()
          As of release 5.0.8, it always returns false. 
org.zkoss.idom.Item.isModified()
          As of release 5.0.8, it always returns false. 
org.zkoss.idom.impl.AbstractItem.isModified()
          As of release 5.0.8, it always returns false. 
org.zkoss.idom.Item.isReadonly()
          As of release 5.0.8, it always returns false. 
org.zkoss.idom.impl.AbstractItem.isReadonly()
          As of release 5.0.8, it always returns false. 
org.zkoss.text.DateFormats.parse(String)
          As of release 5.0.5, replaced with DateFormats.parse(String, boolean). Unlike DateFormats.parse(String, boolean), it detects the format by searching the existence of colon. However, it is not safe so DateFormats.parse(String, boolean) shall be used. 
org.zkoss.lang.Threads.pause(int)
          As of release 3.0.0, replaced by Threads.sleep(int) 
org.zkoss.idom.Element.setAttributeModificationAware(boolean)
          As of release 5.0.8, it always returns false. 
org.zkoss.idom.Attributable.setAttributeModificationAware(boolean)
          As of release 5.0.8, it does nothing. 
org.zkoss.lang.reflect.Fields.setField(Object, String, Object)
          As of release 3.0.6, replaced with Fields.setByCompound(Object, String, Object, boolean). 
org.zkoss.lang.reflect.Fields.setField(Object, String, Object, boolean)
          As of release 3.0.6, replaced with Fields.setByCompound(Object, String, Object, boolean). 
org.zkoss.idom.Item.setModified()
          As of release 5.0.8, it always returns false. 
org.zkoss.idom.impl.AbstractItem.setModified()
          As of release 5.0.8, it does nothing. 
org.zkoss.idom.Item.setReadonly(boolean)
          As of release 5.0.8, it does nothing. 
org.zkoss.idom.impl.AbstractItem.setReadonly(boolean)
          As of release 5.0.8, it does nothing. 
 

Deprecated Constructors
org.zkoss.util.MultiCache(int, int)
          As of release 5.0.0, replaced with MultiCache.MultiCache(int) 
 



Copyright © 2011. All Rights Reserved.