HtmlBasedComponent"
From Documentation
m ((via JWB)) |
m ((via JWB)) |
||
Line 20: | Line 20: | ||
! <center>Event Type</center> | ! <center>Event Type</center> | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onDrop</code></center> |
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.DropEvent</javadoc> | | '''Event:''' <javadoc>org.zkoss.zk.ui.event.DropEvent</javadoc> | ||
Denotes user has dropped the dragged target to the component. | Denotes user has dropped the dragged target to the component. | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onClick</code></center> |
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc> | | '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc> | ||
Denotes user has clicked the component. | Denotes user has clicked the component. | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onDoubleClick</code></center> |
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc> | | '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc> | ||
Denotes user has double-clicked the component. | Denotes user has double-clicked the component. | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onRightClick</code></center> |
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc> | | '''Event:''' <javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc> | ||
Denotes user has right-clicked the component. | Denotes user has right-clicked the component. | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onMouseOver</code></center> |
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MoveEvent</javadoc> | | '''Event:''' <javadoc> org.zkoss.zk.ui.event.MoveEvent</javadoc> | ||
Denotes user has hovered over the component. | Denotes user has hovered over the component. | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onMouseOut</code></center> |
| '''Event:''' <javadoc> org.zkoss.zk.ui.event.MoveEvent</javadoc> | | '''Event:''' <javadoc> org.zkoss.zk.ui.event.MoveEvent</javadoc> | ||
Denotes user has moved out the component. | Denotes user has moved out the component. | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onOK </code></center> |
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc> | | '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc> | ||
Line 51: | Line 51: | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onCancel </code></center> |
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc> | | '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc> | ||
Line 57: | Line 57: | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onCtrlKey</code></center> |
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc> | | '''Event:''' <javadoc>org.zkoss.zk.ui.event.KeyEvent</javadoc> | ||
Revision as of 10:37, 12 January 2022
Html Based Component
- Demonstration: N/A
- Java API: HtmlBasedComponent
- JavaScript API: Widget
Employment/Purpose
A skeletal implementation for HTML based components. It simplifies to implement methods common to HTML based components.
Example
N/A
Supported Events
onDrop |
Event: DropEvent
Denotes user has dropped the dragged target to the component. |
onClick |
Event: MouseEvent
Denotes user has clicked the component. |
onDoubleClick |
Event: MouseEvent
Denotes user has double-clicked the component. |
onRightClick |
Event: MouseEvent
Denotes user has right-clicked the component. |
onMouseOver |
Event: MoveEvent
Denotes user has hovered over the component. |
onMouseOut |
Event: MoveEvent
Denotes user has moved out the component. |
onOK |
Event: KeyEvent
Denotes user has pressed the ENTER key. |
onCancel |
Event: KeyEvent
Denotes user has pressed the ESC key. |
onCtrlKey |
Event: KeyEvent
Denotes 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. |
Supported Children
*ALL
Use cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|
5.0.3 | June 2010 | The onMouseOver and onMouseOut events are supported. |