Exemplo n.º 1
0
 public void refresh() {
   model.refresh();
   final int count = model.getItemCount();
   if (count < 1) {
     items = new Object[0];
     hotPointX = 0;
     hotPointY = 0;
     luwrain.onAreaNewContent(this);
     luwrain.onAreaNewHotPoint(this);
     return;
   }
   items = new Object[count];
   for (int i = 0; i < count; ++i) items[i] = model.getItem(i);
   if (hotPointY > items.length) hotPointY = items.length;
   hotPointX = 0;
   luwrain.onAreaNewContent(this);
   luwrain.onAreaNewHotPoint(this);
 }