Example #1
0
 protected void onKeyUp(ComponentEvent ce) {
   ce.stopEvent();
   if (tryActivate(indexOf(activeItem) - 1, -1) == null) {
     tryActivate(getItemCount() - 1, -1);
   }
 }
Example #2
0
 protected void onKeyDown(ComponentEvent ce) {
   ce.stopEvent();
   if (tryActivate(indexOf(activeItem) + 1, 1) == null) {
     tryActivate(0, 1);
   }
 }