Package javax.swing.table

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


        public void ancestorRemoved(AncestorEvent event) {
          if (mChannelTable.isEditing()) {
            TableCellEditor editor = mChannelTable.getCellEditor();
            if (editor != null) {
              editor.stopCellEditing();
            }
          }
        }
      });
       
View Full Code Here


  public void synchronizeDataPanel(){
    if (transformAvailable){
      for(int i=0; i<transformTables.size();i++){
        TableCellEditor tce=( ( (JTable)transformTables.get(i)).getCellEditor());
        if(tce!=null){
          tce.stopCellEditing();
        }
      } 
    }
  }
View Full Code Here

  public void synchronizeDataPanel(){
    super.synchronizeDataPanel();
    for (int i=0; i<propertyData.length; i++){
      TableCellEditor tce=propertiesTable[i].getCellEditor();
      if(tce!=null){
        tce.stopCellEditing();
      }
    }   
  }
 
 
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

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

            tableModel.addNewRow();
            tableModel.fireTableDataChanged();
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

     * 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

    void endEditing() {
        for (MetadataTable table : tables) {
            if (table.isEditing()) {
                TableCellEditor editor = table.getCellEditor();
                editor.stopCellEditing();
            }
        }
    }

    public boolean getScrollableTracksViewportHeight() {
View Full Code Here

            {
                TableCellEditor cellEditor =
                    authTable.getCellEditor(
                        authTable.getEditingRow(),
                        authTable.getEditingColumn());
                cellEditor.stopCellEditing();
            }

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

            {
                TableCellEditor cellEditor =
                    cookieTable.getCellEditor(
                        cookieTable.getEditingRow(),
                        cookieTable.getEditingColumn());
                cellEditor.stopCellEditing();
            }

            tableModel.addNewRow();
            tableModel.fireTableDataChanged();
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.