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