com.l2fprod.common.swing.list
Interface MutableListModel

All Superinterfaces:
javax.swing.ListModel
All Known Implementing Classes:
AbstractMutableListTableModel

public interface MutableListModel
extends javax.swing.ListModel


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

add

void add(java.lang.Object element)
Appends the specified element to the end of this list (optional operation).

Parameters:
element - an Object value

add

void add(int index,
         java.lang.Object element)
Inserts the specified element at the specified position in this list (optional operation).

Parameters:
index - an int value
element - an Object value

removeAll

void removeAll()
Remove All Elements from this list model.


remove

java.lang.Object remove(int index)
Remove the element at index

Parameters:
index - an int value
Returns:
the element previously at the specified position.

moveToTop

void moveToTop(int index)
Move the object at index to the top of the list.

Parameters:
index - an int value

moveUp

void moveUp(int index)
Move the object at index one line up

Parameters:
index - an int value

moveDown

void moveDown(int index)
Move the object at index one line down

Parameters:
index - an int value

moveToBottom

void moveToBottom(int index)
Move the object at index to the bottom of the list.

Parameters:
index - an int value

moveTo

void moveTo(int oldIndex0,
            int oldIndex1,
            int newIndex0)
Move the objects between oldIndex0 and oldIndex1 to the new position newIndex0.

Parameters:
oldIndex0 - oldIndex0 the limits of the interval to move
oldIndex1 - oldIndex1 the limits of the interval to move
newIndex0 - the new position of the element that was at oldIndex0