/*
 * ProviderListForm.java
 *
 * Copyright 2013 John W Dawson
 *
 * This code is distributed under the terms of the GNU General Public License, version 3
 *
 * This class implements the form used to enter configuration data for a VoIP provider
 *
 */

import javax.swing.*;
public class ProviderListForm extends ConfigurationListForm
{

  private AddressBookConfiguration configuration;
  
  public ProviderListForm (AddressBookConfiguration configuration, JFrame mainWindow, ExtensionSelector extensionSelector)
  {
    super ("Providers", "provider", configuration, mainWindow, extensionSelector);
    this.configuration = configuration;
  } 
     
  public void displayEntry (ConfigurationListEntry entry)
  {
    new ProviderConfigurationForm (entry, configuration, this);
  }
  
  protected ConfigurationListEntry createEntry (ConfigurationRecord item)
  {
    return new ProviderListEntry (item, this, extensionSelector);
  }
  
}