Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » avoid key-events to be processed by TableCursor
avoid key-events to be processed by TableCursor [message #443976] Tue, 05 October 2004 08:29
Tobias Weih is currently offline Tobias WeihFriend
Messages: 8
Registered: July 2009
Junior Member
hi,
i finally managed coupling TableViewer/TableCursor. the result is a
spreadsheet-like navigatable table with CellEditors populated by an
event-driven HashMap-model.

++ see https://sourceforge.net/project/showfiles.php?group_id=35889

problem left: the TableCursor still receives KeyDowns and MouseEvents if
a CellEditor is activated. this has to be avoided since (i.e.) when
navigating a ComboBoxCellEditor the TableCursor should not move.

doing somthing like
new MyTableCursor extends TableCursor {
void keyDown(Event event) { ... }
void tableMouseDown(Event event) { ... }
...
}
does not work since the methods are not overrideable.

a 'copy/paste-emulatation' of the TableCursor-constructor for setting
different listeners is ugly, not version-proof and (stupid me) not
possible, since its not possible to call super.super() for Canvas.
so, the only chance I see is to reimplement full TableCursor by
copy&paste. But thats not cool.

any ideas?
ChangeRequest for method-signature?
tobi
Previous Topic:Unhandled event loop exception.....
Next Topic:SWT JAR packaging
Goto Forum:
  


Current Time: Fri Apr 26 18:38:50 GMT 2024

Powered by FUDForum. Page generated in 0.03062 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top