KeyStrokeAgent"

From Documentation
(Created page with "{{ZATSEssentialsPageHeader}} All components that inherit <tt> HtmlBasedComponent </tt> support this operation. When calling <tt> stroke() </tt>, you have to provide special ...")
 
Line 9: Line 9:
 
For example, ''' ^#left ''' means ''Ctrl+Left'', and ''' @#f3 ''' means ''Alt+F3''.
 
For example, ''' ^#left ''' means ''Ctrl+Left'', and ''' @#f3 ''' means ''Alt+F3''.
  
```java
+
<source lang="java">
  
 
component.as(KeyStrokeAgent.class).stroke("$#left");
 
component.as(KeyStrokeAgent.class).stroke("$#left");
```
+
 
 +
</source>
  
  
 
{{ZATSEssentialsPageFooter}}
 
{{ZATSEssentialsPageFooter}}

Revision as of 01:02, 14 May 2012




All components that inherit HtmlBasedComponent support this operation. When calling stroke() , you have to provide special string for control keys. Please refer to [1].

For example, ^#left means Ctrl+Left, and @#f3 means Alt+F3.

component.as(KeyStrokeAgent.class).stroke("$#left");



Last Update : 2012/05/14

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