HtmlBasedComponent"

From Documentation
m
Line 3: Line 3:
 
= Html Based Component =
 
= Html Based Component =
  
*Demonstration: Most of ZK Components are Html Based Component.
+
 
 
*Java API: <javadoc>org.zkoss.zk.ui.HtmlBasedComponent</javadoc>
 
*Java API: <javadoc>org.zkoss.zk.ui.HtmlBasedComponent</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zk.Widget</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zk.Widget</javadoc>
Line 9: Line 9:
 
= Employment/Purpose =
 
= Employment/Purpose =
 
A skeletal implementation for HTML based components. It simplifies to implement methods common to HTML based components.
 
A skeletal implementation for HTML based components. It simplifies to implement methods common to HTML based components.
 
= Example =
 
 
 
 
  
  
Line 22: Line 17:
 
! <center>Event Type</center>
 
! <center>Event Type</center>
 
|-
 
|-
| Text
+
| <center><tt>onDrop</tt></center>
| Text
+
| [#DropEvent org.zkoss.zk.ui.event.DropEvent]
 +
|-
 +
| <center><tt>onClick</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.MouseEvent]
 +
|-
 +
| <center><tt>onDoubleClick</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.MouseEvent]
 +
|-
 +
| <center><tt>onRightClick</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.MouseEvent]
 +
|-
 +
| <center><tt>onMove</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.MoveEvent]
 +
|-
 +
| <center><tt>onSize</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.SizeEvent]
 +
|-
 +
| <center><tt>onZIndex</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.ZIndexEvent]
 +
|-
 +
| <center><tt>onOK</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.KeyEvent]
 +
|-
 +
| <center><tt>onCacnel</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.KeyEvent]
 +
|-
 +
| <center><tt>onCtrlKey</tt></center>
 +
| [#DropEvent org.zkoss.zk.ui.event.KeyEvent]
 
|}
 
|}
  
Line 29: Line 51:
  
 
  *ALL
 
  *ALL
 
=Use cases=
 
 
{| border='1px' | width="100%"
 
! Version !! Description !! Example Location
 
|-
 
| 5.0+
 
| Text
 
| Text
 
|}
 
  
 
=Version History=
 
=Version History=
Line 45: Line 57:
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 5.x.x
+
| 5.0.1
| x/x/20xx
+
| 4/23/2010
 
| Initialization
 
| Initialization
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Revision as of 09:05, 23 April 2010


HtmlBasedComponent

Html Based Component

Employment/Purpose

A skeletal implementation for HTML based components. It simplifies to implement methods common to HTML based components.


Supported events

Name
Event Type
onDrop
[#DropEvent org.zkoss.zk.ui.event.DropEvent]
onClick
[#DropEvent org.zkoss.zk.ui.event.MouseEvent]
onDoubleClick
[#DropEvent org.zkoss.zk.ui.event.MouseEvent]
onRightClick
[#DropEvent org.zkoss.zk.ui.event.MouseEvent]
onMove
[#DropEvent org.zkoss.zk.ui.event.MoveEvent]
onSize
[#DropEvent org.zkoss.zk.ui.event.SizeEvent]
onZIndex
[#DropEvent org.zkoss.zk.ui.event.ZIndexEvent]
onOK
[#DropEvent org.zkoss.zk.ui.event.KeyEvent]
onCacnel
[#DropEvent org.zkoss.zk.ui.event.KeyEvent]
onCtrlKey
[#DropEvent org.zkoss.zk.ui.event.KeyEvent]

Supported Children

*ALL

Version History

Version Date Content
5.0.1 4/23/2010 Initialization



Last Update : 2010/04/23

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.