Documentation‎ > ‎

Upgrade from 1.8 to 1.9

Core

  • in class ca.odell.glazedlists.ObservableElementList method signature changed from elementChanged(E listElement) to elementChanged(Object listElement)
  • in class ca.odell.glazedlists.GlazedLists method signature changed from readOnlyList(EventList<E> source) to readOnlyList(EventList<? extends E> source)
  • in class ca.odell.glazedlists.GlazedLists method signature changed from threadSafeList(EventList<E> source) to threadSafeList(EventList<? extends E> source)
  • MatcherEditor changes:
    • extracted new base class AbstractMatcherEditorListenerSupport from AbstractMatcherEditor
    • ThreadedMatcherEditor now derives from this new class instead of AbstractMatcherEditor
    • AbstractMatcherEditor#getMatcher() is now final
    • member AbstractMatcherEditor#currentMatcher is now private

Swing

  • Deprecated ca.odell.glazedlists.swing.EventTableModel, EventSelectionModel, EventListModel, EventComboBoxModel
    • replaced with ca.odell.glazedlists.swing.DefaultEventTableModel, DefaultEventSelectionModel, DefaultEventListModel, DefaultEventComboBoxModel
    • the new models do not automatically wrap the source list with a Swing-EDT safe proxy list
    • instead, you should either create one yourself and use that as source list or use one of the new factory methods in ca.odell.glazedlists.swing.GlazedListsSwing:
      • GlazedListsSwing#eventTableModelWithThreadProxyList(..)
      • GlazedListsSwing#eventSelectionModelWithThreadProxyList(..)
      • GlazedListsSwing#eventListModelWithThreadProxyList(..)
      • GlazedListsSwing#eventComboBoxModelWithThreadProxyList(..)
    • in addition there are new factory methods, that do not wrap the source list with a Swing-EDT safe proxy list, so you have the responsibility to do the wrapping:
      • GlazedListsSwing#eventTableModel(..)
      • GlazedListsSwing#eventSelectionModel(..)
      • GlazedListsSwing#eventListModel(..)
      • GlazedListsSwing#eventComboBoxModel(..)

SWT

  • Deprecated ca.odell.glazedlists.swt.EventTableViewer, EventListViewer, EventComboViewer, EventKTableModel
    • replaced with ca.odell.glazedlists.swt.DefaultEventTableViewer, DefaultEventListViewer, DefaultEventComboViewer, DefaultEventKTableModel
    • the new models/viewers do not automatically wrap the source list with a SWT-EDT safe proxy list
    • instead, you should either create one yourself and use that as source list or use one of the new factory methods in ca.odell.glazedlists.swt.GlazedListsSWT:
      • GlazedListsSWT#eventTableViewerWithThreadProxyList(..)
      • GlazedListsSWT#eventListViewerWithThreadProxyList(..)
      • GlazedListsSWT#eventComboViewerWithThreadProxyList(..)
      • GlazedListsKTable#eventKTableModelWithThreadProxyList(..)
    • in addition there are new factory methods, that do not wrap the source list with a SWT-EDT safe proxy list, so you have the responsibility to do the wrapping:
      • GlazedListsSWT#eventTableViewer(..)
      • GlazedListsSWT#eventListViewer(..)
      • GlazedListsSWT#eventComboViewer(..)
      • GlazedListsKTable#eventKTableModel(..)
  • SWT extension is now independent of JFace:
    • usage of JFace ILabelProvider in the List and Combo viewers has been replaced with new interface ca.odell.glazedlists.swt.ItemFormat
    • ca.odell.glazedlists.swt.DefaultItemFormat replaces usage of JFace LabelProvider
    • ca.odell.glazedlists.impl.swt.BeanItemFormat replaces usage of ca.odell.glazedlists.impl.swt.BeanLabelProvider
    • GlazedListsSWT#beanItemFormat(...) replaces usage of GlazedListsSWT#beanLabelProvider(..)

Other

  • ca.odell.glazedlists.swing.SwingCalculations has been renamed to CalculationsSwing
  • ca.odell.glazedlists.jfreechart.CalculationCategoryDataset has been moved from the calculation to the jfreechart extension
  • method ca.odell.glazedlists.calculation.Calculations.calculationCategoryDataset(..) has been removed, simply use new constructor of CalculationCategoryDataset
  • dropped Java 1.4 support, Java 1.5 is the minimum requirement
Comments