- All Implemented Interfaces:
Serializable,ListModel<UndoableEdit>
Displays undo history for undo manager at front of a list model.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionHistoryListModel(IamsoftUndoManager pUndoMgr) HistoryListModel(ListModel<? extends IamsoftUndoManager> pUndoMgrListModel) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRedo()booleancanUndo()getDateForEdit(UndoableEdit pEdit) getElementAt(int pIdx) intgetIndex()Index of next edit.intgetSize()protected ListModel<? extends IamsoftUndoManager>voidredo()voidredoTo(UndoableEdit pEdit) voidundo()voidundoTo(UndoableEdit pEdit) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Constructor Details
-
HistoryListModel
-
HistoryListModel
- Parameters:
pUndoMgrListModel- List model for a group of undo managers.
-
-
Method Details
-
getUndoMgrListModel
-
getElementAt
-
getDateForEdit
-
getSize
public int getSize() -
getIndex
public int getIndex()Index of next edit. -
canRedo
public boolean canRedo() -
canUndo
public boolean canUndo() -
redo
public void redo() -
redoTo
-
undo
public void undo() -
undoTo
-
getUndoPresentationName
-
getRedoPresentationName
-