本文整理了Java中javax.swing.JTable.isEditing()
方法的一些代码示例,展示了JTable.isEditing()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.isEditing()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:isEditing
暂无
代码示例来源:origin: magefree/mage
@Override
public void mousePressed(MouseEvent arg0) {
if (table.isEditing() && table.getCellEditor() == this) {
isButtonColumnEditor = true;
}
}
代码示例来源:origin: winder/Universal-G-Code-Sender
@Override
public void propertyChange(PropertyChangeEvent e)
{
// A cell has started/stopped editing
if ("tableCellEditor".equals(e.getPropertyName()))
{
if (table.isEditing())
processEditingStarted();
else
processEditingStopped();
}
}
代码示例来源:origin: magefree/mage
@Override
public void mouseReleased(MouseEvent arg0) {
if (isButtonColumnEditor && table.isEditing()) {
table.getCellEditor().stopCellEditing();
}
isButtonColumnEditor = false;
}
代码示例来源:origin: pentaho/mondrian
if (tableEditor.isEditing()) {
List<JTable> nestedTableEditors = new ArrayList<JTable>();
JTable nestedTableEditor = tableEditor;
if (sce != null
&& sce.activeEditor == sce.tableEditor
&& sce.tableEditor.isEditing())
代码示例来源:origin: pentaho/mondrian
if (propertyTable.isEditing() && (lastSelected != e.getPath()
.getLastPathComponent()))
代码示例来源:origin: MegaMek/mekhq
@Override
public void mousePressed(MouseEvent e) {
if(table.isEditing() && (this == table.getCellEditor())) {
isButtonColumnEditor = true;
}
}
代码示例来源:origin: freeplane/freeplane
public void mouseReleased(MouseEvent e) {
if (isButtonColumnEditor && table.isEditing())
table.getCellEditor().stopCellEditing();
isButtonColumnEditor = false;
}
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
/**
* Convenience method to stop editing a JTable.
*
* @param table The table.
*/
public static final void stopEditing(JTable table)
{
if (table.isEditing())
{
table.getCellEditor().stopCellEditing();
}
}
代码示例来源:origin: girtel/Net2Plan
@Override
public void mouseReleased(MouseEvent e) {
if (isButtonColumnEditor && table.isEditing()) table.getCellEditor().stopCellEditing();
isButtonColumnEditor = false;
}
}
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
/**
* Terminates.
*/
public void terminate()
{
if (paramtable.isEditing())
{
paramtable.getCellEditor().stopCellEditing();
}
}
代码示例来源:origin: org.jspresso/jspresso-ulc-components-client
public void tableChanged(TableModelEvent e) {
if (table.isEditing() && e.getColumn() > 0) {
table.editingCanceled(new ChangeEvent(getBasicObject()));
}
}
};
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
private void cancelEdit()
{
if (editing)
{
editing= false;
list.remove(editCell);
centerPanel.repaint();
}
else if (detailsTable != null && detailsTable.isEditing())
{
detailsTable.getCellEditor().cancelCellEditing();
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
public static void selectFirstCellOnFirstRowAndStopEditing(JTable table) {
// select first cell
doSelectCell(table, 0, 0);
if (table.isEditing()) {
// but no edit it
table.getCellEditor().stopCellEditing();
}
}
代码示例来源:origin: hneemann/Digital
@Override
public void actionPerformed(ActionEvent e) {
if (table.isEditing()) {
table.getCellEditor().stopCellEditing();
} else {
ok = true;
dispose();
}
}
}));
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
public static void selectFirstCellOnRow(JTable table, int row, boolean stopEdit) {
// select first cell
doSelectCell(table, row, 0);
if (stopEdit && table.isEditing()) {
table.getCellEditor().stopCellEditing();
}
}
代码示例来源:origin: org.apache.jmeter/jorphan
/**
* Stop any editing that is currently being done on the table. This will
* save any changes that have already been made.
*
* @param table the table to stop on editing
*/
public static void stopTableEditing(JTable table) {
if (table.isEditing()) {
TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
cellEditor.stopCellEditing();
}
}
代码示例来源: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: undera/jmeter-plugins
@Override
public void modifyTestElement(TestElement te) {
super.modifyTestElement(te);
if (grid.isEditing()) {
grid.getCellEditor().stopCellEditing();
}
if (te instanceof CorrectedResultCollector) {
CorrectedResultCollector rc = (CorrectedResultCollector) te;
CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, REGEXPS_PROPERTY);
rc.setProperty(rows);
}
}
代码示例来源:origin: org.apache.cayenne.modeler/cayenne-modeler
public void sortByDefinedColumn(int col, int sortCol, boolean order) {
CayenneTableModel model = (CayenneTableModel) table.getModel();
if (renderer.isSortingEnabled() && model.isColumnSortable(sortCol)) {
renderer.setSelectedColumn(col, order);
header.repaint();
if (table.isEditing()) {
table.getCellEditor().stopCellEditing();
}
model.sortByColumn(sortCol, order);
}
}
代码示例来源:origin: undera/jmeter-plugins
@Override
public void modifyTestElement(TestElement te) {
super.modifyTestElement(te);
if (grid.isEditing()) {
grid.getCellEditor().stopCellEditing();
}
if (te instanceof MonitoringResultsCollector) {
MonitoringResultsCollector mrc = (MonitoringResultsCollector) te;
CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, MonitoringResultsCollector.DATA_PROPERTY);
mrc.setData(rows);
}
super.configureTestElement(te);
}
内容来源于网络,如有侵权,请联系作者删除!