public class OAUndoableEdit extends Object implements UndoableEdit
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD |
static int |
CHANGEAO |
static int |
HOLDER |
static int |
INSERT |
static int |
MOVE |
static int |
PROPCHANGE |
static int |
PROPERTYCHANGE |
static int |
REMOVE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEdit(UndoableEdit anEdit) |
boolean |
canRedo() |
boolean |
canUndo() |
static OAUndoableEdit |
createUndoable(String presentationName) |
static OAUndoableEdit |
createUndoableAdd(String presentationName,
Hub hub,
Object obj) |
static OAUndoableEdit |
createUndoableChangeAO(String presentationName,
Hub hub,
Object prevObject,
Object newObject) |
static OAUndoableEdit |
createUndoableInsert(String presentationName,
Hub hub,
Object obj,
int pos) |
static OAUndoableEdit |
createUndoableMove(String presentationName,
Hub hub,
int prevPos,
int newPos) |
static OAUndoableEdit |
createUndoablePropertyChange(String presentationName,
Object obj,
String prop,
Object prevValue,
Object newValue) |
static OAUndoableEdit |
createUndoablePropertyChange(String presentationName,
Object obj,
String prop,
Object prevValue,
Object newValue,
boolean wasChanged) |
static OAUndoableEdit |
createUndoableRemove(String presentationName,
Hub hub,
Object obj,
int pos) |
void |
die() |
boolean |
equals(Object obj) |
boolean |
getAllowRedo() |
boolean |
getAllowReplace() |
String |
getName() |
String |
getPresentationName() |
String |
getRedoPresentationName() |
String |
getUndoPresentationName() |
int |
hashCode() |
boolean |
isSignificant() |
void |
redo() |
boolean |
replaceEdit(UndoableEdit anEdit) |
void |
setAllowRedo(boolean b) |
void |
setAllowReplace(boolean b)
if true, an event can replace a previous matching event that is equals()
|
void |
setName(String name) |
void |
setPresentationName(String name) |
void |
undo() |
public static final int ADD
public static final int REMOVE
public static final int MOVE
public static final int INSERT
public static final int CHANGEAO
public static final int PROPCHANGE
public static final int PROPERTYCHANGE
public static final int HOLDER
public static OAUndoableEdit createUndoableAdd(String presentationName, Hub hub, Object obj)
public static OAUndoableEdit createUndoableChangeAO(String presentationName, Hub hub, Object prevObject, Object newObject)
public static OAUndoableEdit createUndoableInsert(String presentationName, Hub hub, Object obj, int pos)
public static OAUndoableEdit createUndoableRemove(String presentationName, Hub hub, Object obj, int pos)
public static OAUndoableEdit createUndoableMove(String presentationName, Hub hub, int prevPos, int newPos)
public static OAUndoableEdit createUndoablePropertyChange(String presentationName, Object obj, String prop, Object prevValue, Object newValue)
public static OAUndoableEdit createUndoablePropertyChange(String presentationName, Object obj, String prop, Object prevValue, Object newValue, boolean wasChanged)
public static OAUndoableEdit createUndoable(String presentationName)
public void setName(String name)
public String getName()
public void setPresentationName(String name)
public String getPresentationName()
getPresentationName in interface UndoableEditpublic boolean canUndo()
canUndo in interface UndoableEditpublic void undo()
throws CannotUndoException
undo in interface UndoableEditCannotUndoExceptionpublic void redo()
throws CannotRedoException
redo in interface UndoableEditCannotRedoExceptionpublic boolean canRedo()
canRedo in interface UndoableEditpublic String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditpublic boolean isSignificant()
isSignificant in interface UndoableEditpublic boolean addEdit(UndoableEdit anEdit)
addEdit in interface UndoableEditpublic void die()
die in interface UndoableEditpublic boolean replaceEdit(UndoableEdit anEdit)
replaceEdit in interface UndoableEditpublic void setAllowReplace(boolean b)
public boolean getAllowReplace()
public void setAllowRedo(boolean b)
public boolean getAllowRedo()
Copyright © 1999–2025 ViaOA. All rights reserved.