FocusAgent"

From Documentation
(Created page with "It's supported on those components that inherit <tt> org.zkoss.zul.impl.InputElement </tt> ```java inputComponent.as(FocusAgent.class).focus(); inputComponent.as(FocusAgent.cl...")
 
m (correct highlight (via JWB))
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
It's supported on those components that inherit <tt> org.zkoss.zul.impl.InputElement </tt>
+
{{ZATSEssentialsPageHeader}}
  
```java
+
 
 +
__TOC__
 +
 
 +
= Focus & Blur =
 +
 
 +
 
 +
Only components that inherit <code> org.zkoss.zul.impl.InputElement </code> supports <code> FocusAgent</code>.
 +
 
 +
<source lang="java">
  
 
inputComponent.as(FocusAgent.class).focus();
 
inputComponent.as(FocusAgent.class).focus();
Line 7: Line 15:
 
inputComponent.as(FocusAgent.class).blur();
 
inputComponent.as(FocusAgent.class).blur();
  
```
+
</source>
 +
 
 +
=Supported Components=
 +
 
 +
{| border="1" | width="100%"
 +
! <center>Components</center>
 +
! <center>Version</center>
 +
! <center>Note</center>
 +
|-
 +
| A, Button, Bandbox, Combobox, Checkbox,
 +
Datebox, Decimalbox, Doublebox, Doublespinner, Intbox,
 +
 
 +
Listbox, Longbox, Radio, Spinner, Textbox,
 +
 
 +
Timebox, Tree
 +
|  5, 6
 +
|
 +
|}
 +
 
 +
 
 +
 
 +
{{ZATSEssentialsPageHeader}}
 +
{{ZATSEssentialsPageFooter}}

Latest revision as of 02:55, 18 January 2022



Focus & Blur

Only components that inherit org.zkoss.zul.impl.InputElement supports FocusAgent.

inputComponent.as(FocusAgent.class).focus();

inputComponent.as(FocusAgent.class).blur();

Supported Components

Components
Version
Note
A, Button, Bandbox, Combobox, Checkbox,

Datebox, Decimalbox, Doublebox, Doublespinner, Intbox,

Listbox, Longbox, Radio, Spinner, Textbox,

Timebox, Tree

5, 6





Last Update : 2022/01/18

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