| java.lang.Object javax.swing.AbstractListModel org.acm.seguin.awt.OrderableListModel
OrderableListModel | class OrderableListModel extends AbstractListModel (Code) | | Contains a list of items for a list box that can be reordered
author: Chris Seguin |
OrderableListModel | public OrderableListModel()(Code) | | Constructor for the OrderableListModel object
|
getData | public Object[] getData()(Code) | | Gets the Data attribute of the OrderableListModel object
The Data value |
getElementAt | public Object getElementAt(int index)(Code) | | Gets the Element At from the data array
Parameters: index - the index into the array The ElementAt value |
getSize | public int getSize()(Code) | | Gets the Size attribute of the OrderableListModel object
The Size value |
setData | public void setData(Object[] value)(Code) | | Sets the Data attribute of the OrderableListModel object
Parameters: value - The new Data value |
setList | public void setList(JList value)(Code) | | Sets the List attribute of the OrderableListModel object
Parameters: value - The new List value |
swap | public void swap(int first, int second)(Code) | | Swaps two items in the list box
Parameters: first - the first one Parameters: second - the second one |
|
|