Package org.pentaho.di.core.gui
Interface UndoInterface
- All Known Implementing Classes:
AbstractMeta
,JobMeta
,TransMeta
public interface UndoInterface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUndo
(Object[] from, Object[] to, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, int type_of_change, boolean nextAlso) Add an undo operation to the undo listint
Get the maximum number of undo operations possiblenextUndo()
Get the next undo transaction on the list.Get the previous undo operation and change the undo pointervoid
setMaxUndo
(int mu) Sets the maximum number of undo operations that are allowed.Get the next undo transaction on the list.View previous undo, don't change undo positionView current undo, don't change undo position
-
Method Details
-
addUndo
void addUndo(Object[] from, Object[] to, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, int type_of_change, boolean nextAlso) Add an undo operation to the undo list- Parameters:
from
- array of objects representing the old stateto
- array of objectes representing the new statepos
- An array of object locationsprev
- An array of points representing the old positionscurr
- An array of points representing the new positionstype_of_change
- The type of change that's being done to the transformation.nextAlso
- indicates that the next undo operation needs to follow this one.
-
getMaxUndo
int getMaxUndo()Get the maximum number of undo operations possible- Returns:
- The maximum number of undo operations that are allowed.
-
setMaxUndo
void setMaxUndo(int mu) Sets the maximum number of undo operations that are allowed.- Parameters:
mu
- The maximum number of undo operations that are allowed.
-
previousUndo
TransAction previousUndo()Get the previous undo operation and change the undo pointer- Returns:
- The undo transaction to be performed.
-
viewThisUndo
TransAction viewThisUndo()View current undo, don't change undo position- Returns:
- The current undo transaction
-
viewPreviousUndo
TransAction viewPreviousUndo()View previous undo, don't change undo position- Returns:
- The previous undo transaction
-
nextUndo
TransAction nextUndo()Get the next undo transaction on the list. Change the undo pointer.- Returns:
- The next undo transaction (for redo)
-
viewNextUndo
TransAction viewNextUndo()Get the next undo transaction on the list.- Returns:
- The next undo transaction (for redo)
-