Class JDnDListModel

java.lang.Object
javax.swing.AbstractListModel
org.gvsig.gui.beans.controls.dnd.JDnDListModel
All Implemented Interfaces:
Serializable, ListModel

public class JDnDListModel extends AbstractListModel
List model to use in junction the JDnDList. Contains some useful tools.
Author:
jaume dominguez faus - jaume.dominguez@iver.es
See Also:
  • Constructor Details

    • JDnDListModel

      public JDnDListModel()
  • Method Details

    • insertItems

      public void insertItems(int index, Collection objects)
      Inserts a collection of items before the specified index
    • insertElement

      public boolean insertElement(int index, Object element)
      Inserts a new element into the list at the position mentioned in the index param.
      Parameters:
      index -
      item -
    • addElement

      public boolean addElement(int j, Object element)
      Adds a new element at the position indicated by pos of the list.
      Parameters:
      j -
      pos -
    • addElement

      public boolean addElement(Object element)
      Adds a new element at the position indicated by pos of the list.
      Parameters:
      j -
      pos -
    • delElements

      public void delElements(Collection c)
      Removes every elements contained in the collection from this list.
    • delIndices

      public void delIndices(int[] indices)
      Removes the items of the list mentioned by the index array passed as argument.
      Parameters:
      indices -
    • itemsMoved

      public void itemsMoved(int newIndex, int[] indicies)
    • getSize

      public int getSize()
    • getElementAt

      public Object getElementAt(int index)
    • clear

      public void clear()
      Removes any item currently contained by this list.
    • getElements

      public ArrayList getElements()
      Returns an ArrayList containing the elements of this list.