0

I created a very small web application using a JFace TableViewer. In the brower the table looks nice, but on iOS using Tabris the table columns are missing.

Please see the code here. And please compare the browser and iOS version here. What am I missing? Maybe I have to change the CSS file?

Rüdiger Herrmann
  • 20,512
  • 11
  • 62
  • 79
baumato
  • 358
  • 3
  • 13

1 Answers1

2

"Real" tables as you know them from the desktop are not supported yet, as they are not a common UI pattern on mobile devices.

Table, Tree and List are always displayed as a "List". You can have two columns: The first will be the main title Label, the second column will be used as a subtitle Label on the item. (Like in a Mail app, where you have the "From" in a big, bold font and the "Subject" in a smaller font below.)

So in your case I would concatenate the two dates into the first column and the subject into the second column.

Jordi
  • 617
  • 6
  • 10
  • Regarding your code: Use new Shell(display, SWT.NO_TRIM) and shell.setMaximized( true ) to get a fullscreen App. In the upcoming Tabris release you will be able to setToolTip( string ) on the table to display a bar with a "title" for your Table widget. – Jordi Aug 03 '12 at 07:46
  • Thanks for you answer. Works fine. And yes, in the application I am currently writing, I have used SWT.NO_TRIM and setMaximized(true). The referenced code was just an example to illustrate my question. – baumato Aug 07 '12 at 20:30