public class HistoryListModel extends AbstractListModel<UndoableEdit>
listenerList
Constructor and Description |
---|
HistoryListModel(IamsoftUndoManager pUndoMgr) |
HistoryListModel(ListModel<? extends IamsoftUndoManager> pUndoMgrListModel) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo() |
boolean |
canUndo() |
Date |
getDateForEdit(UndoableEdit pEdit) |
UndoableEdit |
getElementAt(int pIdx) |
int |
getIndex()
Index of next edit.
|
String |
getRedoPresentationName() |
int |
getSize() |
protected ListModel<? extends IamsoftUndoManager> |
getUndoMgrListModel() |
String |
getUndoPresentationName() |
void |
redo() |
void |
redoTo(UndoableEdit pEdit) |
void |
undo() |
void |
undoTo(UndoableEdit pEdit) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public HistoryListModel(IamsoftUndoManager pUndoMgr)
public HistoryListModel(ListModel<? extends IamsoftUndoManager> pUndoMgrListModel)
pUndoMgrListModel
- List model for a group of undo managers.protected ListModel<? extends IamsoftUndoManager> getUndoMgrListModel()
public UndoableEdit getElementAt(int pIdx)
public Date getDateForEdit(UndoableEdit pEdit)
public int getSize()
public int getIndex()
public boolean canRedo()
public boolean canUndo()
public void redo()
public void redoTo(UndoableEdit pEdit)
public void undo()
public void undoTo(UndoableEdit pEdit)
public String getUndoPresentationName()
public String getRedoPresentationName()
Copyright © 2023. All rights reserved.