|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--voji.ui.JOrderList.OrderListModel
This is the list model for OrderLists
| Field Summary | |
protected int[] |
ids
The IDs |
protected java.lang.Object[] |
values
The shown items |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
JOrderList.OrderListModel()
Constructs an OrderListModel with empty data |
|
| Method Summary | |
java.lang.Object |
getElementAt(int index)
|
int[] |
getOrder()
Returns the IDs in their current order |
int |
getSize()
|
void |
moveItem(int from,
int to)
Moves an item |
void |
setItems(java.util.Vector items)
Sets the items of this model. |
protected void |
switchItems(int index1,
int index2)
Switches the positions of two items |
| Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int[] ids
protected java.lang.Object[] values
| Constructor Detail |
public JOrderList.OrderListModel()
| Method Detail |
public int getSize()
public java.lang.Object getElementAt(int index)
index - the index whose value has to be retrieved
public void setItems(java.util.Vector items)
items - the Vector of Vector of [Integer,Object]
where to take the items from.public int[] getOrder()
protected void switchItems(int index1,
int index2)
index1 - index2 - the two indices of these items
public void moveItem(int from,
int to)
from - the index of the item to moveto - the index where to move the item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||