Browse Source

双击编辑

fbp/master
renekton 1 month ago
parent
commit
bc25bd6636
  1. 6
      designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java

6
designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java

@ -754,7 +754,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
return super.stopCellEditing(); return super.stopCellEditing();
} }
}); });
((DefaultCellEditor) column1.getCellEditor()).setClickCountToStart(1); ((DefaultCellEditor) column1.getCellEditor()).setClickCountToStart(2);
//设置Column 2的Editor //设置Column 2的Editor
column2.setCellEditor(new ColumnValueEditor()); column2.setCellEditor(new ColumnValueEditor());
@ -963,12 +963,12 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
} }
/* /*
* 击以编辑 * 击以编辑
*/ */
@Override @Override
public boolean isCellEditable(EventObject anEvent) { public boolean isCellEditable(EventObject anEvent) {
if (anEvent instanceof MouseEvent) { if (anEvent instanceof MouseEvent) {
return ((MouseEvent) anEvent).getClickCount() >= 1; return ((MouseEvent) anEvent).getClickCount() >= 2;
} }
return true; return true;
} }

Loading…
Cancel
Save