Internationalize IntfKitTableModel class

This commit is contained in:
Dale Schultz 2020-03-01 19:57:14 -05:00
parent 908806a4c8
commit d475e2c524
2 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,7 @@
SENSORID = Sensor serial:input Number
EXPR = Expression
FORMAT = Format
UNITS = Units
MIN = Min
MAX = Max
STEP = Step

View File

@ -1,6 +1,6 @@
/* /*
* RomRaider Open-Source Tuning, Logging and Reflashing * RomRaider Open-Source Tuning, Logging and Reflashing
* Copyright (C) 2006-2013 RomRaider.com * Copyright (C) 2006-2020 RomRaider.com
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -20,18 +20,30 @@
package com.romraider.logger.external.phidget.interfacekit.plugin; package com.romraider.logger.external.phidget.interfacekit.plugin;
import java.util.List; import java.util.List;
import java.util.ResourceBundle;
import javax.swing.table.DefaultTableModel; import javax.swing.table.DefaultTableModel;
import com.romraider.util.ResourceUtil;
/** /**
* PhidgetInterfaceKit Table Model used to populate user defined convertor * PhidgetInterfaceKit Table Model used to populate user defined convertor
* dialog. * dialog.
*/ */
public final class IntfKitTableModel extends DefaultTableModel { public final class IntfKitTableModel extends DefaultTableModel {
private static final long serialVersionUID = -1733139047249681709L; private static final long serialVersionUID = -1733139047249681709L;
private static final ResourceBundle rb = new ResourceUtil().getBundle(
IntfKitTableModel.class.getName());
private List<List<String>> ikData; private List<List<String>> ikData;
private String[] columnNames = new String[]{ private String[] columnNames = new String[]{
"Sensor serial:input Number","Expression","Format","Units","Min", "Max", "Step"}; rb.getString("SENSORID"),
rb.getString("EXPR"),
rb.getString("FORMAT"),
rb.getString("UNITS"),
rb.getString("MIN"),
rb.getString("MAX"),
rb.getString("STEP")
};
@Override @Override
public final int getColumnCount() { public final int getColumnCount() {