Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The builder's positionTab(int) method has changed to position(int).
  • The builder has been rewritten to not use the tab instance class anymore, so that the tab instance class can be mostly immutable.
  • The setTab() method has been removed as it exposes internal knowledge. Use label(NodeBase) instead.

TabPanels:

  • The tab()....build() chain is now the preferred way to build new tabs
  • All old "add" methods now return an ITabHandle.
  • The builder now gives errors if its build method is not called.
  • The TabBuilder and TabInstance classes are now final.
  • The IDisplayListener class (of which the usage was one big bug) has been removed and has been replaced with onDisplay and onHide listeners that can be set on a tab.
  • The setOnClose method in ITabHandle has been removed and has moved to the tab builder.
  • Images used in the tab header can now be either a string or some supported font icon set name (like a constant from FaIcon).
  • The ITabHandle interface now represents a tab, and all operations possible on it:
    • close() closes the tab associated with the handle
    • select() makes the tab the current tab
    • updateLabel() sets a new label name and optionally an image
    • updateContent sets new content into a tab. If the tab was defined as lazy the new content will be rendered only when the tab is made visible.
  • The TabPanel.setLabel() method has been removed and is replaced with updateLabel() on a ITabHandle.

...