/**
   * Backs up the settings from the old model.
   *
   * @param model the old model (the model stored within the SortedModel)
   * @return the backed up settings
   */
  protected Hashtable<String, Object> backupModelSettings(TableModel model) {
    Hashtable<String, Object> result;

    result = new Hashtable<String, Object>();

    result.put(KEY_SORTCOL, m_Model.getSortColumn());
    result.put(KEY_SORTORDER, m_Model.isAscending());

    if (model instanceof SearchableTableModel) {
      if (((SearchableTableModel) model).getSeachString() != null)
        result.put(KEY_SEARCHSTRING, ((SearchableTableModel) model).getSeachString());
      result.put(KEY_SEARCHREGEXP, ((SearchableTableModel) model).isRegExpSearch());
    }

    return result;
  }
 /**
  * Returns the sort column.
  *
  * @return the sort column
  */
 public synchronized int getSortColumn() {
   return m_Model.getSortColumn();
 }