javax.swing.table.AbstractTableModel.fireTableRowsInserted()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中javax.swing.table.AbstractTableModel.fireTableRowsInserted()方法的一些代码示例,展示了AbstractTableModel.fireTableRowsInserted()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractTableModel.fireTableRowsInserted()方法的具体详情如下:
包路径:javax.swing.table.AbstractTableModel
类名称:AbstractTableModel
方法名:fireTableRowsInserted

AbstractTableModel.fireTableRowsInserted介绍

暂无

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

public synchronized boolean addLogRecord(LogRecord record) {
 _allRecords.add(record);
 if (_filter.passes(record) == false) {
  return false;
 }
 getFilteredRecords().add(record);
 fireTableRowsInserted(getRowCount(), getRowCount());
 trimRecords();
 return true;
}

代码示例来源:origin: camunda/camunda-bpm-platform

fireTableDataChanged();
} else {
  fireTableRowsInserted(0, index - 1);

代码示例来源:origin: stackoverflow.com

fireTableRowsInserted(rowCount, rowCount);

代码示例来源:origin: stackoverflow.com

int rowCount = getRowCount();
data.add(value);
fireTableRowsInserted(rowCount, rowCount);
int rowCount = getRowCount();
data.addAll(rows);
fireTableRowsInserted(rowCount, getRowCount() - 1);

代码示例来源:origin: stackoverflow.com

int rowCount = getRowCount();
data.add(value);
fireTableRowsInserted(rowCount, rowCount);
int rowCount = getRowCount();
data.addAll(rows);
fireTableRowsInserted(rowCount, getRowCount() - 1);

代码示例来源:origin: com.samskivert/samskivert

/**
 * Insert the specified element at the specified row.
 */
public void insertDatum (Object element, int row)
{
  _data.add(row, element);
  _model.fireTableRowsInserted(row, row);
}

代码示例来源:origin: psidev.psi.mi/psimi-schema-validator

private void removeRow( int index ) {
  data.remove( index );
  //this is the method of AbstractTableModel
  super.fireTableRowsInserted( index, index );
}

代码示例来源:origin: freeplane/freeplane

void insertCondition(int index, boolean isActive, ASelectableCondition condition, IStyle style, boolean isLast){
  styles.add(index, new Item(isActive, condition, style, isLast));
  if(table == null){
    return;
  }
  table.fireTableRowsInserted(index, index);
}

代码示例来源:origin: freeplane/freeplane

void addCondition(boolean isActive, ASelectableCondition condition, IStyle style, boolean isLast){
  styles.add(new Item(isActive, condition, style, isLast));
  if(table == null){
    return;
  }
  int index = styles.size() - 1;
  table.fireTableRowsInserted(index, index);
}

代码示例来源:origin: openpreserve/jhove

private void addHandler ()
{
  ListSelectionModel ls = _hanTable.getSelectionModel ();
  int selRow = ls.getMinSelectionIndex();
  // If there's no selection, append to the end
  if (selRow < 0) {
    selRow = _handlers.size ();
  }
  String[] tuple = { "" };
  _handlers.add (selRow, tuple);
  _hanTableModel.fireTableRowsInserted(selRow, selRow);
}

代码示例来源:origin: omegat-org/omegat

@Override
  public void actionPerformed(ActionEvent e) {
    listRepo.add(new RowRepo());
    int row = listRepo.size() - 1;
    modelRepo.fireTableRowsInserted(row, row);
    dialog.tableRepositories.setRowSelectionInterval(row, row);
  }
});

代码示例来源:origin: org.apache.cayenne.modeler/cayenne-modeler

public void addTemplateAction() {
  FSPath path = new TemplateCreator(this).startupAction();
  if (path != null) {
    int len = templateEntries.size();
    templateEntries.add(path);
    ((AbstractTableModel) view.getTable().getModel()).fireTableRowsInserted(
        len,
        len);
  }
}

代码示例来源:origin: omegat-org/omegat

@Override
  public void actionPerformed(ActionEvent e) {
    RowMapping mapping = new RowMapping();
    if (dialog.tableRepositories.getRowCount() == 1) {
      mapping.repoUrl = (String) dialog.tableRepositories.getValueAt(0, 1);
    }
    listMapping.add(mapping);
    int row = listMapping.size() - 1;
    modelMapping.fireTableRowsInserted(row, row);
    dialog.tableMapping.setRowSelectionInterval(row, row);
  }
});

代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui

public void actionPerformed(java.awt.event.ActionEvent e)
          {
//                        System.out.println("add");
            entries.add("");
            AbstractTableModel model = (AbstractTableModel)getModel();
            model.fireTableRowsInserted(model.getRowCount(), model.getRowCount());
            fireEditingStopped();
            refresh();
          }
        });

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.log4j

public synchronized boolean addLogRecord(LogRecord record) {
 _allRecords.add(record);
 if (_filter.passes(record) == false) {
  return false;
 }
 getFilteredRecords().add(record);
 fireTableRowsInserted(getRowCount(), getRowCount());
 trimRecords();
 return true;
}

代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j

public synchronized boolean addLogRecord(LogRecord record) {
 _allRecords.add(record);
 if (_filter.passes(record) == false) {
  return false;
 }
 getFilteredRecords().add(record);
 fireTableRowsInserted(getRowCount(), getRowCount());
 trimRecords();
 return true;
}

代码示例来源:origin: apache-log4j/log4j

public synchronized boolean addLogRecord(LogRecord record) {
 _allRecords.add(record);
 if (_filter.passes(record) == false) {
  return false;
 }
 getFilteredRecords().add(record);
 fireTableRowsInserted(getRowCount(), getRowCount());
 trimRecords();
 return true;
}

代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager

public synchronized boolean addLogRecord(LogRecord record) {
 _allRecords.add(record);
 if (_filter.passes(record) == false) {
  return false;
 }
 getFilteredRecords().add(record);
 fireTableRowsInserted(getRowCount(), getRowCount());
 trimRecords();
 return true;
}

代码示例来源:origin: org.apache/log4j

public synchronized boolean addLogRecord(LogRecord record) {
 _allRecords.add(record);
 if (_filter.passes(record) == false) {
  return false;
 }
 getFilteredRecords().add(record);
 fireTableRowsInserted(getRowCount(), getRowCount());
 trimRecords();
 return true;
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-common

protected void fireChanged() {
 super.fireTableRowsDeleted(0, getRowCount());
 super.fireTableRowsInserted(0, getRowCount());
}

相关文章