Package javax.swing.table

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


  public void stopEditing()
  {
    final TableCellEditor tableCellEditor = table.getCellEditor();
    if (tableCellEditor != null)
    {
      tableCellEditor.stopCellEditing();
    }
  }

  protected void updateDesignerContext(final ReportDesignerContext oldContext, final ReportDesignerContext newContext)
  {
View Full Code Here


  private EditResult saveParameters()
  {
    TableCellEditor theCellEditor = importTable.getCellEditor();
    if (theCellEditor != null)
    {
      theCellEditor.stopCellEditing();
    }

    theCellEditor = exportTable.getCellEditor();
    if (theCellEditor != null)
    {
View Full Code Here

    }

    theCellEditor = exportTable.getCellEditor();
    if (theCellEditor != null)
    {
      theCellEditor.stopCellEditing();
    }

    final ParameterMappingTableModel importModel = (ParameterMappingTableModel) importTable.getModel();
    final ParameterMappingTableModel exportModel = (ParameterMappingTableModel) exportTable.getModel();
View Full Code Here

  public void setData(final ReportElement[] elements)
  {
    final TableCellEditor tableCellEditor = table.getCellEditor();
    if (tableCellEditor != null)
    {
      tableCellEditor.stopCellEditing();
    }

    dataModel.setData(elements);
  }
View Full Code Here

  public Object getValue()
  {
    final TableCellEditor editor1 = editor.getCellEditor();
    if (editor1 != null)
    {
      editor1.stopCellEditing();
    }
    return singleValueMetaTableModel.getValue();
  }

  public void setValue(final Object value, final Class valueType)
View Full Code Here

    public void actionPerformed(final ActionEvent e)
    {
      final TableCellEditor cellEditor = table.getCellEditor();
      if (cellEditor != null)
      {
        cellEditor.stopCellEditing();
      }

      final EditGroupDetailsDialog dialog = new EditGroupDetailsDialog(EditGroupsDialog.this);
      final RelationalGroup group = new RelationalGroup();
      final EditGroupUndoEntry groupUndoEntry = dialog.editGroup(group, getReportRenderContext());
View Full Code Here

    public void actionPerformed(final ActionEvent e)
    {
      final TableCellEditor cellEditor = table.getCellEditor();
      if (cellEditor != null)
      {
        cellEditor.stopCellEditing();
      }
      final int maxIdx = selectionModel.getMaxSelectionIndex();
      final ArrayList<GroupDataEntry> list = new ArrayList<GroupDataEntry>();
      for (int i = selectionModel.getMinSelectionIndex(); i <= maxIdx; i++)
      {
View Full Code Here

    public void actionPerformed(final ActionEvent e)
    {
      final TableCellEditor cellEditor = table.getCellEditor();
      if (cellEditor != null)
      {
        cellEditor.stopCellEditing();
      }

      final int index = selectionModel.getLeadSelectionIndex();
      if (index == -1)
      {
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 (cookieTable.isEditing()) {
                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.