Exemple #1
0
 /**
  * Initializes wheel
  *
  * @param id the wheel widget Id
  */
 private WheelView initWheel(int id) {
   WheelView wheel = getWheel(id);
   wheel.setViewAdapter(new SlotMachineAdapter(this));
   wheel.addChangingListener(changedListener);
   wheel.addScrollingListener(scrolledListener);
   wheel.setCyclic(true);
   wheel.setEnabled(false);
   return wheel;
 }