Ce que je voudrais faire est de pouvoir tabuler entre les éléments de la table. Je suis actuellement en train de créer ma table comme ceci.Onglet entre les champs dans TableViewer
this.tableViewer =
new TableViewer(parent , SWT.FULL_SELECTION);
tableViewer.setUseHashlookup(true);
table = tableViewer.getTable();
GridData gridData = new GridData(GridData.FILL_BOTH);
gridData.grabExcessVerticalSpace = true;
table.setLayoutData(gridData);
table.setLinesVisible(true);
table.setHeaderVisible(true);
...
/** Create the Cell Editor Array - will hold all columns **/
editors = new CellEditor[table.getColumnCount()];
/** Cell Editor Row 1 **/
/** Set the column properties **/
tableViewer.setColumnProperties(columnNames);
/** Assign the cell editors to the viewer **/
tableViewer.setCellEditors(editors);
/** Set the cell modifier for the viewer **/
tableViewer.setCellModifier(new MyCellModifier(this));
//Create the Table Viewer
/** Table Viewer Content and Label Provider **/
tableViewer.setContentProvider(new MyContentProvider(this));
tableViewer.setLabelProvider(new MyLabelProvider());
Mais je ne suis pas sûr comment configurer la tabulation. Tout le reste fonctionne aussi bien que l'édition de colonnes, l'affichage de données, etc. Juste coincé sur cette dernière partie.
Si j'ai manqué une documentation ou des javadocs évidents - mes excuses et même pointant vers ceux-ci serait génial.
Dans quelle direction voulez-vous tabuler? –