public class UndoRedoPool
extends java.lang.Object
implements java.io.Serializable
Pool of Undo/Redo
Constructor and Description |
---|
UndoRedoPool(int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo()
Is there something to redo ?
|
boolean |
canUndo()
Is there something to undo ?
|
void |
clear(Grant g) |
UndoRedo |
getBackward()
Get the backward UndoRedo if exists
|
UndoRedo |
getForward()
Get the forward UndoRedo if exists
|
java.util.Vector<UndoRedo> |
getPool() |
java.lang.String |
getRedoLabel()
Return the label to redo if exists
|
java.lang.String |
getRedoLabel(int index) |
java.lang.String[] |
getRedoLabels()
Return the labels to redo if exists
|
java.lang.String |
getUndoLabel()
Return the label to undo if exists
|
java.lang.String |
getUndoLabel(int index) |
java.lang.String[] |
getUndoLabels()
Return the labels to undo if exists
|
void |
push(UndoRedo ur)
Append a coherent undo/redo at the current undone position
and discard any forward actions
|
FlowXML |
redo(Grant g)
Redo the changes of current position (if the first object's preRedo returns true)
|
FlowXML |
undo(Grant g)
Undo the changes of current position (if the first object's preUndo returns true)
|
public java.util.Vector<UndoRedo> getPool()
public void clear(Grant g)
public boolean canUndo()
public java.lang.String getUndoLabel()
public java.lang.String getUndoLabel(int index)
public java.lang.String[] getUndoLabels()
public boolean canRedo()
public java.lang.String getRedoLabel()
public java.lang.String getRedoLabel(int index)
public java.lang.String[] getRedoLabels()
public UndoRedo getBackward()
public UndoRedo getForward()
public FlowXML undo(Grant g)
public FlowXML redo(Grant g)
public void push(UndoRedo ur)
Copyright (c)2006-2014 Simplicite Software. All Rights Reserved.