com.im.df.api 5.8

com.im.df.api.support
Class DFUndoConfig

java.lang.Object
  extended by com.im.df.api.support.DFUndoConfig

public final class DFUndoConfig
extends Object

The config parameter for operations which are undoable (see DFEntityDataProvider methods for example).

You have basicaly three options how to use this configuration object:


Field Summary
static DFUndoConfig OFF
           
 
Method Summary
static DFUndoConfig create(String undoName, boolean allChangesAsSingleUndo)
           
 String getUndoName()
          Display name of undo
 boolean isAllChangesAsSingleUndo()
          Should all changes be grouped in a single undo operation?
 boolean isUndoEnabled()
          Is undo enabled?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFF

public static final DFUndoConfig OFF
Method Detail

create

public static DFUndoConfig create(String undoName,
                                  boolean allChangesAsSingleUndo)
Parameters:
undoName - Name of undo opearation e.g. "Insert rows", "Paste",...
allChangesAsSingleUndo - If all changes should be grouped into a single undo operation
Returns:
The configuration

isUndoEnabled

public boolean isUndoEnabled()
Is undo enabled?

Returns:
false for OFF otherwise true.

isAllChangesAsSingleUndo

public boolean isAllChangesAsSingleUndo()
Should all changes be grouped in a single undo operation?


getUndoName

public String getUndoName()
Display name of undo

Returns:
The name of undo operation

com.im.df.api 5.8