Package javax.swing.table

Examples of javax.swing.table.TableCellEditor.stopCellEditing()


     * save any changes that have already been made.
     */
    protected void stopTableEditing() {
        if (table.isEditing()) {
            TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
            cellEditor.stopCellEditing();
        }
    }

    /**
     * Create the main GUI panel which contains the file table.
View Full Code Here


      // If a table cell is being edited, we should accept the current
      // value and stop the editing before adding a new row.
      if (headerTable.isEditing()) {
        TableCellEditor cellEditor = headerTable.getCellEditor(headerTable.getEditingRow(),
            headerTable.getEditingColumn());
        cellEditor.stopCellEditing();
      }

      tableModel.addNewRow();
      tableModel.fireTableDataChanged();
View Full Code Here

  private class AddParamAction implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      if (paramTable.isEditing()) {
        TableCellEditor cellEditor = paramTable.getCellEditor(paramTable.getEditingRow(), paramTable
            .getEditingColumn());
        cellEditor.stopCellEditing();
      }

      tableModel.addNewRow();
      tableModel.fireTableDataChanged();
View Full Code Here

    public void actionPerformed(ActionEvent e) {

      if (paramTable.isEditing()) {
        TableCellEditor cellEditor = paramTable.getCellEditor(paramTable.getEditingRow(), paramTable
            .getEditingColumn());
        cellEditor.stopCellEditing();
      }

      tableModel.addNewColumn(THREAD_COLUMNS_PREFIX + tableModel.getColumnCount(), String.class);
      tableModel.fireTableDataChanged();
View Full Code Here

   * save any changes that have already been made.
   */
  private void stopTableEditing() {
    if (table.isEditing()) {
      TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
      cellEditor.stopCellEditing();
    }
  }

  /**
   * Initialize the table model used for the arguments table.
View Full Code Here

  public SQLDriverPropertyCollection getSQLDriverProperties()
  {
      TableCellEditor cellEditor = tbl.getCellEditor();
      if(null != cellEditor)
      {
         cellEditor.stopCellEditing();
      }
    return tbl.getTypedModel().getSQLDriverProperties();
  }

  private void createUserInterface(SQLDriverPropertyCollection props)
View Full Code Here

   private void onSchemaTableUpdateApply()
   {
      TableCellEditor cellEditor = _pnl.tblSchemas.getCellEditor();
      if(null != cellEditor)
      {
         cellEditor.stopCellEditing();
      }


      SchemaTableUpdateWhatItem selWhatItem = (SchemaTableUpdateWhatItem) _pnl.cboSchemaTableUpdateWhat.getSelectedItem();
View Full Code Here

   {

      TableCellEditor cellEditor = _pnl.tblSchemas.getCellEditor();
      if(null != cellEditor)
      {
         cellEditor.stopCellEditing();
      }


      if(_pnl.radLoadAllAndCacheNone.isSelected())
      {
View Full Code Here

  private void stopEditing()
  {
    TableCellEditor cellEditor = _panel.tblPrefixes.getCellEditor();
    if(null != cellEditor)
    {
      cellEditor.stopCellEditing();
    }
  }

  /**
   * Return the title for this panel.
View Full Code Here

   private void onApply()
   {
      TableCellEditor cellEditor = _dlg.tblAutoCorrects.getCellEditor();
      if(null != cellEditor)
      {
         cellEditor.stopCellEditing();
      }


      DefaultTableModel dtm = (DefaultTableModel) _dlg.tblAutoCorrects.getModel();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.