# File lib/cgikit/displaygroup.rb, line 386 def select_next if @objects.empty? then # do nothing elsif @selections.empty? then obj = @objects[0] self.selection = obj elsif @selections.first == @displays.last then obj = @displays.first self.selection = obj else index = @objects.index(@selections.first) + 1 obj = @objects[index] self.selection = obj end end