Class TranslationTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.inductiveautomation.ignition.designer.i18n.workspace.TranslationTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
We currently build a separate list of keys, mostly in order to sort them.protected void
int
getColumnName
(int column) getLocaleForColumn
(int columnIndex) Returns the locale for the specified column.int
getValueAt
(int row, int col) void
refresh()
void
setDisplayedLocales
(List<Locale> locales) Sets the locales that will be used to build columns.void
setLocaleDisplayed
(Locale locale, boolean displayed) void
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
TranslationTableModel
public TranslationTableModel() -
TranslationTableModel
-
-
Method Details
-
getTranslationPackage
-
setTranslationPackage
-
refresh
public void refresh() -
buildKeyIndex
protected void buildKeyIndex()We currently build a separate list of keys, mostly in order to sort them. -
edtFireDataChanged
protected void edtFireDataChanged() -
getLocaleForColumn
Returns the locale for the specified column. Column 0 is the key, so the base locale will be returned in that case. -
setDisplayedLocales
Sets the locales that will be used to build columns. Should not include the key locale, unless an "alternate" column is desired. -
setLocaleDisplayed
-
getDisplayedLocales
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-