当前位置: 首页>>代码示例>>Java>>正文


Java TransAction.setItemMove方法代码示例

本文整理汇总了Java中org.pentaho.di.core.undo.TransAction.setItemMove方法的典型用法代码示例。如果您正苦于以下问题:Java TransAction.setItemMove方法的具体用法?Java TransAction.setItemMove怎么用?Java TransAction.setItemMove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.core.undo.TransAction的用法示例。


在下文中一共展示了TransAction.setItemMove方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: moveRowDown

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private void moveRowDown()
{
       if (activeTableItem==null) return;
       
	if (activeTableRow<table.getItemCount()-1)
	{
		moveRow(activeTableRow, activeTableRow+1);
		
           TransAction ta = new TransAction();
		ta.setItemMove(new int[] { activeTableRow }, new int[] { activeTableRow+1 } );
		addUndo(ta);
		
           activeTableRow++;
           activeTableItem = table.getItem(activeTableRow);
           
		selectRows(activeTableRow, activeTableRow);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:19,代码来源:TableView.java

示例2: moveRowUp

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private void moveRowUp()
{
       if (activeTableItem==null) return;
       
       if (activeTableRow>0)
	{
		moveRow(activeTableRow, activeTableRow-1);

		TransAction ta = new TransAction();
		ta.setItemMove(new int[] { activeTableRow }, new int[] { activeTableRow-1} );
		addUndo(ta);

           activeTableRow--;
           activeTableItem = table.getItem(activeTableRow);
           
           selectRows(activeTableRow, activeTableRow);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:19,代码来源:TableView.java

示例3: moveRowsDown

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private int[] moveRowsDown(int selectionIndicies[]) {
	// Move the selected rows down starting with the lowest row  
	for (int i=selectionIndicies.length-1;i>=0;i--) {
		int row = selectionIndicies[i];
		int newRow = row + 1;
		moveRow(row, newRow);
		TransAction ta = new TransAction();
		ta.setItemMove(new int[] { row }, new int[] { newRow } );
		addUndo(ta);
		selectionIndicies[i] = newRow;
	}
	return selectionIndicies;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:TableView.java

示例4: moveRowsUp

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private int[] moveRowsUp(int selectionIndicies[]) {
	// Move the selected rows up starting with the highest row 
	for (int i=0;i<selectionIndicies.length;i++) {
		int row = selectionIndicies[i];
		int newRow = row - 1;
		moveRow(row, newRow);
		TransAction ta = new TransAction();
		ta.setItemMove(new int[] { row }, new int[] { newRow } );
		addUndo(ta);
		selectionIndicies[i] = newRow;
	}
	return selectionIndicies;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:TableView.java

示例5: moveRowsDown

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private int[] moveRowsDown(int selectionIndicies[]) {
  // Move the selected rows down starting with the lowest row
  for (int i = selectionIndicies.length - 1; i >= 0; i--) {
    int row = selectionIndicies[i];
    int newRow = row + 1;
    moveRow(row, newRow);
    TransAction ta = new TransAction();
    ta.setItemMove(new int[] { row }, new int[] { newRow });
    addUndo(ta);
    selectionIndicies[i] = newRow;
  }
  return selectionIndicies;
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:14,代码来源:TableView.java

示例6: moveRowsUp

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private int[] moveRowsUp(int selectionIndicies[]) {
  // Move the selected rows up starting with the highest row
  for (int i = 0; i < selectionIndicies.length; i++) {
    int row = selectionIndicies[i];
    int newRow = row - 1;
    moveRow(row, newRow);
    TransAction ta = new TransAction();
    ta.setItemMove(new int[] { row }, new int[] { newRow });
    addUndo(ta);
    selectionIndicies[i] = newRow;
  }
  return selectionIndicies;
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:14,代码来源:TableView.java

示例7: moveRowsDown

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private int[] moveRowsDown( int[] selectionIndicies ) {
  // Move the selected rows down starting with the lowest row
  for ( int i = selectionIndicies.length - 1; i >= 0; i-- ) {
    int row = selectionIndicies[i];
    int newRow = row + 1;
    moveRow( row, newRow );
    TransAction ta = new TransAction();
    ta.setItemMove( new int[]{ row }, new int[]{ newRow } );
    addUndo( ta );
    selectionIndicies[i] = newRow;
  }
  return selectionIndicies;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:14,代码来源:TableView.java

示例8: moveRowsUp

import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
private int[] moveRowsUp( int[] selectionIndicies ) {
  // Move the selected rows up starting with the highest row
  for ( int i = 0; i < selectionIndicies.length; i++ ) {
    int row = selectionIndicies[i];
    int newRow = row - 1;
    moveRow( row, newRow );
    TransAction ta = new TransAction();
    ta.setItemMove( new int[]{ row }, new int[]{ newRow } );
    addUndo( ta );
    selectionIndicies[i] = newRow;
  }
  return selectionIndicies;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:14,代码来源:TableView.java


注:本文中的org.pentaho.di.core.undo.TransAction.setItemMove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。