HtmlBasedComponent"

From Documentation
 
(16 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
= Html Based Component =
 
= Html Based Component =
  
 
+
*Demonstration: N/A
 
*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 11: Line 11:
  
  
=Supported events=
+
=Supported Events=
  
{| border="1" | width="100%"
+
{| class='wikitable' | width="100%"
 
! <center>Name</center>
 
! <center>Name</center>
 
! <center>Event Type</center>
 
! <center>Event Type</center>
 
|-
 
|-
| <center><tt>onDrop</tt></center>
+
| <center><code>onDrop</code></center>
| [#DropEvent org.zkoss.zk.ui.event.DropEvent]
+
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.DropEvent</javadoc>
 +
Denotes a user has dropped the dragged target to a component.
 
|-
 
|-
| <center><tt>onClick</tt></center>
+
| <center><code>onClick</code></center>
| [#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
+
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc>
 +
 
 +
Denotes a user has clicked a component.
 
|-
 
|-
| <center><tt>onDoubleClick</tt></center>
+
| <center><code>onDoubleClick</code></center>
| [#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
+
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc>
 +
Denotes a user has double-clicked a component.
 
|-
 
|-
| <center><tt>onRightClick</tt></center>
+
| <center><code>onRightClick</code></center>
| [#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
+
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc>
 +
Denotes a user has right-clicked a component.
 
|-
 
|-
| <center><tt>onMove</tt></center>
+
| <center><code>onMouseOver</code></center>
| [#MoveEvent org.zkoss.zk.ui.event.MoveEvent]
+
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MoveEvent</javadoc>
 +
{{versionSince| 5.0.3}} Denotes a user has hovered over the component.
 
|-
 
|-
| <center><tt>onSize</tt></center>
+
| <center><code>onMouseOut</code></center>
| [#SizeEvent org.zkoss.zk.ui.event.SizeEvent]
+
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MoveEvent</javadoc>
 +
{{versionSince| 5.0.3}} Denotes a user has moved out a component.
 
|-
 
|-
| <center><tt>onZIndex</tt></center>
+
| <center><code>onOK </code></center>
| [#ZIndexEvent org.zkoss.zk.ui.event.ZIndexEvent]
+
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc>
 +
 
 +
Denotes a user has pressed the '''ENTER''' key.
 +
 
 
|-
 
|-
| <center><tt>onOK</tt></center>
+
| <center><code>onCancel </code></center>
| [#KeyEvent org.zkoss.zk.ui.event.KeyEvent]
+
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc>
 +
 
 +
Denotes a user has pressed the '''ESC''' key.
 +
 
 +
|-
 +
| <center><code>onCtrlKey</code></center>
 +
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc>
 +
 
 +
Denotes a user has pressed a special key, such as PgUp, Home, and a key combined with the Ctrl or Alt key. Refer to the <code>ctrlKeys</code> Property section below for details.
 
|-
 
|-
| <center><tt>onCacnel</tt></center>
+
| <center><code>onAfterSize</code></center>
| [#KeyEvent org.zkoss.zk.ui.event.KeyEvent]
+
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.AfterSizeEvent</javadoc>
 +
It's fired after
 +
* a user resizes a sizable component in a browser
 +
* a component calculates its size in a browser
 
|-
 
|-
| <center><tt>onCtrlKey</tt></center>
+
| <center><code>onCreate</code></center>
| [#KeyEvent org.zkoss.zk.ui.event.KeyEvent]
+
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.CreateEvent</javadoc>
 
|}
 
|}
  
Line 51: Line 72:
  
 
  *ALL
 
  *ALL
 +
  
 
=Version History=
 
=Version History=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 5.0.1
+
| 5.0.3
| 4/23/2010
+
| June 2010
| Initialization
+
| The onMouseOver and onMouseOut events are supported.
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Latest revision as of 02:48, 10 June 2022


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
Event: DropEvent

Denotes a user has dropped the dragged target to a component.

onClick
Event: MouseEvent

Denotes a user has clicked a component.

onDoubleClick
Event: MouseEvent

Denotes a user has double-clicked a component.

onRightClick
Event: MouseEvent

Denotes a user has right-clicked a component.

onMouseOver
Event: MoveEvent

Since 5.0.3 Denotes a user has hovered over the component.

onMouseOut
Event: MoveEvent

Since 5.0.3 Denotes a user has moved out a component.

onOK
Event: KeyEvent

Denotes a user has pressed the ENTER key.

onCancel
Event: KeyEvent

Denotes a user has pressed the ESC key.

onCtrlKey
Event: KeyEvent

Denotes a user has pressed a special key, such as PgUp, Home, and a key combined with the Ctrl or Alt key. Refer to the ctrlKeys Property section below for details.

onAfterSize
Event: AfterSizeEvent

It's fired after

  • a user resizes a sizable component in a browser
  • a component calculates its size in a browser
onCreate
Event: CreateEvent

Supported Children

*ALL


Version History

Version Date Content
5.0.3 June 2010 The onMouseOver and onMouseOut events are supported.



Last Update : 2022/06/10

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