|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 DefaultListModel
public void removeElementAt(int index)
removeElementAt
in class DefaultListModel
public void insertElementAt(Object obj, int index)
insertElementAt
in class DefaultListModel
public void addElement(Object obj)
addElement
in class DefaultListModel
public boolean removeElement(Object obj)
removeElement
in class DefaultListModel
public 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 DefaultListModel
public Object remove(int index)
remove
in class DefaultListModel
public 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 ListUndoableSupport
content
- the row contentindex
- the row indexpublic void undoableRemoveElementAt(int index)
ListUndoableSupport
undoableRemoveElementAt
in interface ListUndoableSupport
index
- the row indexpublic void undoableSetElementAt(Object newContent, int index)
ListUndoableSupport
undoableSetElementAt
in interface ListUndoableSupport
newContent
- the row contentindex
- the row indexpublic UndoManager getUndoManager()
UndoableSupport
getUndoManager
in interface UndoableSupport
public UndoableEditSupport getUndoableEditSupport()
UndoableSupport
getUndoableEditSupport
in interface UndoableSupport
public void beginCompoundEdit(boolean isUndoRedo)
UndoableSupport
beginCompoundEdit
in interface UndoableSupport
isUndoRedo
- the flag to indicate if this operation is triggered by undo/redopublic void endCompoundEdit()
UndoableSupport
endCompoundEdit
in interface UndoableSupport
public void fireListDataEvent(ListDataEvent event)
EventFireListModel
fireListDataEvent
in interface EventFireListModel
event
- the event
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |