|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MutableListModel
| Nested Class Summary | |
|---|---|
static interface |
MutableListModel.ActionList
|
static class |
MutableListModel.Actions
Standard list of Actions that could be plugged to a list. |
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this list (optional operation). |
void |
add(java.lang.Object element)
Appends the specified element to the end of this list (optional operation). |
void |
moveDown(int index)
Move the object at index one line down |
void |
moveTo(int oldIndex0,
int oldIndex1,
int newIndex0)
Move the objects between oldIndex0 and
oldIndex1 to the new position newIndex0. |
void |
moveToBottom(int index)
Move the object at index to the bottom of the list. |
void |
moveToTop(int index)
Move the object at index to the top of the list. |
void |
moveUp(int index)
Move the object at index one line up |
java.lang.Object |
remove(int index)
Remove the element at index |
void |
removeAll()
Remove All Elements from this list model. |
| Methods inherited from interface javax.swing.ListModel |
|---|
addListDataListener, getElementAt, getSize, removeListDataListener |
| Method Detail |
|---|
void add(java.lang.Object element)
element - an Object value
void add(int index,
java.lang.Object element)
index - an int valueelement - an Object valuevoid removeAll()
java.lang.Object remove(int index)
index
index - an int value
void moveToTop(int index)
index to the top of the list.
index - an int valuevoid moveUp(int index)
index one line up
index - an int valuevoid moveDown(int index)
index one line down
index - an int valuevoid moveToBottom(int index)
index to the bottom of the list.
index - an int value
void moveTo(int oldIndex0,
int oldIndex1,
int newIndex0)
oldIndex0 and
oldIndex1 to the new position newIndex0.
oldIndex0 - oldIndex0 the limits of the interval to moveoldIndex1 - oldIndex1 the limits of the interval to movenewIndex0 - the new position of the element that was at oldIndex0
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||