When the Pacific island nation of Nauru temporarily switched relations to mainland China in July 2002 , President Chen Shui-bian of Taiwan infuriated Beijing by suggesting in two public remarks that Taiwan was moving toward greater political separation from the mainland .