Deprecated API


Contents
Deprecated Fields
org.zkoss.zul.theme.Themes.BREEZE_DISPLAY
          since 6.5.2 
org.zkoss.zul.theme.Themes.BREEZE_NAME
          since 6.5.2 
org.zkoss.zul.theme.Themes.BREEZE_PRIORITY
          since 6.5.2 
 

Deprecated Methods
org.zkoss.zul.ListModelList.addSelection(E)
          As of release 6.0.0, replaced with AbstractListModel.addToSelection(E). 
org.zkoss.zul.ListModelSet.addSelection(E)
          As of release 6.0.0, replaced with AbstractListModel.addToSelection(E). 
org.zkoss.zul.ListModelArray.addSelection(E)
          As of release 6.0.0, replaced with AbstractListModel.addToSelection(E). 
org.zkoss.zul.SimpleListModel.addSelection(E)
          As of release 6.0.0, replaced with AbstractListModel.addToSelection(E). 
org.zkoss.zul.ListModelMap.addSelection(Map.Entry)
          As of release 6.0.0, replaced with AbstractListModel.addToSelection(E). 
org.zkoss.zul.DefaultTreeModel.addSelection(Object)
          As of release 6.0.0, replaced with AbstractTreeModel.addToSelection(E). 
org.zkoss.zul.impl.GroupsListModel.addSelection(Object)
          As of release 6.0.0, replaced with GroupsListModel.addToSelection(java.lang.Object). 
org.zkoss.zul.AbstractTreeModel.fireEvent(E, int, int, int)
          As of release 6.0.0, replaced with AbstractTreeModel.fireEvent(int, int[], int, int). 
org.zkoss.zul.Iframe.getAlign()
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Image.getAlign()
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Div.getAlign()
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Grid.getAlign()
          As of release 5.0, use CSS instead. 
org.zkoss.zul.Image.getBorder()
          As of release 5.0.5, use CSS instead. 
org.zkoss.zul.Window.getDefaultActionOnShow()
          As release of 5.0.0, replaced with HtmlBasedComponent.setAction(java.lang.String). 
org.zkoss.zul.Box.getHeights()
          As of release 5.0.0, use Cell instead. 
org.zkoss.zul.Image.getHspace()
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Fileupload.getMaxsize()
          As of release 5.0.0, replaced with Button.setUpload(String) 
org.zkoss.zul.Fileupload.getNumber()
          As of release 5.0.0, replaced with Button.setUpload(String) 
org.zkoss.zul.Listbox.getPreloadSize()
          As of release 5.0.8, use custom attributes (org.zkoss.zul.listbox.preloadSize) instead. Returns the number of items to preload when receiving the rendering request from the client.

Default: 50. (Since 6.0.1)

