简体   繁体   English

JavaFx:TreeTableView箭头参考

[英]JavaFx: TreeTableView arrow reference

How can I get a reference to the expand/collapse "arrow" in a TreeTableView? 如何在TreeTableView中获得对展开/折叠“箭头”的引用?

I cannot provide any code, since, I didn't really know what to look for. 我无法提供任何代码,因为我真的不知道要寻找什么。

Here is an image that shows what I need. 这是一张显示我需要的图像。 The highlighted arrows are which I need. 我需要突出显示的箭头。

I want to remove it, while keeping the collapse/expand mechanism(which works also if I click on the row itself), or making it transparent via css. 我想删除它,同时保留折叠/展开机制(如果我单击行本身也可以使用),或者通过CSS使它透明。

在此处输入图片说明

Set the background of the arrow to transparent via CSS stylesheet. 通过CSS样式表将箭头的背景设置为透明。 The CSS below contains code for both TreeTableView and TreeView , since you write about TreeTableView but your screenshot shows a TreeView : 下面的CSS包含TreeTableViewTreeView代码,因为您撰写了有关TreeTableView但屏幕截图显示了TreeView

.tree-cell .arrow,
.tree-table-row-cell .arrow {
    -fx-background-color: transparent;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM