本文整理了Java中javax.swing.table.AbstractTableModel.fireTableChanged()
方法的一些代码示例,展示了AbstractTableModel.fireTableChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractTableModel.fireTableChanged()
方法的具体详情如下:
包路径:javax.swing.table.AbstractTableModel
类名称:AbstractTableModel
方法名:fireTableChanged
暂无
代码示例来源:origin: cpesch/RouteConverter
public void fireTableChanged(TableModelEvent e) {
this.currentEvent = e;
super.fireTableChanged(e);
this.currentEvent = null;
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
/**
* {@inheritDoc}
*/
@Override
public final void fireTableChanged(int startIndex, int endIndex, int listChangeType) {
tableModelEvent.setValues(startIndex, endIndex, listChangeType);
tableModel.fireTableChanged(tableModelEvent);
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
/**
* {@inheritDoc}
*/
@Override
public final void fireTableStructureChanged() {
tableModelEvent.setStructureChanged();
tableModel.fireTableChanged(tableModelEvent);
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
/**
* {@inheritDoc}
*/
@Override
public final void fireTableDataChanged() {
tableModelEvent.setAllDataChanged();
tableModel.fireTableChanged(tableModelEvent);
}
代码示例来源:origin: uk.ac.gate.plugins/annie
@Override
public void fireTableChanged(TableModelEvent e) {
if (gazetteerList == null) { return; }
if (filter.length() < 1) {
gazetteerListFiltered.clear();
gazetteerListFiltered.addAll(gazetteerList);
super.fireTableChanged(e);
} else {
filterRows();
// same as super.fireTableDataChanged() to avoid recursion
super.fireTableChanged(new TableModelEvent(this));
}
}
代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui
public void actionPerformed(java.awt.event.ActionEvent e)
{
// System.out.println("remove");
// ((AbstractTableModel)getModel()).fireTableRowsDeleted(rowIndex, rowIndex);
Object entry = entries.remove(rowIndex);
((AbstractTableModel)getModel()).fireTableChanged(new EditableListEvent(getModel(), rowIndex, rowIndex,
TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE, new Object[]{entry}));
fireEditingStopped();
refresh();
}
});
代码示例来源:origin: stackoverflow.com
if (batchChange) {
sharedModelEvent.set(row, col);
fireTableChanged(sharedModelEvent);
} else {
fireTableCellUpdated(row, col);
代码示例来源:origin: stackoverflow.com
fireTableChanged(null);
fireTableChanged(e);
代码示例来源:origin: net.sf.jt400/jt400
fireTableChanged(event);
Trace.log(Trace.DIAGNOSTIC, "Starting load, changed number of rows to:", numRows_);
fireTableChanged(event);
Trace.log(Trace.DIAGNOSTIC, "Did load, changed number of rows to:", numRows_);
代码示例来源:origin: stackoverflow.com
fireTableChanged(new TableModelEvent(this));
代码示例来源:origin: org.jbundle.util.calendarpanel/org.jbundle.util.calendarpanel
/**
* 0.5 seconds passed, select the item.
* <p>NOTE: This method does not cycle through the icons, it flashes the START_ICON, then the next
* icon, then the start again, then the next one in the list.
* <p>ie., If the count is even, display icon 0; if not, display (icon / 2 + 1).
*/
public void actionPerformed(ActionEvent e)
{
m_iCurrentIcon++;
if (e.getSource() instanceof javax.swing.Timer)
{
if (m_tableModel != null)
{
TableModelEvent event = new TableModelEvent(m_tableModel, 0, Integer.MAX_VALUE, m_iThisRow);
((AbstractTableModel)m_tableModel).fireTableChanged(event);
}
else
{
Object objValue = Integer.toString(m_itemCache.getItem().getStatus()); // This is where the value is cached
ImageIcon icon = this.getImageIcon(objValue);
if (icon != null)
{
this.setIcon(icon);
Rectangle rect = this.getBounds();
this.repaint(rect);
}
}
}
}
/**
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
/**
* {@inheritDoc}
*/
@Override
public void listChanged(ListEvent<E> listChanges) {
checkAccessThread();
// for all changes, one block at a time
while (listChanges.nextBlock()) {
// get the current change info
int startIndex = listChanges.getBlockStartIndex();
int endIndex = listChanges.getBlockEndIndex();
int changeType = listChanges.getType();
// create a table model event for this block
tableModelEvent.setValues(startIndex, endIndex, changeType);
tableModel.fireTableChanged(tableModelEvent);
}
}
代码示例来源:origin: net.sf.jt400/jt400
fireTableChanged(event);
Trace.log(Trace.INFORMATION, "Starting load, changed number of rows to:", numRows_);
fireTableChanged(event);
Trace.log(Trace.INFORMATION, "Did load, changed number of rows to:", numRows_);
代码示例来源:origin: net.sf.jt400/jt400
fireTableChanged(event);
Trace.log(Trace.INFORMATION, "Changed number of rows to:", numRows_);
内容来源于网络,如有侵权,请联系作者删除!