Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[rap-dev] Table widget questions

Hello,

I am trying to convert a Swing based applet/webstart solution to RAP -
while I really like the flexibility of Swing, the deployment issues
get worse and worse every year. One of the more complex parts of that
application is a table widget which asynchronously fetches and writes
back values from a DB using Hibernate, while providing DB assisted
auto-completion.

Quite a few things work already work, however for others I haven't
found a solution even after digging around for some time:

1. Is there any way to start editing a table cell by simply typing -
like in spreadsheet applications?
I defined a specific ColumnViewerEditorActivationStrategy which
returns true whenever eventType==KEY_PRESSED, yet it doesn't seem to
work.

2. What is the way to go when each cell requires custom
background/forground (feedback whether data is valid) - the background
should fill the cell and not only the text. I saw
OwnerDrawLabelProvider/StyledCellLabelProvider as well as the
low-level Erease-Event/Paint-Event is not supported by RAP, is there a
more elegent way to achieve the same result?

3. I saw the SWT table only supports a single Checkbox-Column.
Is it common practice to work around this limitation by emulating the
native widgets using checkbox/button images?

Thank you in advance, Clemens


Back to the top