本文整理了Java中javax.swing.table.AbstractTableModel.fireTableRowsDeleted()
方法的一些代码示例,展示了AbstractTableModel.fireTableRowsDeleted()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractTableModel.fireTableRowsDeleted()
方法的具体详情如下:
包路径:javax.swing.table.AbstractTableModel
类名称:AbstractTableModel
方法名:fireTableRowsDeleted
暂无
代码示例来源:origin: camunda/camunda-bpm-platform
public synchronized void fastRefresh() {
_filteredRecords.remove(0);
fireTableRowsDeleted(0, 0);
}
代码示例来源:origin: freeplane/freeplane
@Override
public void fireTableRowsDeleted(final int firstRow, final int lastRow) {
super.fireTableRowsDeleted(firstRow + 1, lastRow + 1);
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.log4j
public synchronized void fastRefresh() {
_filteredRecords.remove(0);
fireTableRowsDeleted(0, 0);
}
代码示例来源:origin: freeplane/freeplane
Item removeCondition(int index){
final Item item = styles.remove(index);
if(table == null){
return item;
}
table.fireTableRowsDeleted(index, index);
return item;
}
代码示例来源:origin: com.samskivert/samskivert
/**
* Remove the specified row.
*/
public void removeDatum (int row)
{
_data.remove(row);
_model.fireTableRowsDeleted(row, row);
}
代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j
public synchronized void fastRefresh() {
_filteredRecords.remove(0);
fireTableRowsDeleted(0, 0);
}
代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager
public synchronized void fastRefresh() {
_filteredRecords.remove(0);
fireTableRowsDeleted(0, 0);
}
代码示例来源:origin: apache-log4j/log4j
public synchronized void fastRefresh() {
_filteredRecords.remove(0);
fireTableRowsDeleted(0, 0);
}
代码示例来源:origin: org.apache/log4j
public synchronized void fastRefresh() {
_filteredRecords.remove(0);
fireTableRowsDeleted(0, 0);
}
代码示例来源:origin: omegat-org/omegat
@Override
public void actionPerformed(ActionEvent e) {
int r = dialog.tableRepositories.getSelectedRow();
if (r >= 0) {
listRepo.remove(r);
modelRepo.fireTableRowsDeleted(r, r);
}
}
});
代码示例来源:origin: omegat-org/omegat
@Override
public void actionPerformed(ActionEvent e) {
int r = dialog.tableMapping.getSelectedRow();
if (r >= 0) {
listMapping.remove(r);
modelMapping.fireTableRowsDeleted(r, r);
}
}
});
代码示例来源:origin: openpreserve/jhove
private void deleteModule ()
{
ListSelectionModel ls = _modTable.getSelectionModel ();
int selRow = ls.getMinSelectionIndex();
if (selRow < 0) {
return; // no selection
}
_modules.remove (selRow);
_modTableModel.fireTableRowsDeleted (selRow, selRow);
}
代码示例来源:origin: openpreserve/jhove
private void deleteHandler ()
{
ListSelectionModel ls = _hanTable.getSelectionModel ();
int selRow = ls.getMinSelectionIndex();
if (selRow < 0) {
return; // no selection
}
_handlers.remove (selRow);
_hanTableModel.fireTableRowsDeleted (selRow, selRow);
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
/**
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent arg0) {
String cmd = arg0.getActionCommand();
// remove key
Object[] keys = mapping.keySet().toArray();
Arrays.sort(keys);
int row = Integer.parseInt(cmd);
if (row < keys.length) {
mapping.remove(keys[row]);
((AbstractTableModel) table.getModel()).fireTableRowsDeleted(row, row);
((AbstractTableModel) table.getModel()).fireTableDataChanged();
}
}
代码示例来源:origin: org.diirt/datasource-sample
@Override
public void actionPerformed(ActionEvent e) {
int[] viewRows = pvTable.getSelectedRows();
for (int i = viewRows.length - 1; i >= 0; i--) {
int modelRow = pvTable.convertRowIndexToModel(viewRows[i]);
group.remove(modelRow);
pvNames.remove(modelRow);
model.fireTableRowsDeleted(modelRow, modelRow);
}
}
};
代码示例来源:origin: net.sf.jt400/jt400
/**
* Removes the specified record from the table.
* @param row The index of row.
*/
public void removeRow(int row)
{
table_.clearSelection();
DLOPermission user = (DLOPermission)userPermissions_.elementAt(row);
permission_.removeUserPermission(user);
Enumeration userPermissions = permission_.getUserPermissions();
userPermissions_ = new Vector();
while(userPermissions.hasMoreElements())
{
userPermissions_.addElement(userPermissions.nextElement());
}
fireTableRowsDeleted(row, row);
}
代码示例来源:origin: net.sf.jt400/jt400
/**
* Removes the specified record from the table.
* @param row The index of row.
*/
public void removeRow(int row)
{
table_.clearSelection();
RootPermission user = (RootPermission)userPermissions_.elementAt(row);
permission_.removeAuthorizedUser(user.getUserID());
Enumeration userPermissions = permission_.getUserPermissions();
userPermissions_ = new Vector();
while(userPermissions.hasMoreElements())
{
userPermissions_.addElement(userPermissions.nextElement());
}
fireTableRowsDeleted(row, row);
}
代码示例来源:origin: net.sf.jt400/jt400
/**
* Removes the specified record from the table.
* @param row The index of row.
*/
public void removeRow(int row)
{
table_.clearSelection();
QSYSPermission user = (QSYSPermission)userPermissions_.elementAt(row);
permission_.removeAuthorizedUser(user.getUserID());
// Gets the new data after removing the specified user.
Enumeration userPermissions = permission_.getUserPermissions();
userPermissions_ = new Vector();
while(userPermissions.hasMoreElements())
{
userPermissions_.addElement(userPermissions.nextElement());
}
fireTableRowsDeleted(row, row);
}
代码示例来源:origin: org.apache.cayenne.modeler/cayenne-modeler
public void removeTemplateAction() {
int selected = view.getTable().getSelectedRow();
if (selected < 0) {
return;
}
Object key = ((AbstractTableModel) view.getTable().getModel()).getValueAt(
selected,
0);
editor.getRemovedNode().add(getTemplatePreferences().node((String) key));
templateEntries.remove(selected);
((AbstractTableModel) view.getTable().getModel()).fireTableRowsDeleted(
selected,
selected);
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-common
protected void fireChanged() {
super.fireTableRowsDeleted(0, getRowCount());
super.fireTableRowsInserted(0, getRowCount());
}
内容来源于网络,如有侵权,请联系作者删除!