Exemplo n.º 1
0
 @Override
 void setUp() {
   grid = scrollPanel.viewPort().panel().vertical().add().panel().grid();
   decorator.decorate(grid);
   scrollPanel.height(height);
   grid.spacing(0);
   grid.indent(0);
   grid.resize(maxColumns, Math.min(maxRows, RESIZE_INTERVALL));
   scrollPanel.addScrollListener(this);
   grid.spacing(spacing);
   grid.indent(indent);
   for (IGridClickListener l : listeners.keySet()) {
     String key = listeners.get(l);
     IKey<IGridPanel> keyCB = grid.addGridClickListener(l);
     if (SHIFT.equals(key)) {
       keyCB.shiftPressed();
     } else if (CTRL.equals(key)) keyCB.ctrlPressed();
   }
   onScroll(0);
 }