Class CompositeListModel<T>

  • Type Parameters:
    T - the type of the elements of this model
    All Implemented Interfaces:
    Serializable, ListModel<T>

    public class CompositeListModel<T>
    extends AbstractListModel<T>
    A list composed of zero to many child lists models. Events are automatically propagated from component lists.
    See Also:
    Serialized Form
    • Constructor Detail

      • CompositeListModel

        public CompositeListModel​(List<ListModel<? extends T>> pComponentLists)
        Parameters:
        pComponentLists - Lists that will be laid end to end in order to create composite list.
      • CompositeListModel

        public CompositeListModel​(ListModel<? extends T>... pComponentLists)
    • Method Detail

      • getSize

        public int getSize()
        Sum of sizes of component list models.
      • getElementAt

        public T getElementAt​(int pIdx)