<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:m.weghorn@posteo.de" title="Michael Weghorn <m.weghorn@posteo.de>"> <span class="fn">Michael Weghorn</span></a>
</span> changed
<a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Changes to XTabPageModel's text or enabled status not reflected in UI"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133142">bug 133142</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>m.weghorn@posteo.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Changes to XTabPageModel's text or enabled status not reflected in UI"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133142#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Changes to XTabPageModel's text or enabled status not reflected in UI"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133142">bug 133142</a>
from <span class="vcard"><a class="email" href="mailto:m.weghorn@posteo.de" title="Michael Weghorn <m.weghorn@posteo.de>"> <span class="fn">Michael Weghorn</span></a>
</span></b>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=160967" name="attach_160967" title="Sample extension to demonstrate the issue">attachment 160967</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=160967&action=edit" title="Sample extension to demonstrate the issue">[details]</a></span>
Sample extension to demonstrate the issue
The relevant lines in the Java source code of the sample extension that are
supposed to change the text and enable/disable the tab are the following ones
(with 'tabPageModel2' being the second tab's XTabPageModel:
@Override
public void actionPerformed(ActionEvent arg0)
{
// when the button is pressed:
// toggle enabled/disabled status of the second tab and change its
title
tabPageModel2.setEnabled(!tabPageModel2.getEnabled());
final String text1 = "some text";
final String text2 = "other words";
String newText = text1;
String currentText = tabPageModel2.getTitle();
if (currentText.equals(text1)) {
newText = text2;
}
tabPageModel2.setTitle(newText);
}
});</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>