mirror of https://github.com/rusefi/RomRaider.git
Internationalize IntfKitTableModel class
This commit is contained in:
parent
908806a4c8
commit
d475e2c524
7
i18n/com/romraider/logger/external/phidget/interfacekit/plugin/IntfKitTableModel.properties
vendored
Normal file
7
i18n/com/romraider/logger/external/phidget/interfacekit/plugin/IntfKitTableModel.properties
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
SENSORID = Sensor serial:input Number
|
||||
EXPR = Expression
|
||||
FORMAT = Format
|
||||
UNITS = Units
|
||||
MIN = Min
|
||||
MAX = Max
|
||||
STEP = Step
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* 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
|
||||
* 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;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javax.swing.table.DefaultTableModel;
|
||||
|
||||
import com.romraider.util.ResourceUtil;
|
||||
|
||||
/**
|
||||
* PhidgetInterfaceKit Table Model used to populate user defined convertor
|
||||
* dialog.
|
||||
*/
|
||||
public final class IntfKitTableModel extends DefaultTableModel {
|
||||
private static final long serialVersionUID = -1733139047249681709L;
|
||||
private static final ResourceBundle rb = new ResourceUtil().getBundle(
|
||||
IntfKitTableModel.class.getName());
|
||||
private List<List<String>> ikData;
|
||||
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
|
||||
public final int getColumnCount() {
|
||||
|
|
Loading…
Reference in New Issue