...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
private void barChart_onSelection(final SelectionEvent<AbstractChart> event) { final Selection selection = event.getSelection(); final List<Item> items = selection.items(); for(final Item item : items) { final Integer row = item.row(); final Integer column = item.comlumncolumn(); } } |
Mit Hilfe der RowID und ColumnID den Eintrag im Model finden
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
final Integer row = item.row(); final Integer column = item.comlumn(); final Cell value = this.model.getValue(row, column); Object rowValue = value.value(); |
Alle
...
Einträge nach RowID aus dem Model holen
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
final Integer row = item.row(); for(int i = 0; i < this.model.columns().size(); i++) { final Cell value = this.model.getValue(row, item.column()); System.out.println(value.value()); } |
...