本文整理了Java中javax.swing.table.TableCellEditor.cancelCellEditing()
方法的一些代码示例,展示了TableCellEditor.cancelCellEditing()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableCellEditor.cancelCellEditing()
方法的具体详情如下:
包路径:javax.swing.table.TableCellEditor
类名称:TableCellEditor
方法名:cancelCellEditing
暂无
代码示例来源:origin: org.jspresso/jspresso-ulc-components-client
/**
* {@inheritDoc}
*/
public void cancelCellEditing() {
delegate.cancelCellEditing();
}
代码示例来源:origin: com.eas.platypus/platypus-js-grid
/**
* {@inheritDoc}
*/
@Override
public void cancelCellEditing() {
delegate.cancelCellEditing();
}
代码示例来源:origin: joel-costigliola/assertj-swing
private static void doCancelEditing(@Nullable TableCellEditor cellEditor) {
if (cellEditor == null) {
return;
}
cellEditor.cancelCellEditing();
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
@Override
public void cancelCellEditing() {
if (hasDelegate()) {
delegate.cancelCellEditing();
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
@Override
public void cancelCellEditing() {
if (hasDelegate()) {
delegate.cancelCellEditing();
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing
@Override
public void cancelCellEditing() {
if (hasDelegate()) {
delegate.cancelCellEditing();
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config
@Override
public void cancelCellEditing() {
if (hasDelegate()) {
delegate.cancelCellEditing();
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime
public static void stopEditing(JTable table) {
TableCellEditor cellEditor = table.getCellEditor();
if (cellEditor != null) {
cellEditor.cancelCellEditing();
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime
@Override
public void cancelCellEditing() {
if (hasDelegate()) {
delegate.cancelCellEditing();
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
@Override
public void cancelCellEditing() {
if (hasDelegate()) {
delegate.cancelCellEditing();
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget
@Override
public void cancelCellEditing() {
if (hasDelegate()) {
delegate.cancelCellEditing();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-docker-ui
private void randomBindCheckBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_randomBindCheckBoxItemStateChanged
boolean selected = randomBindCheckBox.isSelected();
portMappingTable.setEnabled(!selected);
addExposedButton.setEnabled(!selected);
addButton.setEnabled(!selected);
removeButton.setEnabled(!selected);
TableCellEditor editor = portMappingTable.getCellEditor();
if (editor != null) {
editor.cancelCellEditing();
}
portMappingTable.clearSelection();
}//GEN-LAST:event_randomBindCheckBoxItemStateChanged
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
@Override
public void actionPerformed(ActionEvent e) {
if (!isEditing())
return;
getCellEditor().cancelCellEditing();
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
@Override
public void actionPerformed(ActionEvent e) {
if (!isEditing())
return;
getCellEditor().cancelCellEditing();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
public void actionPerformed(ActionEvent e) {
if (!isEditing())
return;
getCellEditor().cancelCellEditing();
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
@Override
public void actionPerformed(ActionEvent e) {
if (!isEditing())
return;
getCellEditor().cancelCellEditing();
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private void stopCellEditing() {
TableCellEditor tce;
if ((tce = clusteredCacheTable.getCellEditor()) != null && !tce.stopCellEditing()) {
tce.cancelCellEditing();
}
if ((tce = standaloneCacheTable.getCellEditor()) != null && !tce.stopCellEditing()) {
tce.cancelCellEditing();
}
}
代码示例来源:origin: de.dfki.mary/marytts-builder
private void stopTableEditing() {
if (table.isEditing()) {
TableCellEditor ed = table.getCellEditor();
assert ed != null;
boolean success = ed.stopCellEditing(); // we first try to save
if (!success) {
ed.cancelCellEditing();
}
assert !table.isEditing();
}
}
代码示例来源:origin: locationtech/jts
public static void commitChanges(JTable table) {
if (table.isEditing()) {
String text = ((JTextComponent) table.getEditorComponent()).getText();
table.setValueAt(text, table.getEditingRow(), table.getEditingColumn());
table.getCellEditor().cancelCellEditing();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-core
void setData(String name, String value, int row) {
if (getEditingRow() == row) {
int col = getEditingColumn();
getCellEditor(row, col).cancelCellEditing();
}
((DDTableModel) getModel()).setData(name, value, row);
}
内容来源于网络,如有侵权,请联系作者删除!