本文整理了Java中org.netbeans.swing.outline.Outline.tableChanged()
方法的一些代码示例,展示了Outline.tableChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.tableChanged()
方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:tableChanged
暂无
代码示例来源:origin: org.netbeans.api/org-openide-explorer
@Override
public void propertyChange(final PropertyChangeEvent evt) {
if (!SwingUtilities.isEventDispatchThread()) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
propertyChange(evt);
}
});
return;
}
//fireTableDataChanged();
int row = rowForNode((Node)evt.getSource());
if (row == -1) {
return;
}
int column = columnForProperty(evt.getPropertyName());
if (column == -1) {
outline.tableChanged(new TableModelEvent(outline.getModel(), row, row,
TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE));
} else {
outline.tableChanged(new TableModelEvent(outline.getModel(), row, row,
column+1, TableModelEvent.UPDATE));
}
}
};
代码示例来源:origin: org.netbeans.api/org-openide-explorer
public void propertyChange(PropertyChangeEvent evt) {
// We get this event while editing
stopCellEditingNoCommit();
if( SwingUtilities.isEventDispatchThread() ) {
outline.tableChanged(new TableModelEvent(outline.getModel(), 0, outline.getRowCount()));
} else {
SwingUtilities.invokeLater( new Runnable() {
public void run() {
outline.tableChanged(new TableModelEvent(outline.getModel(), 0, outline.getRowCount()));
}
});
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers
@Override
public void run() {
outline.tableChanged(new TableModelEvent(outline.getModel(), 0, outline.getRowCount()));
}
});
代码示例来源:origin: org.netbeans.api/org-openide-explorer
public void run() {
outline.tableChanged(new TableModelEvent(outline.getModel(), 0, outline.getRowCount()));
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers
@Override
public void propertyChange(PropertyChangeEvent evt) {
stopCellEditing();
if (SwingUtilities.isEventDispatchThread()) {
outline.tableChanged(new TableModelEvent(outline.getModel(), 0, outline.getRowCount()));
} else {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
outline.tableChanged(new TableModelEvent(outline.getModel(), 0, outline.getRowCount()));
}
});
}
}
内容来源于网络,如有侵权,请联系作者删除!