public VendorOptionTableModel(Map<VendorOptionTypeInterface,String> options){
  columnNames[0]=Localisation.getString(VendorOptionTableModel.class,"VendorOptionTableModel.vendor");
  columnNames[1]=Localisation.getString(VendorOptionTableModel.class,"VendorOptionTableModel.selected");
  nameMap=options;
  List<VendorOptionTypeInterface> orderList=new ArrayList<VendorOptionTypeInterface>();
  for (  VendorOptionTypeInterface key : options.keySet()) {
    orderList.add(key);
    selectedVersionList.add(VersionData.getLatestVersion(key.getClass()));
  }
  nameOrder=orderList;
}

public VendorOptionTableModel ( Map < VendorOptionTypeInterface , String > options ) { columnNames [ 0 ] = Localisation . getString ( VendorOptionTableModel . class , "VendorOptionTableModel.vendor" ) ; columnNames [ 1 ] = Localisation . getString ( VendorOptionTableModel . class , "VendorOptionTableModel.selected" ) ; nameMap = options ; List < VendorOptionTypeInterface > orderList = new ArrayList < VendorOptionTypeInterface > ( ) ; for ( VendorOptionTypeInterface key : options . keySet ( ) ) { orderList . add ( key ) ; selectedVersionList . add ( VersionData . getLatestVersion ( key . getClass ( ) ) ) ; } nameOrder = orderList ; }
instantiates a new vendor option model .
