Retrieves a boolean value indicating whether the edit control can undo the last operation.
public final boolean canUndo()
Returns true if the edit control can undo the last operation; otherwise, returns false.
If this method returns true, you can call the undo method to undo the last operation.