Package com.nuix.nx.models
Class ArrangeableListModel<E>
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- com.nuix.nx.models.ArrangeableListModel<E>
-
- Type Parameters:
E- Generic data type this list will contain.
- All Implemented Interfaces:
java.io.Serializable,javax.swing.ListModel<E>
public class ArrangeableListModel<E> extends javax.swing.AbstractListModel<E>Custom ArrayList wrapper around an ArrayList which offers methods for shifting a contiguous range of entries earlier or later in the list (for shifting rows).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrangeableListModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(E element)voidclear()EgetElementAt(int index)intgetSize()voidremove(int index)booleanshiftRowsDown(int firstRowIndex, int lastRowIndex)booleanshiftRowsUp(int firstRowIndex, int lastRowIndex)intsize()
-
-
-
Method Detail
-
getElementAt
public E getElementAt(int index)
-
getSize
public int getSize()
-
size
public int size()
-
shiftRowsUp
public boolean shiftRowsUp(int firstRowIndex, int lastRowIndex)
-
shiftRowsDown
public boolean shiftRowsDown(int firstRowIndex, int lastRowIndex)
-
addElement
public void addElement(E element)
-
remove
public void remove(int index)
-
clear
public void clear()
-
-