|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.DefaultListModel
com.jidesoft.list.DefaultUndoableListModel
public class DefaultUndoableListModel
Default undoable ListModel.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DefaultUndoableListModel()
The constructor. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object element)
|
void |
addElement(Object obj)
|
void |
beginCompoundEdit(boolean isUndoRedo)
Begins the edit of the model. |
void |
clear()
|
void |
endCompoundEdit()
Ends the edit of the model. |
void |
fireListDataEvent(ListDataEvent event)
Fires a ListDataEvent. |
UndoableEditSupport |
getUndoableEditSupport()
Gets the UndoableEditSupport instance to add UndoableListener. |
UndoManager |
getUndoManager()
Gets the UndoManager. |
void |
insertElementAt(Object obj,
int index)
|
Object |
remove(int index)
|
void |
removeAllElements()
|
boolean |
removeElement(Object obj)
|
void |
removeElementAt(int index)
|
void |
removeRange(int fromIndex,
int toIndex)
|
Object |
set(int index,
Object element)
|
void |
setElementAt(Object obj,
int index)
|
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 class javax.swing.DefaultListModel |
|---|
capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, setSize, size, toArray, toString, trimToSize |
| 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, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUndoableListModel()
| Method Detail |
|---|
public void setElementAt(Object obj,
int index)
setElementAt in class DefaultListModelpublic void removeElementAt(int index)
removeElementAt in class DefaultListModel
public void insertElementAt(Object obj,
int index)
insertElementAt in class DefaultListModelpublic void addElement(Object obj)
addElement in class DefaultListModelpublic boolean removeElement(Object obj)
removeElement in class DefaultListModelpublic void removeAllElements()
removeAllElements in class DefaultListModel
public Object set(int index,
Object element)
set in class DefaultListModel
public void add(int index,
Object element)
add in class DefaultListModelpublic Object remove(int index)
remove in class DefaultListModelpublic void clear()
clear in class DefaultListModel
public void removeRange(int fromIndex,
int toIndex)
removeRange in class DefaultListModel
public void undoableInsertElementAt(Object content,
int index)
ListUndoableSupport
undoableInsertElementAt in interface ListUndoableSupportcontent - the row contentindex - the row indexpublic void undoableRemoveElementAt(int index)
ListUndoableSupport
undoableRemoveElementAt in interface ListUndoableSupportindex - the row index
public void undoableSetElementAt(Object newContent,
int index)
ListUndoableSupport
undoableSetElementAt in interface ListUndoableSupportnewContent - the row contentindex - the row indexpublic UndoManager getUndoManager()
UndoableSupport
getUndoManager in interface UndoableSupportpublic UndoableEditSupport getUndoableEditSupport()
UndoableSupport
getUndoableEditSupport in interface UndoableSupportpublic void beginCompoundEdit(boolean isUndoRedo)
UndoableSupport
beginCompoundEdit in interface UndoableSupportisUndoRedo - the flag to indicate if this operation is triggered by undo/redopublic void endCompoundEdit()
UndoableSupport
endCompoundEdit in interface UndoableSupportpublic void fireListDataEvent(ListDataEvent event)
EventFireListModel
fireListDataEvent in interface EventFireListModelevent - the event
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||