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 |
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 createUndoable(String presentationName)
public void setName(String name)
public String getName()
public void setPresentationName(String name)
public String getPresentationName()
getPresentationName
in interface UndoableEdit
public boolean canUndo()
canUndo
in interface UndoableEdit
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
CannotUndoException
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
CannotRedoException
public boolean canRedo()
canRedo
in interface UndoableEdit
public String getUndoPresentationName()
getUndoPresentationName
in interface UndoableEdit
public String getRedoPresentationName()
getRedoPresentationName
in interface UndoableEdit
public boolean isSignificant()
isSignificant
in interface UndoableEdit
public boolean addEdit(UndoableEdit anEdit)
addEdit
in interface UndoableEdit
public void die()
die
in interface UndoableEdit
public boolean replaceEdit(UndoableEdit anEdit)
replaceEdit
in interface UndoableEdit
public void setAllowReplace(boolean b)
public boolean getAllowReplace()
public void setAllowRedo(boolean b)
public boolean getAllowRedo()
Copyright © 1999–2019 ViaOA. All rights reserved.