Package javax.swing.table

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


    protected void deleteArgument() {
        // If a table cell is being edited, we must cancel the editing before
        // deleting the row
        if (table.isEditing()) {
            TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
            cellEditor.cancelCellEditing();
        }

        int rowSelected = table.getSelectedRow();

        if (rowSelected >= 0) {
View Full Code Here


    if (isArmed() && !b) {
      ArrayField af = ArrayFieldCellHelper.getArrayField(this.widget);
      if (af != null) {
        final TableCellEditor editor = af.getCellEditor();
        if (editor != null) {
          editor.cancelCellEditing();
        }
      }
    }
  }
}
View Full Code Here

    if (isArmed() && !b) {
      ArrayField af = ArrayFieldCellHelper.getArrayField(this.widget);
      if (af != null) {
        final TableCellEditor editor = af.getCellEditor();
        if (editor != null) {
          editor.cancelCellEditing();
        }
      }
    }
  }
}
View Full Code Here

      // editing (for example, using change selection) and the user has clicked on a
      // prior row in the table to the one we're purging, it is possible that the
      // value that is being purged will be copied across to the selected cell!
      TableCellEditor tce = comp.getCellEditor();
      if (tce != null && (comp.getEditingRow() != row || comp.getEditingColumn() != column)) {
        tce.cancelCellEditing();
      }
      //      comp.editCellAt(row, column);
      _log.debug("   --> changing selection on " +comp.getName() + " to [" + row + "," + column + "]");
      comp.changeSelection(row, column, false, false);
View Full Code Here

      // editing (for example, using change selection) and the user has clicked on a
      // prior row in the table to the one we're purging, it is possible that the
      // value that is being purged will be copied across to the selected cell!
      TableCellEditor tce = comp.getCellEditor();
      if (tce != null && (comp.getEditingRow() != row || comp.getEditingColumn() != column)) {
        tce.cancelCellEditing();
      }
      //      comp.editCellAt(row, column);
      _log.debug("   --> changing selection on " +comp.getName() + " to [" + row + "," + column + "]");
      comp.changeSelection(row, column, false, false);
View Full Code Here

    private void cancelEditing() {
        // If a table cell is being edited, we must cancel the editing before
        // deleting the row
        if (table.isEditing()) {
            TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
            cellEditor.cancelCellEditing();
        }
    }
   
    /**
     * Move a row down
View Full Code Here

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

            int rowSelected = paramTable.getSelectedRow();
            if (rowSelected >= 0) {
                tableModel.removeRow(rowSelected);
View Full Code Here

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

            int colSelected = paramTable.getSelectedColumn();
            if (colSelected == 0 || colSelected == 1) {
                JOptionPane.showMessageDialog(null,
View Full Code Here

    if (isArmed() && !b) {
      ArrayField af = ArrayFieldCellHelper.getArrayField(this.widget);
      if (af != null) {
        final TableCellEditor editor = af.getCellEditor();
        if (editor != null) {
          editor.cancelCellEditing();
        }
      }
    }
  }
}
View Full Code Here

      // editing (for example, using change selection) and the user has clicked on a
      // prior row in the table to the one we're purging, it is possible that the
      // value that is being purged will be copied across to the selected cell!
      TableCellEditor tce = comp.getCellEditor();
      if (tce != null && (comp.getEditingRow() != row || comp.getEditingColumn() != column)) {
        tce.cancelCellEditing();
      }
      //      comp.editCellAt(row, column);
      _log.debug("   --> changing selection on " +comp.getName() + " to [" + row + "," + column + "]");
      comp.changeSelection(row, column, false, false);
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.