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

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

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

AbstractTableModel.fireTableRowsUpdated介绍

暂无

代码示例

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

model.fireTableRowsUpdated(0, model.getRowCount() - 1);

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

@Override
public void fireTableRowsUpdated(final int firstRow, final int lastRow) {
  super.fireTableRowsUpdated(firstRow + 1, lastRow + 1);
}

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

/**
 * Change the value of the specified row.
 */
public void updateDatum (Object element, int row)
{
  _data.set(row, element);
  _model.fireTableRowsUpdated(row, row);
}

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

void swapConditions(int index1, int index2){
  final Item item1 = styles.get(index1);
  final Item item2 = styles.get(index2);
  styles.set(index1, item2);
  styles.set(index2, item1);
  if(table == null){
    return;
  }
  table.fireTableRowsUpdated(index1, index1);
  table.fireTableRowsUpdated(index2, index2);
}

代码示例来源:origin: net.sf.tinylaf/tinylaf

public void setValueAt(Object aValue, int row, int column) {
  if(column == 4) {
    Record rec = (Record)data.get(row);
    rec.setValueAt(aValue, column);
    fireTableRowsUpdated(row, row);
  }
}

代码示例来源:origin: jpos/jPOS

public void update(TransactionStatusEvent e) {
  if (ui.isDestroyed()) {
    return;
  }
  int row = e.getSession();
  events[row] = e;
  model.fireTableRowsUpdated(row, row);
  // table.getSelectionModel().setSelectionInterval(row, row);
  setBackgroundColor (row, color[e.getState().intValue()]);
  inTransit.setText (Long.toString (txnmgr.getInTransit()));
  outstanding.setText (Long.toString (txnmgr.getOutstandingTransactions()));
}
private void setBackgroundColor (int row, Color color) {

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

for (int i = 0; i < elements.length; i++) {
  if(elements[i] == domainObject) {
    fireTableRowsUpdated(i, i);

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

columns.set(index, intValue * index);
fireTableRowsUpdated(rowIndex, rowIndex);

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

checked.remove(row);
fireTableRowsUpdated(row, row);

代码示例来源:origin: org.jbundle.util.calendarpanel/org.jbundle.util.calendarpanel

model.fireTableRowsUpdated(iIndex, iIndex);   // Notify the models to get rid of the visual

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

checked.remove(row);
fireTableRowsUpdated(row, row);

代码示例来源:origin: net.sf.jt400/jt400

fireTableRowsUpdated(row, row);

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

if (col == 0) {
  data.set(row, (Double) aValue);
  fireTableRowsUpdated(row, row);

代码示例来源:origin: net.sf.jt400/jt400

fireTableRowsUpdated(row, row);

代码示例来源:origin: tulskiy/musique

@Override
  public void actionPerformed(ActionEvent e) {
    if (player.isPlaying()) {
      PlaylistTable table = tabs.getSelectedTable();
      if (table != null) {
        int index = table.getPlaylist().indexOf(player.getTrack());
        ((AbstractTableModel) table.getModel()).fireTableRowsUpdated(index, index);
      }
    }
  }
});

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

fireTableRowsUpdated(0, getRowCount());

代码示例来源:origin: net.sf.jt400/jt400

fireTableRowsUpdated(row, row);

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

model.fireTableRowsUpdated(0, model.getRowCount() - 1);

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

delegate.fireTableRowsUpdated(lastSelected, lastSelected);
 delegate.fireTableRowsUpdated(rowIndex, rowIndex);
} else {
 delegate.setValueAt(aValue, rowIndex, columnIndex);

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

if (row == -1) return;
int modelRow = convertRowIndexToModel(row);
((AbstractTableModel)getModel()).fireTableRowsUpdated(modelRow, modelRow);

相关文章