@Override public ActionArgumentValue[] getInputValues() { if (inputArgumentsTable == null) return null; // Commit the currently typed value if (inputArgumentsTable.getCellEditor() != null) inputArgumentsTable.getCellEditor().stopCellEditing(); return inputArgumentsTable.getArgumentValuesModel().getValues(); }
TableCellEditor editor = table.getCellEditor(); if (editor != null) { editor.stopCellEditing(); }
private void commitCellEdits() { final TableCellEditor cellEditor = propertiesTable.getCellEditor(); if (cellEditor != null) { cellEditor.stopCellEditing(); } }
@Override public void mouseReleased(MouseEvent arg0) { if (isButtonColumnEditor && table.isEditing()) { table.getCellEditor().stopCellEditing(); } isButtonColumnEditor = false; }
@Override public void run() { try { Thread.sleep(CELL_EDITING_STATE_PERIOD); } catch (InterruptedException e) {} if (!stopped && cellEditor != null) cellEditor.stopCellEditing(); } }
public void flushChanges() { TableCellEditor ce = getCellEditor(); if (ce != null) { ce.stopCellEditing(); } } }
public void flushChanges() { TableCellEditor ce = getCellEditor(); if (ce != null) { ce.stopCellEditing(); } } }
public void flushChanges() { TableCellEditor ce = getCellEditor(); if (ce != null) { ce.stopCellEditing(); } } }
private void deleteMappingItem() { TableCellEditor editor = lstProperties.getCellEditor(); if (editor != null) { editor.stopCellEditing(); } int index = lstProperties.getSelectedRow(); if (index != -1) { ((DefaultTableModel) lstProperties.getModel()).removeRow(index); } }
public void mouseReleased(MouseEvent e) { if (isButtonColumnEditor && table.isEditing()) table.getCellEditor().stopCellEditing(); isButtonColumnEditor = false; }
/** * Terminates editing. */ public void terminateEditing() { if (atable.isEditing()) { atable.getCellEditor().stopCellEditing(); } }
/** * Convenience method to stop editing a JTable. * * @param table The table. */ public static final void stopEditing(JTable table) { if (table.isEditing()) { table.getCellEditor().stopCellEditing(); } }
@Override public void mouseReleased(MouseEvent e) { if (isButtonColumnEditor && table.isEditing()) { table.getCellEditor().stopCellEditing(); } isButtonColumnEditor = false; }
private void stopEditing() { // Stop whatever editing may be taking place int col_index = table.getEditingColumn(); if (col_index >= 0) { TableColumn col = table.getColumnModel().getColumn(col_index); col.getCellEditor().stopCellEditing(); } }
public static void selectFirstCellOnRow(JTable table, int row, boolean stopEdit) { // select first cell doSelectCell(table, row, 0); if (stopEdit && table.isEditing()) { table.getCellEditor().stopCellEditing(); } }
@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); } }
@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); } }
public void stopEditing() { if (attributeTable.isEditing()) { attributeTable.getCellEditor().stopCellEditing(); } final String registryAttributeViewType = getAttributeRegistry().getAttributeViewType(); if (registryAttributeViewType != getViewType()) { setViewType(registryAttributeViewType); } getNodeView().requestFocusInWindow(); }
protected void rebuildTable(ObjEntity entity) { if (table.getEditingRow() != -1 && table.getEditingColumn() != -1) { TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn()); cellEditor.stopCellEditing(); } ObjAttributeTableModel model = new ObjAttributeTableModel(entity, mediator, this); table.setModel(model); table.setRowHeight(25); table.setRowMargin(3); setUpTableStructure(); }