Skip to content
Snippets Groups Projects
Commit 08ffc05c authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Kernel: Enable icons in editable DynamicTreeTable cells


Enables to display icons in DynamicTreeTableViewer columns with editable
text cells.

Issue-Ref: 4135
Issue-Url: #4135

Signed-off-by: default avatarAndreas Bayha <bayha@fortiss.org>
parent e452be12
No related branches found
No related tags found
1 merge request!142Kernel: Enable icons in editable DynamicTreeTable cells
Pipeline #30626 failed
......@@ -5,7 +5,7 @@ DynamicTextFieldTreeTableCell.java de24117e6f785b328f1ff62383626a0b4b54e8ff GREE
DynamicTreeContentProviderBase.java 91896b1fb5104d126544c44c1ff8c30f2a13a8d6 GREEN
DynamicTreeItem.java 7486071d20e896d6ca9a9101bf105caccf3656d0 GREEN
DynamicTreeItemBase.java d883066ecc181120302ca32f328538de7a45b093 GREEN
DynamicTreeTableUIProviderBase.java a4cd60795d114984f7fd255f273fc39937889f22 GREEN
DynamicTreeTableUIProviderBase.java 90a4e9ea9009de6c36abf8191cb407ac314c0acf YELLOW
DynamicTreeTableViewer.java ead6f6671e9cb6b14632940bf440cba7e81fcd98 GREEN
DynamicTreeUIProviderBase.java 82d3c051213f0147f4c67ad247a08696cee73110 GREEN
DynamicTreeViewer.java 545f1ca10b7b3cad171b294a4b447875da45c9ed GREEN
......
......@@ -296,6 +296,9 @@ public abstract class DynamicTreeTableUIProviderBase<T> {
String colorStr = colorToRgbaString(bgColor, alpha);
cell.setStyle("-fx-background-color: " + colorStr);
}
final Node icon = getIconNode(data, columnIndex);
cell.setGraphic(icon);
}
}
}
......@@ -409,6 +412,13 @@ public abstract class DynamicTreeTableUIProviderBase<T> {
});
}
/** {@inheritDoc} */
@Override
public void updateItem(String item, boolean empty) {
super.updateItem(item, empty);
styleCell(this, this.columnIndex);
}
/** {@inheritDoc} */
@Override
public void cancelEdit() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment