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