[Libreoffice-bugs] [Bug 133142] Changes to XTabPageModel's text or enabled status not reflected in UI

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon May 18 09:35:51 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=133142

Michael Weghorn <m.weghorn at posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.weghorn at posteo.de

--- Comment #1 from Michael Weghorn <m.weghorn at posteo.de> ---
Created attachment 160967
  --> https://bugs.documentfoundation.org/attachment.cgi?id=160967&action=edit
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);
      }
    });

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200518/aff3fb28/attachment.htm>


More information about the Libreoffice-bugs mailing list