It is used only if live data (Listbox.setModel(ListModel) and not paging (Listbox.getPagingChild().

Note: if the "pre-load-size" attribute of component is specified, it's prior to the original value.(@since 3.0.4) 

org.zkoss.zul.Grid.getPreloadSize()
          As of release 5.0.8, use custom attributes (org.zkoss.zul.listbox.preloadSize) instead. Returns the number of rows to preload when receiving the rendering request from the client.

Default: 50. (since 6.0.1)

It is used only if live data (Grid.setModel(ListModel) and not paging (Grid.getPagingChild().

Note: if the "pre-load-size" attribute of component is specified, it's prior to the original value.(@since 3.0.4) 

org.zkoss.zul.Row.getSpans()
          As of release 5.0.0, use Cell instead. 
org.zkoss.zul.Treeitem.getSrc()
          As of release 3.5.0, it is redundant since it the same as Treeitem.getImage(). 
org.zkoss.zul.Listitem.getSrc()
          As of release 3.5.0, it is redundant since it is the same Listitem.getImage(). 
org.zkoss.zul.impl.LabelImageElement.getSrc()
          As of release 3.5.0, it is redundant since it is the same as LabelImageElement.getImage() 
org.zkoss.zul.Calendar.getTimeZone()
          As of release 5.0.5, it is meaningless to set time zone for a calendar. 
org.zkoss.zul.Tree.getTreeitemRenderer()
          As of release 5.0.6, replaced with Tree.getItemRenderer(). /** Returns the renderer to render each item, or null if the default renderer is used. 
org.zkoss.zul.Script.getType()
          As of release 5.0.0, it is meaningless since text/javascript is always assumed. 
org.zkoss.zul.Image.getVspace()
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Box.getWidths()
          As of release 5.0.0, use Cell instead. 
org.zkoss.zul.Treeitem.indexOf()
          As of release 5.0.9, replaced with Treeitem.getIndex(). 
org.zkoss.zul.Flash.isAutoPlay()
          As of release 3.6.1, use Flash.isAutoplay() instead. 
org.zkoss.zul.Captcha.isBorder()
          As of release 5.0.4, use Captcha.isFrame() instead. 
org.zkoss.zul.SimpleGroupsModel.isClose(int)
          As of release 6.0.0, replace with SimpleGroupsModel.isGroupOpened(int) 
org.zkoss.zul.GroupsModelArray.isClose(int)
          As of release 6.0.0, replace with GroupsModelArray.isGroupOpened(int) 
org.zkoss.zul.Datebox.isCompact()
          As of release 5.0.0, it is no longer supported. 
org.zkoss.zul.Style.isDynamic()
          As of release 5.0.0, it is decided automatically. 
org.zkoss.zul.Listbox.isFixedLayout()
          since 5.0.0, use !MeshElement.isSizedByContent() instead 
org.zkoss.zul.Grid.isFixedLayout()
          since 5.0.0, use !MeshElement.isSizedByContent() instead 
org.zkoss.zul.Tree.isFixedLayout()
          since 5.0.0, use !MeshElement.isSizedByContent() instead 
org.zkoss.zul.LayoutRegion.isFlex()
          As of release 6.0.2, use HtmlBasedComponent.getHflex() and HtmlBasedComponent.getVflex() on child component instead

Default: false. 

org.zkoss.zul.Panel.isFramable()
          As of release 5.0.6, replaced with Panel.getBorder(). Returns whether to render the panel with custom rounded borders.

Default: false. 

org.zkoss.zul.Label.isHyphen()
          As of release 5.0.0, use CSS instead. 
org.zkoss.zul.Groupbox.isLegend()
          As of release 6.0, legend no longer used in groupbox. 
org.zkoss.zul.Fileupload.isNative()
          As of release 5.0.0, replaced with Button.setUpload(String) 
org.zkoss.zul.DefaultTreeModel.isOpen(Object)
          As of release 6.0.0, replaced with DefaultTreeModel.isObjectOpened(java.lang.Object). 
org.zkoss.zul.SimpleListModel.objectToString(Object)
          As of release 5.0.4, replaced with SimpleListModel.inSubModel(java.lang.Object, java.lang.Object). 
org.zkoss.zul.Listheader.onSort()
          As of release 6.5.0, use or override Listheader.onSort(SortEvent) instead. 
org.zkoss.zul.Column.onSort()
          As of release 5.0.8, use or override Column.onSort(SortEvent) instead. 
org.zkoss.zul.ListModelMap.removeSelection(Object)
          As of release 6.0.0, replaced with AbstractListModel.removeFromSelection(java.lang.Object). 
org.zkoss.zul.ListModelList.removeSelection(Object)
          As of release 6.0.0, replaced with AbstractListModel.removeFromSelection(java.lang.Object). 
org.zkoss.zul.DefaultTreeModel.removeSelection(Object)
          As of release 6.0.0, replaced with DefaultTreeModel.removeFromSelection(java.lang.Object). 
org.zkoss.zul.ListModelSet.removeSelection(Object)
          As of release 6.0.0, replaced with AbstractListModel.removeFromSelection(java.lang.Object). 
org.zkoss.zul.ListModelArray.removeSelection(Object)
          As of release 6.0.0, replaced with AbstractListModel.removeFromSelection(java.lang.Object). 
org.zkoss.zul.SimpleListModel.removeSelection(Object)
          As of release 6.0.0, replaced with AbstractListModel.removeFromSelection(java.lang.Object). 
org.zkoss.zul.impl.GroupsListModel.removeSelection(Object)
          As of release 6.0.0, replaced with GroupsListModel.removeFromSelection(java.lang.Object). 
org.zkoss.zul.Iframe.setAlign(String)
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Image.setAlign(String)
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Div.setAlign(String)
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Grid.setAlign(String)
          As of release 5.0, use CSS instead. 
org.zkoss.zul.Flash.setAutoPlay(boolean)
          As of release 3.6.1, use Flash.setAutoplay(boolean) instead. 
org.zkoss.zul.Captcha.setBorder(boolean)
          As of release 5.0.4, use Captcha.setFrame(boolean) instead. 
org.zkoss.zul.Image.setBorder(String)
          As of release 5.0.5, use CSS instead. 
org.zkoss.zul.SimpleGroupsModel.setClose(int, boolean)
          As of release 6.0.0, replace with SimpleGroupsModel.addOpenGroup(int) and SimpleGroupsModel.removeOpenGroup(int). 
org.zkoss.zul.GroupsModelArray.setClose(int, boolean)
          As of release 6.0.0, replace with GroupsModelArray.addOpenGroup(int) and GroupsModelArray.removeOpenGroup(int). 
org.zkoss.zul.Datebox.setCompact(boolean)
          As of release 5.0.0, it is no longer supported. 
org.zkoss.zul.Window.setDefaultActionOnShow(String)
          As release of 5.0.0, replaced with HtmlBasedComponent.setAction(java.lang.String). 
org.zkoss.zul.Style.setDynamic(boolean)
          As of release 5.0.0, it is decided automatically. 
org.zkoss.zul.Listbox.setFixedLayout(boolean)
          since 5.0.0, use MeshElement.setSizedByContent(boolean)(!fixedLayout) instead 
org.zkoss.zul.Grid.setFixedLayout(boolean)
          since 5.0.0, use MeshElement.setSizedByContent(boolean)(!fixedLayout) instead 
org.zkoss.zul.Tree.setFixedLayout(boolean)
          since 5.0.0, use MeshElement.setSizedByContent(boolean)(!fixedLayout) instead 
org.zkoss.zul.LayoutRegion.setFlex(boolean)
          As of release 6.0.2, use HtmlBasedComponent.setHflex(String) and HtmlBasedComponent.setVflex(String) on child component instead 
org.zkoss.zul.Panel.setFramable(boolean)
          As of release 5.0.6, replaced with Panel.setBorder(java.lang.String). Sets whether to render the panel with custom rounded borders.

Default: false. 

org.zkoss.zul.Box.setHeights(String)
          As of release 5.0.0, use Cell instead. 
org.zkoss.zul.Rows.setHflex(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Row.setHflex(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Listfoot.setHflex(String)
          as of release 6.0.0. To control the size of Listbox related components, please refer to Listbox and Listheader instead. 
org.zkoss.zul.Treecols.setHflex(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treeitem.setHflex(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treechildren.setHflex(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treecell.setHflex(String)
          as of release 6.0.0. To control the hflex of Treecell, please use HtmlBasedComponent.setHflex(String) instead. 
org.zkoss.zul.Listcell.setHflex(String)
          as of release 6.0.0. To control the hflex of Listcell, please use HtmlBasedComponent.setHflex(String) instead. 
org.zkoss.zul.Listitem.setHflex(String)
          as of release 6.0.0. To control the size of Listbox related components, please refer to Listbox and Listheader instead. 
org.zkoss.zul.Listhead.setHflex(String)
          as of release 6.0.0. To control the size of Listbox related components, please refer to Listbox and Listheader instead. 
org.zkoss.zul.Treerow.setHflex(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treefoot.setHflex(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Foot.setHflex(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Columns.setHflex(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Image.setHspace(String)
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Label.setHyphen(boolean)
          As of release 5.0.0, use CSS instead.

Use the CSS style called "word-wrap: word-break" to have similar effect. Unfortunately, word-wrap is not applicable to FF and Opera(it works fine with IE and Safari). 

org.zkoss.zul.impl.MessageboxDlg.Button.setIdentity(int)
          As of release 6.0.0, buttons are created in Java 
org.zkoss.zul.Groupbox.setLegend(boolean)
          As of release 6.0, legend no longer used in groupbox. 
org.zkoss.zul.Fileupload.setMaxsize(int)
          As of release 5.0.0, replaced with Button.setUpload(String) 
org.zkoss.zul.Fileupload.setNative(boolean)
          As of release 5.0.0, replaced with Button.setUpload(String) 
org.zkoss.zul.Fileupload.setNumber(int)
          As of release 5.0.0, replaced with Button.setUpload(String) 
org.zkoss.zul.DefaultTreeModel.setOpen(TreeNode, boolean)
          As of release 6.0.0, replaced with AbstractTreeModel.addOpenObject(E) and DefaultTreeModel.removeOpenObject(java.lang.Object). 
org.zkoss.zul.Listbox.setPreloadSize(int)
          As of release 5.0.8, use custom attributes (org.zkoss.zul.listbox.preloadSize) instead. Sets the number of items to preload when receiving the rendering request from the client.

It is used only if live data (Listbox.setModel(ListModel) and not paging (Listbox.getPagingChild(). 

org.zkoss.zul.Grid.setPreloadSize(int)
          As of release 5.0.8, use custom attributes (org.zkoss.zul.listbox.preloadSize) instead. Sets the number of rows to preload when receiving the rendering request from the client.

It is used only if live data (Grid.setModel(ListModel) and not paging (Grid.getPagingChild(). 

org.zkoss.zul.Row.setSpans(String)
          As of release 5.0.0, use Cell instead. 
org.zkoss.zul.Treeitem.setSrc(String)
          As of release 3.5.0, it is redundant since it the same as Treeitem.setImage(java.lang.String). 
org.zkoss.zul.Listitem.setSrc(String)
          As of release 3.5.0, it is redundant since it is the same Listitem.getSrc(). 
org.zkoss.zul.impl.LabelImageElement.setSrc(String)
          As of release 3.5.0, it is redundant since it is the same as LabelImageElement.setImage(java.lang.String) 
org.zkoss.zul.Tree.setTreeitemRenderer(TreeitemRenderer)
          As of release 5.0.6, replaced with Tree.setItemRenderer(org.zkoss.zul.TreeitemRenderer). Sets the renderer which is used to render each item if Tree.getModel() is not null.

Note: changing a render will not cause the tree to re-render. If you want it to re-render, you could assign the same model again (i.e., setModel(getModel())), or fire an TreeDataEvent event. 

org.zkoss.zul.Script.setType(String)
          As of release 5.0.0, it is meaningless since text/javascript is always assumed. 
org.zkoss.zul.Image.setVspace(String)
          as of release 6.0.0, use CSS instead. 
org.zkoss.zul.Rows.setWidth(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Row.setWidth(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Listfoot.setWidth(String)
          as of release 6.0.0. To control the size of Listbox related components, please refer to Listbox and Listheader instead. 
org.zkoss.zul.Treecols.setWidth(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treeitem.setWidth(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treechildren.setWidth(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treecell.setWidth(String)
          as of release 6.0.0. To control the width of Treecell, please use HtmlBasedComponent.setWidth(String) instead. 
org.zkoss.zul.Listitem.setWidth(String)
          as of release 6.0.0. To control the size of Listbox related components, please refer to Listbox and Listheader instead. 
org.zkoss.zul.Listhead.setWidth(String)
          as of release 6.0.0. To control the size of Listbox related components, please refer to Listbox and Listheader instead. 
org.zkoss.zul.Treerow.setWidth(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Treefoot.setWidth(String)
          as of release 6.0.0. To control the size of Tree related components, please refer to Tree and Treecol instead. 
org.zkoss.zul.Foot.setWidth(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Columns.setWidth(String)
          as of release 6.0.0. To control the size of Grid related components, please refer to Grid and Column instead. 
org.zkoss.zul.Box.setWidths(String)
          As of release 5.0.0, use Cell instead. 
org.zkoss.zul.SimpleGroupsModel.sortGroupData(Object, D[], Comparator, boolean, int)
          As of release 6.0.1, replaced with SimpleGroupsModel.sortGroupData(Object, List, Comparator, boolean, int). 
 

Deprecated Constructors
org.zkoss.zul.GroupsModelArray(List, Comparator)
          As of release 6.0.1, there is no way to instantiate the array with the correct type. 
org.zkoss.zul.GroupsModelArray(List, Comparator, int)
          As of release 6.0.1, there is no way to instantiate the array with the correct type. 
 



Copyright © 2014. All rights reserved.