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


Java AbstractTableModel.fireTableRowsDeleted方法代码示例

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


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

示例1: removeEntryFromImportLayouts

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void removeEntryFromImportLayouts() {
  int selected = myImportLayoutTable.getSelectedRow();
  if (selected < 0) {
    return;
  }
  PackageEntry entry = myImportLayoutList.getEntryAt(selected);
  if (entry == PackageEntry.ALL_OTHER_STATIC_IMPORTS_ENTRY || entry == PackageEntry.ALL_OTHER_IMPORTS_ENTRY) {
    return;
  }
  TableUtil.stopEditing(myImportLayoutTable);
  myImportLayoutList.removeEntryAt(selected);
  AbstractTableModel model = (AbstractTableModel)myImportLayoutTable.getModel();
  model.fireTableRowsDeleted(selected, selected);
  if (selected >= myImportLayoutList.getEntryCount()) {
    selected--;
  }
  if (selected >= 0) {
    myImportLayoutTable.setRowSelectionInterval(selected, selected);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:ImportLayoutPanel.java

示例2: removeRow

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void removeRow()
{
	int selected = myTable.getSelectedRow();
	if(selected < 0)
	{
		return;
	}
	myMigrationMap.removeEntryAt(selected);
	AbstractTableModel model = (AbstractTableModel) myTable.getModel();
	model.fireTableRowsDeleted(selected, selected);
	if(selected >= myMigrationMap.getEntryCount())
	{
		selected--;
	}
	if(selected >= 0)
	{
		myTable.setRowSelectionInterval(selected, selected);
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:20,代码来源:EditMigrationDialog.java

示例3: removeEntryFromPackages

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private static void removeEntryFromPackages(JBTable table, PackageEntryTable list) {
  int selected = table.getSelectedRow();
  if (selected < 0) return;
  TableUtil.stopEditing(table);
  list.removeEntryAt(selected);
  AbstractTableModel model = (AbstractTableModel)table.getModel();
  model.fireTableRowsDeleted(selected, selected);
  if (selected >= list.getEntryCount()) {
    selected--;
  }
  if (selected >= 0) {
    table.setRowSelectionInterval(selected, selected);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:PackagePanel.java

示例4: removeRow

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void removeRow() {
  int selected = myTable.getSelectedRow();
  if (selected < 0)
    return;
  myMigrationMap.removeEntryAt(selected);
  AbstractTableModel model = (AbstractTableModel)myTable.getModel();
  model.fireTableRowsDeleted(selected, selected);
  if (selected >= myMigrationMap.getEntryCount()){
    selected--;
  }
  if (selected >= 0){
    myTable.setRowSelectionInterval(selected, selected);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:EditMigrationDialog.java


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