Hi Marco,
You can leave the table with ctrl-tab.
If you want to completely stop navigation within a table with Tab key, do
the following in your ULC client launcher:
InputMap map = (InputMap) UIManager.get("Table.ancestorInputMap");
javax.swing.KeyStroke keyStrokeTab =
javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_TAB, 0);
map.remove(keyStrokeTab);
If you want to navigate in the table with Tab key but leave the table on Tab
when in last cell:
See http://lists.canoo.com/mailman/private/ulc-developer/2006/004336.html
>by the way, could it be that the search functionality for
>ulc-developer archiv is not working anymore?
It was down for a while. It is working now.
Thanks and regards,
Janak
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Friday, February 16, 2007 9:50 AM
>To: [EMAIL PROTECTED]
>Subject: [ULC-developer] ulctable setFocusTraversalKeys tab
>
>
>
>Hi all,
>i want to leave the ulctable with the tab-key and don't jump
>through the columns.
>I wrote following client-extension :
>
>public class UIDachBasicTable extends UITable{
>
> protected Object createBasicObject(Object [] args){
>
>
> return new DachBasicTable();
> }
>
> protected void postInitializeState(){
>
>
>getBasicTable().setFocusTraversalKeys(KeyboardFocusManager.FORWARD_
>TRAVERSAL_KEYS,
> null);
>
>getBasicTable().setFocusTraversalKeys(KeyboardFocusManager.BACKWARD
>_TRAVERSAL_KEYS,
> null);
>
> }
>
> public class DachBasicTableextends BasicTable{
>
> public DachBasicTable() {
> super();
> // TODO Auto-generated constructor stub
> }
> }
>}
>
>I get the right behaviour, but all click-events(double-click,
>right-click for popup) does not work anymore???
>
>If I set specific traversal keys like following example I get a
>classcastexception:
>
> Set forwardTraversalKeys = new HashSet();
>
>forwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,
>0));
>
> Set backwardTraversalKeys = new HashSet();
>
>backwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,
>java.awt.event.KeyEvent.SHIFT_DOWN_MASK));
>
>
>getBasicTable().setFocusTraversalKeys(KeyboardFocusManager.FORWARD_
>TRAVERSAL_KEYS,
> forwardTraversalKeys);
>
>getBasicTable().setFocusTraversalKeys(KeyboardFocusManager.BACKWARD
>_TRAVERSAL_KEYS,
> backwardTraversalKeys);
>
>Has anybody an idea?
>by the way, could it be that the search functionality for
>ulc-developer archiv is not working anymore?
>
>thx
>marco
>
>
>
>
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer