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


Java ClearAllSelectionsCommand类代码示例

本文整理汇总了Java中org.eclipse.nebula.widgets.nattable.selection.command.ClearAllSelectionsCommand的典型用法代码示例。如果您正苦于以下问题:Java ClearAllSelectionsCommand类的具体用法?Java ClearAllSelectionsCommand怎么用?Java ClearAllSelectionsCommand使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ClearAllSelectionsCommand类属于org.eclipse.nebula.widgets.nattable.selection.command包,在下文中一共展示了ClearAllSelectionsCommand类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: instanceCellSelected

import org.eclipse.nebula.widgets.nattable.selection.command.ClearAllSelectionsCommand; //导入依赖的package包/类
@Override
public void instanceCellSelected(String instanceName,  InstanceTable instanceTable) {
	System.out.println(instanceName);
	ClearAllSelectionsCommand clearCmd=new ClearAllSelectionsCommand();
	for(InstanceTable it: instanceTableMap.values()){
		if(it!=instanceTable){
			it.doCommand(clearCmd);
			it.refresh();
		}
	}
	instanceTableCellSelected(instanceName);
}
 
开发者ID:HoratiusTang,项目名称:EsperDist,代码行数:13,代码来源:WorkerInstancesComposite2.java

示例2: goToInsertRow

import org.eclipse.nebula.widgets.nattable.selection.command.ClearAllSelectionsCommand; //导入依赖的package包/类
public void goToInsertRow() {
	if (table.commitAndCloseActiveCellEditor()) {
		table.setFocus();
		table.doCommand(new ClearAllSelectionsCommand());
		if (gridLayer != null && dataProvider != null) {
			int lastRow = dataProvider.getRowCount() - 1;
			table.doCommand(new ShowRowInViewportCommand(gridLayer.getBodyLayer().getViewportLayer(), lastRow));
			table.doCommand(new SelectCellCommand(gridLayer.getBodyLayer().getSelectionLayer(), 0, lastRow, true, true));
		}
	}
}
 
开发者ID:DaveVoorhis,项目名称:Rel,代码行数:12,代码来源:Editor.java

示例3: setSelection

import org.eclipse.nebula.widgets.nattable.selection.command.ClearAllSelectionsCommand; //导入依赖的package包/类
@Override
public void setSelection(ISelection selection){
	if (selection instanceof StructuredSelection) {
		if(!selection.isEmpty()) {
			List<?> list = ((StructuredSelection) selection).toList();
			int[] rowIdx = new int[list.size()];
			for (int i = 0; i < list.size(); i++) {
				rowIdx[i] = dataProvider.indexOfRowObject(list.get(i));
			}
			natTable.doCommand(new SelectRowsCommand(selectionLayer, 0, rowIdx, false, false, rowIdx[0]));
		} else {
			natTable.doCommand(new ClearAllSelectionsCommand());
		}
	}
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:16,代码来源:NatTableWrapper.java


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