示例#1
0
 /** {@inheritDoc} */
 @Override
 public int getCreationIndex(int visualIndex) {
   if (item != null && !item.isDisposed() && hasColumns() && isValidOrderIndex(visualIndex)) {
     return item.getParent().getColumnOrder()[visualIndex];
   }
   return super.getCreationIndex(visualIndex);
 }
示例#2
0
  private ViewerRow getRowBelow() {
    int index = item.getParent().indexOf(item) + 1;

    if (index < item.getParent().getItemCount()) {
      GridItem tmp = item.getParent().getItem(index);
      // Maybe this is a dummy item!!

      if (tmp != null && !tmp.isDisposed() && tmp.isVisible() && tmp.getData() != null) {
        return new GridViewerRow(tmp);
      }
    }

    return null;
  }