<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Customizing uitree nodes &#8211; part 1	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customizing-uitree-nodes</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 12 May 2022 09:01:16 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-514103</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 12 May 2022 09:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-514103</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-514101&quot;&gt;Veronica Taurino&lt;/a&gt;.

@Veronica - you are using the new version of uitree, which uses HTML-based uifigures, and my post was about the Java-based uitree which uses legacy Matlab figures. For details on customizing the new uifigure tree-nodes, see the &lt;a href=&quot;https://www.mathworks.com/help/matlab/ref/uitreenode.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;&lt;i&gt;uitreenode&lt;/i&gt;&lt;/b&gt; documentation&lt;/a&gt;. Specifically, to change the node name, set its Text property, e.g. &lt;code&gt;node.Text=&#039;new node name&#039;&lt;/code&gt;. To use html formatting you&#039;d need to use &lt;b&gt;&lt;i&gt;uistyle&lt;/i&gt;&lt;/b&gt;, which is fully documented and outside the scope of this website.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-514101">Veronica Taurino</a>.</p>
<p>@Veronica &#8211; you are using the new version of uitree, which uses HTML-based uifigures, and my post was about the Java-based uitree which uses legacy Matlab figures. For details on customizing the new uifigure tree-nodes, see the <a href="https://www.mathworks.com/help/matlab/ref/uitreenode.html" target="_blank" rel="nofollow"><b><i>uitreenode</i></b> documentation</a>. Specifically, to change the node name, set its Text property, e.g. <code>node.Text='new node name'</code>. To use html formatting you&#8217;d need to use <b><i>uistyle</i></b>, which is fully documented and outside the scope of this website.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Veronica Taurino		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-514102</link>

		<dc:creator><![CDATA[Veronica Taurino]]></dc:creator>
		<pubDate>Thu, 12 May 2022 08:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-514102</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-514101&quot;&gt;Veronica Taurino&lt;/a&gt;.

&#062;&#062; [txt1,txt2]
ans =
    &#039;&lt;b&gt;&lt;i&gt;abra&lt;/i&gt;kadabra&#039;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-514101">Veronica Taurino</a>.</p>
<p>&gt;&gt; [txt1,txt2]<br />
ans =<br />
    &#8216;<b><i>abra</i>kadabra&#8217;</b></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Veronica Taurino		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-514101</link>

		<dc:creator><![CDATA[Veronica Taurino]]></dc:creator>
		<pubDate>Thu, 12 May 2022 08:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-514101</guid>

					<description><![CDATA[Hello, I am just trying to change the uitree node name as you suggested:
&lt;pre lang=&quot;matlab&quot;&gt;
txt1 = &#039;&lt;b&gt;&lt;i&gt;abra&lt;/i&gt;&#039;;
txt2 = &#039;kadabra&#039;;
node.setName([txt1,txt2]);
&gt;&gt; &quot;Unrecognized method, property, or field &#039;setName&#039; for class &#039;matlab.ui.container.TreeNode&#039;
&lt;/pre&gt;

Now there is no property &#039;&#039;Name&#039;&#039;. I tried:
&lt;pre lang=&quot;matlab&quot;&gt;
node.Text([txt1,txt2]);
&gt;&gt; Index exceeds the number of array elements. Index must not exceed 39. 

[txt1,txt2]
ans =
    &#039;&lt;b&gt;&lt;i&gt;abra&lt;/i&gt;kadabra&#039;
&lt;/pre&gt;
Any suggestion?]]></description>
			<content:encoded><![CDATA[<p>Hello, I am just trying to change the uitree node name as you suggested:</p>
<pre lang="matlab">
txt1 = '<b><i>abra</i>';
txt2 = 'kadabra';
node.setName([txt1,txt2]);
>> "Unrecognized method, property, or field 'setName' for class 'matlab.ui.container.TreeNode'
</b></pre>
<p>Now there is no property &#8221;Name&#8221;. I tried:</p>
<pre lang="matlab">
node.Text([txt1,txt2]);
>> Index exceeds the number of array elements. Index must not exceed 39. 

[txt1,txt2]
ans =
    '<b><i>abra</i>kadabra'
</b></pre>
<p>Any suggestion?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ana Gomez		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512354</link>

		<dc:creator><![CDATA[Ana Gomez]]></dc:creator>
		<pubDate>Tue, 23 Nov 2021 06:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-512354</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248&quot;&gt;Ana Gomez&lt;/a&gt;.

I understand Yair,
Thank you very much for all your valuable assistance. I think I can manage with the options I have now, but I will contact you as professional consultant if I face some other issue. Best,
Ana]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248">Ana Gomez</a>.</p>
<p>I understand Yair,<br />
Thank you very much for all your valuable assistance. I think I can manage with the options I have now, but I will contact you as professional consultant if I face some other issue. Best,<br />
Ana</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512314</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 20 Nov 2021 18:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-512314</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512275&quot;&gt;Ana Gomez&lt;/a&gt;.

@Ana - it appears that you need to customize a complex GUI, and require more than simple answers to simple queries, which is beyond the scope of a blog Q&amp;A. I&#039;ll be happy to assist you as a professional consultant, contact me if you wish: altmany at gmail dot com.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512275">Ana Gomez</a>.</p>
<p>@Ana &#8211; it appears that you need to customize a complex GUI, and require more than simple answers to simple queries, which is beyond the scope of a blog Q&#038;A. I&#8217;ll be happy to assist you as a professional consultant, contact me if you wish: altmany at gmail dot com.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ana Gomez		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512275</link>

		<dc:creator><![CDATA[Ana Gomez]]></dc:creator>
		<pubDate>Thu, 18 Nov 2021 15:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-512275</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248&quot;&gt;Ana Gomez&lt;/a&gt;.

Thank you very much Yair. yes I was doing something wrong. I was able to remove the root now :)
As you say I am using the Java-based component, in a Matlab 2016b, quite old, but the method does exist.
However for checkboxtree&#039;s, removing the root gives a not very satisfactory result, as it becomes not very intuitive hoy to expand and collapse the tree. The problem I had with the root is that, when some leaf has too many subleaves and I collapse it, very often also the root is clicked, so that all the selections that I made get lost, is this a known issue? Thank you!!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248">Ana Gomez</a>.</p>
<p>Thank you very much Yair. yes I was doing something wrong. I was able to remove the root now 🙂<br />
As you say I am using the Java-based component, in a Matlab 2016b, quite old, but the method does exist.<br />
However for checkboxtree&#8217;s, removing the root gives a not very satisfactory result, as it becomes not very intuitive hoy to expand and collapse the tree. The problem I had with the root is that, when some leaf has too many subleaves and I collapse it, very often also the root is clicked, so that all the selections that I made get lost, is this a known issue? Thank you!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512255</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 16 Nov 2021 21:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-512255</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512252&quot;&gt;Ana Gomez&lt;/a&gt;.

