Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>

<!-- lang-addon.xml
	Purpose:
		A extention with default org.zkoss.zkplus.databind.DataBinder annotation.
	Description:
		
	Note:
	 1. Properties defined here are assigned to all instances of the
		specified definition, no matter it is created by ZUML or by program.
	History:
		Wed Dec 06 11:48:24     2006, Created by Henri Chen

Copyright (C) 2006 Potix Corporation. All Rights Reserved.
-->
<language-addon>
	<!-- The name of this addon. It must be unique -->
	<addon-name>databind</addon-name>
	<!-- Specifies what other addon this depends
	<depends></depends>
	-->

	<!-- Which language this addon will be added to -->
	<language-name>xul/html</language-name>

	<version>
		<version-class>org.zkoss.zkplus.Version</version-class>
		<version-uid>3.5.0</version-uid>
		<zk-version>3.5.0</zk-version><!-- or later -->
	</version>

	<zscript language="Java">
	import org.zkoss.zkplus.databind.*;
	</zscript>
	<zscript language="JavaScript">
	importPackage(Packages.org.zkoss.zkplus.databind);
	</zscript>
	<zscript language="Groovy" each-time="true">
	import org.zkoss.zkplus.databind.*
	</zscript>
	<zscript language="Ruby">
	module Java
		include_package 'org.zkoss.zkplus.databind'
	end
	</zscript>

	<!--component>
		<component-name>area</component-name>
		<extends>area</extends>
	</component-->
	<!--component>
		<component-name>audio</component-name>
		<extends>audio</extends>
	</component-->
	<component>
		<component-name>bandbox</component-name>
		<extends>bandbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>bandpopup</component-name>
		<extends>bandpopup</extends>
	</component-->
	<!--component>
		<component-name>button</component-name>
		<extends>button</extends>
	</component-->
	<!--component>
		<component-name>box</component-name>
		<extends>box</extends>
	</component-->
	<component>
		<component-name>calendar</component-name>
		<extends>calendar</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>caption</component-name>
		<extends>caption</extends>
	</component-->
	<!--component>
		<component-name>chart</component-name>
		<extends>chart</extends>
	</component-->
	<component>
		<component-name>checkbox</component-name>
		<extends>checkbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>checked</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onCheck</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>column</component-name>
		<extends>column</extends>
	</component-->
	<!--component>
		<component-name>columns</component-name>
		<extends>columns</extends>
	</component-->
	<component>
		<component-name>combobox</component-name>
		<extends>combobox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>model</property-name>
			<attribute>
				<attribute-name>converter</attribute-name>
				<attribute-value>org.zkoss.zkplus.databind.ListModelConverter</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedItem</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onSelect</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>load-when</attribute-name>
				<attribute-value>self.onInitRenderLater</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>converter</attribute-name>
				<attribute-value>org.zkoss.zkplus.databind.SelectedComboitemConverter</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedIndex</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onSelect</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>load-when</attribute-name>
				<attribute-value>self.onInitRenderLater</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>comboitem</component-name>
		<extends>comboitem</extends>
	</component-->
	<component>
		<component-name>datebox</component-name>
		<extends>datebox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<component>
		<component-name>decimalbox</component-name>
		<extends>decimalbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>div</component-name>
		<extends>div</extends>
	</component-->
	<component>
		<component-name>doublebox</component-name>
		<extends>doublebox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<component>
		<component-name>grid</component-name>
		<extends>grid</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>model</property-name>
			<attribute>
				<attribute-name>converter</attribute-name>
				<attribute-value>org.zkoss.zkplus.databind.ListModelConverter</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>groupbox</component-name>
		<extends>groupbox</extends>
	</component-->
	<!--component>
		<component-name>hbox</component-name>
		<extends>hbox</extends>
	</component-->
	<!--component>
		<component-name>html</component-name>
		<extends>html</extends>
	</component-->
	<!--component>
		<component-name>iframe</component-name>
		<extends>iframe</extends>
	</component-->
	<!--component>
		<component-name>image</component-name>
		<extends>image</extends>
	</component-->
	<!--component>
		<component-name>imagemap</component-name>
		<extends>imagemap</extends>
	</component-->
	<component>
		<component-name>intbox</component-name>
		<extends>intbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>label</component-name>
		<extends>label</extends>
	</component-->
	<component>
		<component-name>listbox</component-name>
		<extends>listbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>model</property-name>
			<attribute>
				<attribute-name>converter</attribute-name>
				<attribute-value>org.zkoss.zkplus.databind.ListModelConverter</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedItem</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onSelect</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>load-when</attribute-name>
				<attribute-value>self.onInitRender</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>converter</attribute-name>
				<attribute-value>org.zkoss.zkplus.databind.SelectedItemConverter</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedIndex</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onSelect</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>load-when</attribute-name>
				<attribute-value>self.onInitRender</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>listcell</component-name>
		<extends>listcell</extends>
	</component-->
	<!--component>
		<component-name>listfooter</component-name>
		<extends>listfooter</extends>
	</component-->
	<!--component>
		<component-name>listfoot</component-name>
		<extends>listfoot</extends>
	</component-->
	<!--component>
		<component-name>listheader</component-name>
		<extends>listheader</extends>
	</component-->
	<!--component>
		<component-name>listhead</component-name>
		<extends>listhead</extends>
	</component-->
	<!--component>
		<component-name>listitem</component-name>
		<extends>listitem</extends>
	</component-->
	<component>
		<component-name>longbox</component-name>
		<extends>longbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>menu</component-name>
		<extends>menu</extends>
	</component-->
	<!--component>
		<component-name>menubar</component-name>
		<extends>menubar</extends>
	</component-->
	<!--component>
		<component-name>menuitem</component-name>
		<extends>menuitem</extends>
	</component-->
	<!--component>
		<component-name>menupopup</component-name>
		<extends>menupopup</extends>
	</component-->
	<!--component>
		<component-name>menuseparator</component-name>
		<extends>menuseparator</extends>
	</component-->
	<!--component>
		<component-name>paging</component-name>
		<extends>paging</extends>
	</component-->
	<!--component>
		<component-name>popup</component-name>
		<extends>popup</extends>
	</component-->
	<!--component>
		<component-name>progressmeter</component-name>
		<extends>progressmeter</extends>
	</component-->
	<component>
		<component-name>radio</component-name>
		<extends>radio</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>checked</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onCheck</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selected</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onCheck</attribute-value>
			</attribute>
		</annotation>
	</component>
	<component>
		<component-name>radiogroup</component-name>
		<extends>radiogroup</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedItem</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onCheck</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>converter</attribute-name>
				<attribute-value>org.zkoss.zkplus.databind.RadiogroupSelectedItemConverter</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedIndex</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onCheck</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>row</component-name>
		<extends>row</extends>
	</component-->
	<!--component>
		<component-name>rows</component-name>
		<extends>rows</extends>
	</component-->
	<!--component>
		<component-name>separator</component-name>
		<extends>separator</extends>
	</component-->
	<!--component>
		<component-name>space</component-name>
		<extends>space</extends>
	</component-->
	<!--component>
		<component-name>include</component-name>
		<extends>include</extends>
	</component-->
	<!--component>
		<component-name>script</component-name>
		<extends>script</extends>
	</component-->
	<component>
		<component-name>slider</component-name>
		<extends>slider</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>curpos</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onScroll</attribute-value>
			</attribute>
		</annotation>
	</component>
	<component>
		<component-name>spinner</component-name>
		<extends>spinner</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>splitter</component-name>
		<extends>splitter</extends>
	</component-->
	<!--component>
		<component-name>style</component-name>
		<extends>style</extends>
	</component-->
	<!--component>
		<component-name>tab</component-name>
		<extends>tab</extends>
	</component-->
	<component>
		<component-name>tabbox</component-name>
		<extends>tabbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedTab</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onSelect</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>converter</attribute-name>
				<attribute-value>org.zkoss.zkplus.databind.TabboxSelectedTabConverter</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedTabpanel</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onSelect</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
		</annotation>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>selectedIndex</property-name>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onSelect</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>tabpanel</component-name>
		<extends>tabpanel</extends>
	</component-->
	<!--component>
		<component-name>tabpanels</component-name>
		<extends>tabpanels</extends>
	</component-->
	<!--component>
		<component-name>tabs</component-name>
		<extends>tabs</extends>
	</component-->
	<component>
		<component-name>textbox</component-name>
		<extends>textbox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<component>
		<component-name>timebox</component-name>
		<extends>timebox</extends>
		<annotation>
			<annotation-name>default-bind</annotation-name>
			<property-name>value</property-name>
			<attribute>
				<attribute-name>access</attribute-name>
				<attribute-value>both</attribute-value>
			</attribute>
			<attribute>
				<attribute-name>save-when</attribute-name>
				<attribute-value>self.onChange</attribute-value>
			</attribute>
		</annotation>
	</component>
	<!--component>
		<component-name>timer</component-name>
		<extends>timer</extends>
	</component-->
	<!--component>
		<component-name>toolbar</component-name>
		<extends>toolbar</extends>
	</component-->
	<!--component>
		<component-name>toolbarbutton</component-name>
		<extends>toolbarbutton</extends>
	</component-->
	<!--component>
		<component-name>tree</component-name>
		<extends>tree</extends>
	</component-->
	<!--component>
		<component-name>treecell</component-name>
		<extends>treecell</extends>
	</component-->
	<!--component>
		<component-name>treechildren</component-name>
		<extends>treechildren</extends>
	</component-->
	<!--component>
		<component-name>treecol</component-name>
		<extends>treecol</extends>
	</component-->
	<!--component>
		<component-name>treecols</component-name>
		<extends>treecols</extends>
	</component-->
	<!--component>
		<component-name>treeitem</component-name>
		<extends>treeitem</extends>
	</component-->
	<!--component>
		<component-name>treerow</component-name>
		<extends>treerow</extends>
	</component-->
	<!--component>
		<component-name>vbox</component-name>
		<extends>vbox</extends>
	</component-->
	<!--component>
		<component-name>window</component-name>
		<extends>window</extends>
	</component-->
</language-addon>
New to GrepCode? Check out our FAQ X