JIDE 3.5.15

com.jidesoft.list
Interface ListUndoableSupport

All Superinterfaces:
EventFireListModel, UndoableSupport
All Known Implementing Classes:
AbstractUndoableListModel, DefaultUndoableListModel

public interface ListUndoableSupport
extends UndoableSupport, EventFireListModel

Undoable support for ListModel to implement.

Since:
3.3.5

Method Summary
 void undoableInsertElementAt(Object content, int index)
          Inserts a row at the designated row index.
 void undoableRemoveElementAt(int index)
          Removes a row at the designated row index.
 void undoableSetElementAt(Object newContent, int index)
          Updates a row at the designated row index with the new row content .
 
Methods inherited from interface com.jidesoft.swing.UndoableSupport
beginCompoundEdit, endCompoundEdit, getUndoableEditSupport, getUndoManager
 
Methods inherited from interface com.jidesoft.list.EventFireListModel
fireListDataEvent
 

Method Detail

undoableInsertElementAt

void undoableInsertElementAt(Object content,
                             int index)
Inserts a row at the designated row index.

Invoking this method will be able to insert a row, then adds an UndoableEdit or fires an event if necessary.

Parameters:
content - the row content
index - the row index

undoableRemoveElementAt

void undoableRemoveElementAt(int index)
Removes a row at the designated row index.

Invoking this method will be able to remove a row, then adds an UndoableEdit or fires an event if necessary.

Parameters:
index - the row index

undoableSetElementAt

void undoableSetElementAt(Object newContent,
                          int index)
Updates a row at the designated row index with the new row content .

Invoking this method will be able to update a row, then adds an UndoableEdit or fires an event if necessary.

Parameters:
newContent - the row content
index - the row index

JIDE 3.5.15