Ana, I believe that you are mistaken. Assuming you&#039;re using the Java-based (not the new web-based) checkboxtree component (as described in http://undocumentedmatlab.com/articles/customizing-uitree-nodes-2#Built-in-classes), then even in R2021b the &lt;code&gt;jCheckBoxTree&lt;/code&gt; object has a &lt;i&gt;setRootVisible(flag)&lt;/i&gt; method. 
Perhaps you are using a very old Matlab release in which this method still did not exist.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512252">Ana Gomez</a>.</p>
<p>Ana, I believe that you are mistaken. Assuming you&#8217;re using the Java-based (not the new web-based) checkboxtree component (as described in <a href="http://undocumentedmatlab.com/articles/customizing-uitree-nodes-2#Built-in-classes" rel="ugc">http://undocumentedmatlab.com/articles/customizing-uitree-nodes-2#Built-in-classes</a>), then even in R2021b the <code>jCheckBoxTree</code> object has a <i>setRootVisible(flag)</i> method.<br />
Perhaps you are using a very old Matlab release in which this method still did not exist.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ana Gomez		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512252</link>

		<dc:creator><![CDATA[Ana Gomez]]></dc:creator>
		<pubDate>Tue, 16 Nov 2021 12:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-512252</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248&quot;&gt;Ana Gomez&lt;/a&gt;.

Thank you for the prompt answer!
Is this also possible with checkboxtree? Because I am having some trouble with the method setRootVisible in this case.

No method &#039;setRootVisible&#039; with matching signature found for class &#039;com.mathworks.mwswing.checkboxtree.CheckBoxTree&#039;.
]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248">Ana Gomez</a>.</p>
<p>Thank you for the prompt answer!<br />
Is this also possible with checkboxtree? Because I am having some trouble with the method setRootVisible in this case.</p>
<p>No method &#8216;setRootVisible&#8217; with matching signature found for class &#8216;com.mathworks.mwswing.checkboxtree.CheckBoxTree&#8217;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512249</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 16 Nov 2021 10:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-512249</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248&quot;&gt;Ana Gomez&lt;/a&gt;.

@Ana - &lt;pre lang=&quot;matlab&quot;&gt;mtree.Tree.setRootVisible(false)&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248">Ana Gomez</a>.</p>
<p>@Ana &#8211; </p>
<pre lang="matlab">mtree.Tree.setRootVisible(false)</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ana Gomez		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree-nodes#comment-512248</link>

		<dc:creator><![CDATA[Ana Gomez]]></dc:creator>
		<pubDate>Tue, 16 Nov 2021 10:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1835#comment-512248</guid>

					<description><![CDATA[Good morning Yair, and thanks for these really useful series :)
I am wondering if it is possible to create this tree but without the &quot;root&quot;, I mean, in your example, would it be possible to have the word &quot;Food&quot; just visualized in the Figure name so that then I would have directly the two &quot;leaves&quot; (Vegetables and Fruits) in the tree?
Thank you very much in advance!
Ana]]></description>
			<content:encoded><![CDATA[<p>Good morning Yair, and thanks for these really useful series 🙂<br />
I am wondering if it is possible to create this tree but without the &#8220;root&#8221;, I mean, in your example, would it be possible to have the word &#8220;Food&#8221; just visualized in the Figure name so that then I would have directly the two &#8220;leaves&#8221; (Vegetables and Fruits) in the tree?<br />
Thank you very much in advance!<br />
Ana</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
