Class AbstractArrayListModel<T>

    • Constructor Detail

      • AbstractArrayListModel

        public AbstractArrayListModel()
        Default constructor
    • Method Detail

      • getValue

        public abstract String getValue(T element)
        Get a String representation of the denoted element that should be shown within the list.
        Parameters:
        element - an element.
        Returns:
        the string to show within the list.
      • add

        public void add(T element,
                        int index)
        Add the given element to the model.
        Parameters:
        element - the element to add.
        index - the index where to insert.
      • remove

        public void remove(int index)
        Remove the element at the denoted index from the model.
        Parameters:
        index - the index of the element to remove.
      • addAll

        public void addAll(Collection<T> insElements,
                           int index)
        Add the given elements to the model
        Parameters:
        insElements - the elements to add.
        index - the index where to insert.
      • getSize

        public int getSize()
      • getRealElementAt

        public T getRealElementAt(int index)
        Retrieve the real element (not the wrapper element retrieved with getElementAt) for the denoted position.
        Parameters:
        index - the position.
        Returns:
        the real element