我尝试将首选项连接到string类型的treecell元素,即我希望修改单元格的内容(然后存储为新的首选项字符串)
如果treecell元素是布尔值,那么可以这样做,但是如果它是一个文本呢?
<tree id="tag-tree" flex="1" editable="true" seltype="multiple" rows="10" hidecolumnpicker="true">
<treecols>
<treecol type="checkbox" fixed="true" class="treecol-image" editable="true" tooltiptext="&components.enabledColumn;" />
<splitter class="tree-splitter" />
<treecol fixed="false" flex="1" class="treecol-name" label="&website.label;" editable="true" persist="width" />
<splitter class="tree-splitter" />
<treecol fixed="false" flex="2" class="treecol-name" label="&URL.label;" editable="true" persist="width" />
</treecols>
<treechildren flex="1" alternatingbackground="true">
<treeitem>
<treerow>
<treecell preference-editable="true" preference="tag-complete-toolbox-pref" />
<treecell label="&website1;" />
<treecell preference-editable="true" preference="pref1" />
</treerow>
</treeitem>
<treeitem>
...
因此最后一个树单元格不会显示与preference =“pref1”
相关的字符串由于