Class TransAction


  • public class TransAction
    extends Object
    This class store undo and redo information... Possible changes to a transformation:

    step

    hop

    note

    connection

    Build an Undo/Redo class containing:

    Type of change

    Description of action

    Link to previous infomation

    Since:
    19-12-2003
    Author:
    Matt
    • Constructor Detail

      • TransAction

        public TransAction()
    • Method Detail

      • setDelete

        public void setDelete​(Object[] prev,
                              int[] idx)
      • setChanged

        public void setChanged​(Object[] prev,
                               Object[] curr,
                               int[] idx)
      • setNew

        public void setNew​(Object[] prev,
                           int[] position)
      • setPosition

        public void setPosition​(Object[] obj,
                                int[] idx,
                                org.pentaho.di.core.gui.Point[] prev,
                                org.pentaho.di.core.gui.Point[] curr)
      • setItemMove

        public void setItemMove​(int[] prev,
                                int[] curr)
      • getType

        public int getType()
      • getPrevious

        public Object[] getPrevious()
      • getCurrent

        public Object[] getCurrent()
      • getPreviousLocation

        public org.pentaho.di.core.gui.Point[] getPreviousLocation()
      • getCurrentLocation

        public org.pentaho.di.core.gui.Point[] getCurrentLocation()
      • getPreviousIndex

        public int[] getPreviousIndex()
      • getCurrentIndex

        public int[] getCurrentIndex()
      • setNextAlso

        public void setNextAlso​(boolean nextAlso)
        Indicate that the next operations needs to be undone too.
        Parameters:
        nextAlso - The nextAlso to set.
      • getNextAlso

        public boolean getNextAlso()
        Get the status of the nextAlso flag.
        Returns:
        true if the next operation needs to be done too.