|
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 com.jidesoft.list.AbstractUndoableListModel
public abstract class AbstractUndoableListModel
Abstract undoable list model that extends AbstractListModel.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
AbstractUndoableListModel()
The Constructor. |
Method Summary | |
---|---|
void |
beginCompoundEdit(boolean isUndoRedo)
Begins the edit of the model. |
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. |
abstract boolean |
insertElementAtImpl(Object content,
int index)
Inserts an element in this list model. |
abstract boolean |
removeElementAtImpl(int index)
Removes an element in this list model. |
abstract boolean |
setElementAtImpl(Object content,
int index)
Updates an element in this list model. |
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.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
---|
getElementAt, getSize |
Constructor Detail |
---|
public AbstractUndoableListModel()
Method Detail |
---|
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 eventpublic abstract boolean insertElementAtImpl(Object content, int index)
content
- the content of the elementindex
- the element index
public abstract boolean removeElementAtImpl(int index)
index
- the element index
public abstract boolean setElementAtImpl(Object content, int index)
content
- the content of the elementindex
- the element index
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |