|
Using keyboard in Table |
|
Table component supports keyboard for all operations:navigation in the table, sorting, clicking and double clicking, editing, column selection, context menu activation, changing current table page.
These properties can be set from the <table:interfaceManager> tag or managed bean:
| • | keyUp - Hot key to move currently selected cell up |
| • | keyDown - Hot key to move currently selected cell down |
| • | keyLeft - Hot key to move currently selected cell left |
| • | keyRight - Hot key to move currently selected cell right |
| • | keySort - Hot key to sort current column |
| • | keyNavigationFirst - Hot key to move to the first page of the table |
| • | keyNavigationLast - Hot key to move to the last page of the table |
| • | keyNavigationNext - Hot key to move to the next page of the table |
| • | keyNavigationPrev - Hot key to move to the previous page of the table |
| • | keyClick - Hot key to do click on currently selected cell |
| • | keyDblClick - Hot key to do double click on currently selected cell |
| • | keyEdit - Hot key to open editor for inplace mode on currently selected cell |
| • | keyContextMenu - Hot key to open context menu |
Fixed column selection used for selecting cell in some column (for example Column1) by hot key. To select a given column the <table:column> tag or managed bean
should be used. For example, to select Column2, "Ctrl + 2" hot key have to be used:
<table:column ID="Column2" modelIndex="1" hotKey="Ctrl+2"/>
The syntax for Hot key assignment is as follows : [Modifier +][key], where valid values for [Modifier] are : Ctrl, Alt or Shift.
[key] can be any character, number or one of the following values:
Tab, Enter, Esc, PgUp, PgDn, End, Home, Left, Up, Right, Down, Ins, Del, F1 - F12, "*", "+", "-", ".", "/".