Java AbstractTableModel.fireTableRowsInserted方法代码示例(javaabstracttablemodel.firetablerowsinserted方法的典型用法代码示例)

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


Java AbstractTableModel.fireTableRowsInserted方法代码示例(javaabstracttablemodel.firetablerowsinserted方法的典型用法代码示例)

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

示例1: addBlankLine

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void addBlankLine() {
  int selected = myImportLayoutTable.getSelectedRow() + 1;
  if (selected < 0) {
    selected = myImportLayoutList.getEntryCount();
  }
  myImportLayoutList.insertEntryAt(PackageEntry.BLANK_LINE_ENTRY, selected);
  AbstractTableModel model = (AbstractTableModel)myImportLayoutTable.getModel();
  model.fireTableRowsInserted(selected, selected);
  myImportLayoutTable.setRowSelectionInterval(selected, selected);
} 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ImportLayoutPanel.java

示例2: refreshTableModel

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
public static void refreshTableModel(int selectedRow, JBTable table) {
  AbstractTableModel model = (AbstractTableModel)table.getModel();
  model.fireTableRowsInserted(selectedRow, selectedRow);
  table.setRowSelectionInterval(selectedRow, selectedRow);
  TableUtil.editCellAt(table, selectedRow, 0);
  Component editorComp = table.getEditorComponent();
  if (editorComp != null) {
    editorComp.requestFocus();
  }
} 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ImportLayoutPanel.java

示例3: addRow

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void addRow() {
  EditMigrationEntryDialog dialog = new EditMigrationEntryDialog(myProject);
  MigrationMapEntry entry = new MigrationMapEntry();
  dialog.setEntry(entry);
  if (!dialog.showAndGet()) {
    return;
  }
  dialog.updateEntry(entry);
  myMigrationMap.addEntry(entry);
  AbstractTableModel model = (AbstractTableModel)myTable.getModel();
  model.fireTableRowsInserted(myMigrationMap.getEntryCount() - 1, myMigrationMap.getEntryCount() - 1);
  myTable.setRowSelectionInterval(myMigrationMap.getEntryCount() - 1, myMigrationMap.getEntryCount() - 1);
} 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:EditMigrationDialog.java

示例4: addRow

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void addRow() {
  EditMigrationEntryDialog dialog = new EditMigrationEntryDialog(myProject);
  MigrationMapEntry entry = new MigrationMapEntry();
  dialog.setEntry(entry);
  dialog.show();
  if (!dialog.isOK()){
    return;
  }
  dialog.updateEntry(entry);
  myMigrationMap.addEntry(entry);
  AbstractTableModel model = (AbstractTableModel)myTable.getModel();
  model.fireTableRowsInserted(myMigrationMap.getEntryCount() - 1, myMigrationMap.getEntryCount() - 1);
  myTable.setRowSelectionInterval(myMigrationMap.getEntryCount() - 1, myMigrationMap.getEntryCount() - 1);
} 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:15,代码来源:EditMigrationDialog.java

示例5: addRow

import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void addRow()
{
	EditMigrationEntryDialog dialog = new EditMigrationEntryDialog(myProject);
	MigrationMapEntry entry = new MigrationMapEntry();
	dialog.setEntry(entry);
	if(!dialog.showAndGet())
	{
		return;
	}
	dialog.updateEntry(entry);
	myMigrationMap.addEntry(entry);
	AbstractTableModel model = (AbstractTableModel) myTable.getModel();
	model.fireTableRowsInserted(myMigrationMap.getEntryCount() - 1, myMigrationMap.getEntryCount() - 1);
	myTable.setRowSelectionInterval(myMigrationMap.getEntryCount() - 1, myMigrationMap.getEntryCount() - 1);
} 
开发者ID:consulo,项目名称:consulo-java,代码行数:16,代码来源:EditMigrationDialog.java

本文标签属性:

示例:示例英文

代码:代码编程

java:java自行车

AbstractTableModel:AbstractTableModel

fireTableRowsInserted:fireTableRowsInserted

上一篇:Java CircleShape.dispose方法代码示例(javacircleshape.dispose典型用法代码示例汇总)
下一篇:四川内江5.4级地震(四川内江发生5.4级地震,未造成人员伤亡)(详细了解四川内江5.2级地震震中)(四川内江5.2级地震)

为您推荐