pockeview: common code for all tree elements.