本文整理汇总了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);
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}